How to spawn a structure exactly one times

Started by b_m on

Topic category: Help with modding (Java Edition)

Last seen on 05:32, 28. May 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to spawn a structure exactly one times

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 03:52, 31. Dec 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.