Started by
tazzan
on
Topic category: Help with Minecraft modding (Java Edition)
Sometimes when my mod generates its structures, bits of them get cut off or are missing. I am staying in the 32x32 limit so I'm not sure what's happening.
Topic category: Help with Minecraft modding (Java Edition)
Sometimes when my mod generates its structures, bits of them get cut off or are missing. I am staying in the 32x32 limit so I'm not sure what's happening.
I've run into this issue in a different way a couple of times. If your structure generates with the world (naturally generating) it can often get cut off if it is bigger than 1 chunk (16x16 blocks). This is due to the structure trying to generate in chunks that have not yet been created, so they overwrite the structure when they are loaded.
This is unfortunately a fundamental limitation of Minecraft and is why you often see large structures broken up into segments, like Villages, Strongholds, and even the Nether Bastions in Minecraft 1.16.
There is a way to get around this, though. I believe that if you spawn a block in place of your structure, then make that block fire a procedure that spawns your actual structure, it will trigger after the chunks have generated and thus not be overwritten. Hope this works!
How you do that?
Jigsaw blocks. This video might explain how to use them: I Fixed the Dungeons In Minecraft! - YouTube
This thread also covers the topic:
https://mcreator.net/forum/99669/solved-large-structures-are-cut
Really quick and easy.
tldr:
- let the structure mod element generate an "empy" structure (void/air)
- give it a procedure for the trigger "on ... generated" where it spawns a single custom block and add "schedule tick update (~ 20 ticks) procedure block at the bottom so that it trigges the block's own on-tick-update-procedure.
- make the custom block; give it that procedure for "update tick" where the block generates you actual structure and then removes itself.
- done
I tried this and my structure tends to generate with air around it in ocean biomes. My structure is basically a sunken ship but it can generate randomly either under water or a bit above it so it is complicated for my structure to generate with air instead of water on depending on where it generates at. and I doubt that adding water onto the structure itself will help because if the structure generates a bit above the water, the water will be floating. So Ima need some help with this.