How to have a structure spawn only once in a custom dimension?

Started by noeties on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to have a structure spawn only once in a custom dimension?
Tue, 10/26/2021 - 23:35 (edited)

Let me explain.

I want to make an arena that always spawns around 10 blocks in front of you when you spawn into the new dimension

It works, but when you die and return to the dimension, It spawns a duplicate of the same thing.

This wouldn't be an issue if it didn't also spawn in the boss that is also part of the structure.

So can anyone explain a way to fix it?

 

Edited by noeties on Tue, 10/26/2021 - 23:35
In the dimension editor When…
Wed, 10/27/2021 - 10:56

In the dimension editor

When player enter in a dimension spawn structure at x / y / z player coordinates. Remeber add / remove from the coordinates the dimension of the structure or the player can spawn in a wall

 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sadly that is what my code is
Wed, 10/27/2021 - 14:13

Sadly that is what my code is

Use global trigger for…
Wed, 10/27/2021 - 15:20

Use global trigger for player. When enter in a dimension the structure spawn is is true then automatically change to false

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Im very confused Im bad at…
Wed, 10/27/2021 - 21:29

Im very confused

Im bad at coding sorry

You don't need code, just…
Thu, 10/28/2021 - 05:45

You don't need code, just create a logic global trigger (true or false) that is true at the start of the world and become false when you enter in a dimension 

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a variable. When…
Fri, 10/29/2021 - 04:56

Make a variable. When structure generated change it to true, then make it so that when the variable is true it cannot generate anymore