Started by
Yrense
on
Topic category: Help with Minecraft modding (Java Edition)
im making custom trees which are essentialy custom structures and when they generate, they sometimes are on a ledge and just floating... it really breaks the environment and if there's a way to fix it, i would love to know!
Usign "Restricts to block type" and using blocks that are placed on the ground(dirt, grass_block, stone...) helps to prevent this I think
well i already use that function, but they still spawn half on land and half in the air. ill show you a picture of a good generation VS a bad one...
https://image.noelshack.com/fichiers/2020/33/7/1597609423-tree1.jpg good generation
https://image.noelshack.com/fichiers/2020/33/7/1597609428-tree2.jpg bad generation
Have you tried the new option of 2020.4 that is "Additional generation conditions" maybe checking that none of the blocks below in a radius is the type air as a condition might fix it
ill try something like that..
I second Sancho's "checking for blocks in radius" fix.
I believe the problem behind this is that the structure is so large x and z wise, it is probably hitting only one original block when trying to spawn and stretching out sideways from there, not realizing that all the other blocks beneath it are air.
i mean, i know what the fix is... i just need to find a way to implement it... i tried for an hour yesterday and just gave up o-o
Which part are you having trouble with?
I'm having the same issues with my custom tree but I don't understand what I would do with the "check type of block below" procedure template. Do i have it check for grass or air? Then what do I put in the "do" section for after it checks the blocks?
Check for solid blocks.
https://www.youtube.com/watch?v=2ggSrLiXTuU
This should help, also make your tree a little taller and put some of it in the ground.
You need to spawn structures through procedures/code to get them to not be cut off and not floating. The code has to fire off before the world generation. I have entire custom villages with five 48x48x48 tiles generation fine. Also have dungeons that work just like rogue dungeons.
1.16.5
I am having the same problem. the huge oaks that i made are in the air or stuck in the ground.