Started by
4cqker
on
Topic category: Help with Minecraft modding (Java Edition)
So I have a 9x9 tower structure that when it randomly spawns in the world will trigger a procedure that simply places a seperate structure (The top of the tower) at the same coords as the tower's spawn, +30 to the Y axis, so that it's up above. Now, sometimes this works perfectly. Sometimes, the top of the tower spawns a good 20 blocks away in a random direction, though still at the right Y height. Does anyone have an explanation for how this works, or a recommendation as to a method/workaround? Feel free to ask questions, i'll provide pictures of anything that can help.
I'm doing this for 1.12.2 using MCreator2020.2, so I can't use Jigsaw blocks. I've tried centering the structure blocks to be perfectly in line with each other, in case rotation was a problem and the rotational axis was off, but it didn't help at all. I'm really at a loss here.
For anyone else searching in the future, the problem is rotation. Structures spawn and rotate around an axis on their bounding box's corner. Disabling rotation for the base structure will work to keep all structures in working order; the fluke structures that generated properly in my testing were structures that spawned without rotating.
There may be a way to use procedures when spawning the base structure, and set a local variable that then rotates all the structures at once or something but... My own structures will be sparse so i'm not going to bother. Only the most astute player will notice that all towers face toward the sun.
You have to do this with Worldedits schematics.
They can be as large as you want. Search for a tutorial on YouTube!
There is a procedure block in World Management to spawn you schematic.