How can I create an structure that only generates once?

Started by InkyCipher on Thu, 06/25/2020 - 18:43

Topic category: Help with modding (Java Edition)

Last seen on 22:46, 12. Jun 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How can I create an structure that only generates once?
Thu, 06/25/2020 - 18:43

So, I'd like to know if I could create an structure that is only generated once per world.

Last seen on 11:53, 5. May 2021
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Try this: Create a custom…
Fri, 06/26/2020 - 01:35

Try this:

Create a custom variable, call it something like "firstLoad", boolean starts as true

Then create a precedure with the global trigger "Minecraft loads a world". This triggers whenever you open your world save. Test for the boolean "firstLoad" being true: if so, spawn your structure in some coordinate, then set "firstLoad" to false. Now, when you load this world, "firstLoad" will always be false, not triggering the structure spawn.

 

Not really tried it myself but see if you like the results

Last seen on 19:45, 29. May 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Can you please send a…
Sat, 05/29/2021 - 19:42

Can you please send a screenshot of the procedure so I can see it please? It would be really helpful.