Started by
braelin777
on
Topic category: Help with Minecraft modding (Java Edition)
Hello all! I’ll make this short and sweet. Is there any possible way to get structures to “build themselves” or “connect” to the ground like vanilla ones? Here’s an example:
I just did this for my mod permafrost biome, with packed ice under the structures.
The main procedure:
https://ibb.co/LN8W9xq
The second block which replaces this block is there to remove the block that generates this procedure. The local variable position is a number local variable.
You can change things to you're liking with which block it creates (in this case packed ice) also in this case it only replaces nonsolid blocks but there might be other blocks you want to check like snow layers won't be replaced with this procedure.
This procedure doesn't seem to work with on structure generated so I would recommend adding blocks in the structure that generate the procedure, but then the locks still wouldn't tick so I personally fix this by having a block that spawns the structure when neighbor blocks change and have a block (self made so you can turn it off during development).
If you have more questions about this you can ask.
some adjustments to my reply
the block that spawns the structure is spawned is like a structure and has the other block spawning above it with one air block.
the selfmade block above it needs to be a gravity block (that is what I meant with what you can turn of)
the procedure is called with the tricker when block added
in the sentences "The second block .... number local variable." with the second block I meant procedure block.
ill try this and let u know how it goes!
i did it a little differently, but i used your way as a concept, so thanks!!