My trees like water!

So here’s the problem:
I’m new to modding, coding, and modelling but decided to try it anyway! So far I have changed the parameters of my biome, changed some colors, and added small, medium, and large palm trees (forgive the crudity of the models it’s my first attempt!). I actually changed some small and medium oaks to crude palm trees to get my feet wet with modelling then made a few small, medium, and large palms. When I start the game and generate the map, all of the altered oaks (crude palms) place properly, but some of the custom palms spawn over water or even way up in the air! can anyone shed any light on this? I’m not too sure how to upload my mod for anyone to look over but i will try!

hamburgonia_biome.zip (5.3 MB)
maybe that worked?
tacocat

3 Likes

Oh my! Whatever you are creating… I’m already in love with it! Just today, I’ve been thinking about how cool would a jungle type biome be!

They are misaligned. The game set them in a position, but their image/models are offset. You need to center the model either in your voxel editor or through your entity json files

Is there any way you can be more detailed about those things?

  • I am using StoneVox and cannot figure out how to select and move the entire model.
    -in my .json file I have tried randomly changing the numbers in :
    “mob”: {
    “model_origin”: { “x”: -0.5, “y”: 0, “z”: 0.5 },
    “region_origin”: { “x”: 0.5, “y”: 0, “z”: 0.5 },
    “align_to_grid”: [
    “x”,
    “z”
    ]
    },
    “destination”: {
    “region”: [
    {
    “min”: { “x”: -2, “y”: 0, “z”: -2 },
    “max”: { “x”: 3, “y”: 1, “z”: 3 }
    }
    ]
    },
    “region_collision_shape”: {
    “region”: [
    {
    “min”: { “x”: -2, “y”: 0, “z”: -2 },
    “max”: { “x”: 3, “y”: 16, “z”: 3 }
    }
    all of those variables (that one is from small_palm_tree.json) but I don’t understand what those numbers do, so it is impossible to “guess” at which one to change to what.

Thank you so much I am trying to go for a rivery jungle with huge tall cliffs!

1 Like

Also I was hoping you would reply @BrunoSupremo I have all of your mods and have utmost respect for you as an expert in Stonehearth mods!

Go into your mod page and activate the debug tools. With it there will be some icons at the top right of the screen. One of those can help you position your model.

Also, try using magicavoxel or voxelshop, they should be better for your case.

“model_origin”: { “x”: -0.5, “y”: 0, “z”: 0.5 },
Basically moves the model north/south, west/east. 1 = a full terrain block, so 0.5 is half block

So I should try to move my tree from here:


to here:

then copy and paste into the tree .json ?

1 Like

Exactly.
That little 3 line pointing into each direction is actually the center and where the game think the object is.
You can also change the collision box (blue box). The red box is where hearthlings will stand when interacting with it, like chopping the wood.

2 Likes

Ah! Thank you so much! Now to rename all the “oak” palm trees to willow or something so they line up right.
Thank you!

Sounds just like a perfect fit for overgrown Vietnam style temples! :merry:


image
image

1 Like