Structure spawns at players location when player enters dimension only once

Started by cheesey123 on

Topic category: Help with modding (Java Edition)

Last seen on 15:33, 16. Jul 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Structure spawns at players location when player enters dimension only once

hi,

im trying to make a structure where you can build in. when you enter the dimension the structure spawns at your location(i got that kind of working), but every time you enter that dimension the structure spawns again, which means if you had build something it would get deleted. i need to make it so that the structure only spawns the first time you enter that dimension but i have no idea how to code that(in procedures).

Last seen on 15:33, 16. Jul 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if anyone knows how to do…
Mon, 09/04/2023 - 23:06

if anyone knows how to do this pls explain it to me

thank you :)

Last seen on 01:06, 23. Jul 2024
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a global map logic…
Tue, 09/05/2023 - 03:44

Make a global map logic variable (you can name it anything) and make it so when the player enters the dimension it will check if the variable equals false, if it does it will spawn the structure and set the variable to true

 

Last seen on 15:33, 16. Jul 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thx, i have one question tho…
Tue, 09/05/2023 - 07:20

thx, i have one question tho how would it reset, if i wanted to go to that dimension in an other world or even a server.

 

Last seen on 15:33, 16. Jul 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and how does it work with…
Tue, 09/05/2023 - 07:43

and how does it work with multible people

Last seen on 20:22, 24. Jul 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you make the variable…
Tue, 09/05/2023 - 12:34

if you make the variable player persistent, it will work for multiple people and worlds