Topic category: Help with Minecraft modding (Java Edition)
Hello everyone! I'm working on a mod that adds like 8 new dimensions, hundreds of mobs, etc. It's gonna be big. So far I have 3 dimensions basically done as far as the terrain goes. Anyways, the 4th one is called "The Woodlands" and as you might imagine, it's a sort of enchanted forest dimension with a few different similar biomes. Anyways let me get to the point. Some of the trees are floating, overhanging on corners, and some are even like 20 blocks off the ground. I am at a loss. I have been watching tutorials and trouble shooting for about 2 days and have read literally every thing on here about floating trees/structures (Yes, my trees are custom structures/schematics.) And I don't know what else I can do. Here's a list of some things I have tried:
-Changing the restriction block to the top layer grass, AND the second dirt layer.
-I've tried numerous different procedures, and I will attach pictures of some of them.
-And a lot more.
I will attach some pictures of how the trees are generating, and how I want them to generate.
This is how I want them to spawn: http://image.noelshack.com/fichiers/2022/12/1/1647897803-good-gen.jpg&n…;
This is what the floating trees are doing: http://image.noelshack.com/fichiers/2022/12/1/1647897798-completely-flo…
This is what the overhanging trees are doing: http://image.noelshack.com/fichiers/2022/12/1/1647897798-hanging-off-co…
I'm really desperate for help guys. I can NOT have floating trees in this dimension. Especially this one. There were a few random ones in the floating island dimensions but I was okay with it. But not here. I need these trees to stay on the ground. What I was thinking is maybe there is some procedure that would check if the block is wood, AND if the block below the wood is air, then it would replace the air with the wood all the way until it reaches the ground. I'm not super super advanced in coding, so I don't know how to do this. Or if this would even be possible. Please someone help me :(
@Klemen
Just noticed my images didn't upload. Here they are:
Proper generation:
Floating Generation:
Overhanging Generation:
Ok so what you want to do to fix this is find the world where you originally created the schematic for the tree and edit it so that it has the "Save" structure block right below the tree like this V
and then use that new tree schematic to replace the current one, then make a structure spawn condition that looks like this V
(but with your custom grass blocks)
It should work, all though i have not tested this specific procedure. Give it a try, tell me if it doesn't work and what happens.
Also you might want to make the structure spawn Y offset down by one.
I feel like it should save "true" value in local variable, because for now it looks like it will always return "false" (it is the last "task", procedures work a bit differently than Java code)
This is just how conditions work in MCreator, I've made plenty, this should return true.
I'll try this right now guys and I'll lyk how it goes! Thanks for replying to me :D
it didnt work bro :(((((((( its still doing the exact same thing :(
what i did was re make the tree structure exactly how u said, with the corner blocks and the save block underneath the tree like u said, and then i saved it as a new structure. then i went in and went into the structure mod element and clicked "additional generation condition, created that procedure u showed me, saved mod element, loaded the game, and it was still the same :( please tell me theres something else i can do because i definitely need these trees to be on the ground lol
If they are all floating all you need to do is make the structure spawn Y offset -1.
but some are still floating 15-20 blocks off the ground like they were in that picture :(
can you send me a screenshot of your tree structure?
In MCreator.
i can as soon as i get home from this meeting im at! will u be available in 2 ish hours?
what exactly do u mean bro? do u mean a screenshot of the structure in game? the way its spawning? or the mod element in mcreator? sorry im just a lil confused and i wanna make sure i send u the right thing lol
well if u mean the mod element then here ya go: