How to spawn a structure exactly one times

Started by b_m on Fri, 02/19/2021 - 08:11

Topic category: Help with modding (Java Edition)

Last seen on 06:36, 4. Mar 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to spawn a structure exactly one times
Fri, 02/19/2021 - 08:11

I've created one dimension and I want to spawn a structure EXACTLY one times and save the location where it just spawned so players can find it using some kind of custom compas. If you have no idea what I want to know: The structure is thought to spawn like the portal room: exactly one times. The big difference is the way to find that structure.

Anyways: How to do that?

(hope this is the correct forum)

Last seen on 02:31, 13. Apr 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
One idea is to use the "on…
Fri, 02/19/2021 - 17:58

One idea is to use the "on structure generated" procedure and set a global variable to true, then in the "additional structure generation condition" procedure, make it check if that global variable is false. if it is, then spawn the structure. Otherwise, don't.