Mod programming help thread for Azhrak

Your download is missing the carpenters recipe mixin so I cant test it fully.

I’d try removing the region origin as it looks wrong to me.

Try:

  },
      "mob" : {
      "model_origin" : { "x": 0, "y": 0, "z": 0 }
  },

If you want be to dbug it properly, upload the version with the carpenter recipe mixins

Ah the carpenter has no recipes yet :stuck_out_tongue: The banners are in the mason recipes. Is that causing any conflict?

Nope. Let me run it up and see

I tried changing the mob origins, no luck.

Okay, I’ve got it working.

Setting a scale to 0 makes the item invisible. Set the scale to something like 0.25

Shield_banner_ghost should look like

  "mob" : {
     "model_origin" : { "x": 0, "y": 0, "z": 0 }
  },

i.e remove “region_origin” : { “x”: 0.5, “y”: 0, “z”: 0.5 } and the comma from model_origin

remove the region collision shape so that your json looks like this:

{
   "type" : "entity",
   "mixins" : "file(shield_banner_ghost.json)",

   "components": {
     "stonehearth:entity_forms" : {
     "iconic_form" : "file(shield_banner_iconic.json)",
     "ghost_form" : "file(shield_banner_ghost.json)",
     "placeable_on_walls" : true
  }
 },
"entity_data" : {
  "stonehearth:net_worth" : {
     "value_in_gold" : 30,
     "rarity" : "common",
     "shop_info" : {
        "buyable" : true,   
        "sellable" : true,
        "shopkeeper_level" : 1,
        "shopkeeper_type" : "caravan"
     }
  }
}
}

It’s not needed and is causing issues.

I did change all the scales to 0.2 after I uploaded it :smiley: And thank you.

No worries it’s good practice. I’m trying to get back in to the swing of things after my four month sabbatical :slight_smile:

1 Like

I have it working, except the origin seems off in game, but its correct in Qubicle.

In your iconic files

     "model_origin" : { "x": -0.05, "y": 0, "z": 0.05 }

should be

     "model_origin" : { "x": 0, "y": 0, "z": 0.05 }

Alternatively you can edit the model

Ah, its not the icon thats the problem
when the item is placed on a wall, it floats off the wall.

Iconic… not icon.

Not tested it but Im quite sure that air gap is caused by the x axis being -0.05.

Edit, wait you’re right. I’m confused and out of practice. That will only effect your iconic version when it is on the ground.

It’s the ghost that would effect the placement on the wall, and that seems correct… hmm

When I said Icon I meant iconic :smile:

  "mob" : {
     "model_origin" : { "x": 0, "y": 0, "z": -0.5 }

In your ghost file will fix it.

I tested it before running my mouth this time :blush: I really need to find my notebook…

Fixed it :DD

I feel like this knowledge could make windmills

New link to download the banners for anyone who’s been following the thread.

Windmills? Do you mean like in

:stuck_out_tongue_winking_eye:

1 Like