Started by
cheesey123
on
Topic category: Help with Minecraft modding (Java Edition)
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).
if anyone knows how to do this pls explain it to me
thank you :)
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
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.
and how does it work with multible people
if you make the variable player persistent, it will work for multiple people and worlds