I want to create a script that detect if it is the first time a player enters the Ad Astra mod Moon, and since the mod's system teleports you to the equivalent x, z position on the moon i want to reposition the player to the position x = 0, z = 0 every time he enters the dimension. I have some other things i would like to add to this system but they're not the main topic of this post so i'll have them apart if anyone can help me :
-
I want to save the player's inventory if it is his first time on the dimension, and then give all the items back after some requirements are complete.
-
I want to generate a structure if it is the first time a player enters the dimension, for multiplayer reasons, i don't want multiple structures being generated, so only one structure at x = 0, z = 0 would be generated.