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!
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.
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
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.