Spawning Structures together, uniformly, using Procedures?

Started by 4cqker on Wed, 04/15/2020 - 07:03

Topic category: Help with modding (Java Edition)

Last seen on 07:29, 26. Apr 2021
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Spawning Structures together, uniformly, using Procedures?
Wed, 04/15/2020 - 07:03

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.

Last seen on 07:29, 26. Apr 2021
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I'm doing this for 1.12.2…
Wed, 04/15/2020 - 07:05

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.

 

Last seen on 07:29, 26. Apr 2021
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(No subject)
Wed, 04/15/2020 - 07:37

Here's an example.

Last seen on 07:29, 26. Apr 2021
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
For anyone else searching in…
Fri, 04/17/2020 - 01:28

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.

Last seen on 15:09, 21. Nov 2020
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You have to do this with…
Sat, 11/21/2020 - 11:35

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.