Advice / issue solving needed

Hey everyone,

I have started to make my own mod to add some new furniture and decorations into the game. Mainly for my own use but will share it as I think others might benefit. I’m having a strange issue. The new item is a book shelf and it is placeable on walls, but only some walls and when placed the hearthlings build the ladder but never actually place the item, it just remains as a ghost and in storage. I have added some screenshots of the placement issues below, and have also added a link to my github to see if there is anything noticeable with what is going wrong.

Code can be found here

You can see above I have told them to place the bookshelf and the ladder is built but the shelf doesn’t get placed.

The other issue I couldn’t get a screenshot of the cursor but when trying to place another bookshelf on the back wall the cursor just turns to a red ‘X’.

I can’t figure out what is causing this. Help would be much appreciated.

1 Like

good question … i have test it and also you can place it only inwall not on the complete wall … also i couldnt find some issues

here is the working smodfile for testing , (some people have issues with github xD)

Thanks for trying it, glad its not just me. I compared it with the signs which can be placed on walls and I don’t see anything which could cause the behaviour its giving.

here is the working smodfile for testing , (some people have issues with github xD)

Will remember that in the future, thanks. Quick check making the smod file is it just make a zip and rename it?

1 Like

also remove the master :wink: out and in the zip ^^

i have compare your files with the wallcrest and can see any bigger differences … so i think you need from our mastermodder like @Drotten or @Froggy :smiley: sry to all not mentioned :wink:

Great thanks, will do that in the future.

Hopefully those masters can help out :stuck_out_tongue:

1 Like

I had this issue too when doing wall furniture, and asked Froggy about it in the past since he has the mill for the Stonehearth Cafe mod.

It seems to be something related with the distance of the ladder to the wall. The hearthlings can’t reach the wall to place the shelf because it’s somewhat far. It’s really tricky to get it working. I finally finished a working shelf, but for placing items on it you had to manually place a ladder.

My suggestion would be to fiddle with the collision regions and the adjacency.


Thank you for your idea. By regions is this the ‘region_collision_shape’ on the main json file? And what do you mean by adjacency?

Thanks, again :smile:

1 Like

Yes, that one.

The adjacency is which sides of the item can a hearthling approach to. I messed with it so bad one time, that they were placing the shelf from the other side of the wall :cold_sweat:

If you use the entity editor of the debug tools there should be a section for modifying it.
In the potter_kiln json file, the mob component has this:

“destination”: {
“region”: [
“min” : { “x” : 0, “y” : 0, “z” : -2 },
“max” : { “x” : 1, “y” : 1, “z” : -1 }
“adjacent”: [
“min” : { “x” : 0, “y” : 0, “z” : -3 },
“max” : { “x” : 1, “y” : 1, “z” : -2 }

it determines the destination region and the adjacency. I guess you should avoid to have adjacency with the part that touches the wall, you might encounter the situation I mentioned above :disappointed_relieved:

Also there’s a property ( “allow_vertical_adjacent”: true ) mentioned in ghost files of entities like curtains or banners. I think it’s used to allow placing items on top of items, but I’m not sure how it works.

Edit: first just try to modify the collision shape. If the ladder problem persist, then yes, try things with the other regions.

1 Like

Right, time for some trial an error I suppose. I have seem the allow_vertical_adjacent and think I actually used it on this bookshelf.

Thanks for the info will see if I can figure it out.

Do you have any idea on what would be causing the other issue I am getting, where the item cannot be placed on some walls? @Wiese2007 said he also tested and had the same issue.

1 Like

Sorry for the questions, but looking at these models within Stonehearth, is the size of 1 Stonehearth unit 10 voxels?

1 Like

I’ve just seen your code and it looks right :confused:
I will try to test it too.

I’m not sure what can be causing it… The collision region looks actually small, let me check it in game.

Btw, if you have “enable_debug_keys” : true, in your user_settings.json, toggle with F11 when in game to see the regions (gray box is collision, red box is destination region).

I think that’s the default scale, yes (0.1).


YES! You legend, was trying to figure out why I couldn’t see these boxes. Gave up in the end thinking it had been removed. Right let me see why this isn’t working!

1 Like

Yep, you might have to adjust your model origin and the collision box first, then try to figure the other issue.

1 Like

I just noticed that as well. This might be a little ‘nooby’ :stuck_out_tongue: but what axis are each of the colours? I never really done 3D work.

I’m assuming in the debug tools entity editor the boxes are in the order x, y, z as well?

1 Like

Yeah, should be.
If I’m not mistaken, (some 3D editors have the axis placed different but usually the color is a standard), the red one is X, the green one is Y and the blue one is Z.

Ah, here’s the reference:

1 Like

That was a very helpful read haha. I have fixed the boxes/positioning etc. Will try and see if that helps with wall placement. I have attached a screenshot showing the new boxes. Any idea what the purple one represents?

1 Like

YAY! They now place the bookshelf on the wall, so must have been the boxes not set properly. Now just need figure out what is preventing it from being placed on certain walls? Seems to be if the wall is a certain angle?

Edit: Actually that fixed both of the issues. They were both caused by improper positioning of collision/placement boxes. Glad that is sorted, was really making me pull my hair out haha. Thanks for all your help @Relyss and @Wiese2007. I have pushed the new changes to github and here is a smod file, would appreciate it if yourself or anyone else could give it try make sure I found the problem :smiley:.


It might be. I remember some time ago Froggy complaining that you couldn’t place items if the wall was facing certain directions, but I don’t remember what was the reason for it. On a second thought, I think it was a different issue, directly related to the regions. Here it just shows you the red cross without any possibility :pensive:

Edit: oh, you fixed it :smiley:


I think you’ve wrapped the smod wrong, it doesn’t load correctly, I can’t see the recipe in the list.

I think currently you have to zip the mod’s folder, not the contents.

1 Like

Oh, oops! Thought that was how you did it. I have updated the dropbox link with a rezipped file.