Started by
DaRedBearYT
on
Topic category: Help with MCreator software
I have a simple procedure that activates every time a player joins the world, but I want it only activate once when one player joins so there respawnpoint does not change every time they join the world, how can I accomplish this? This is the procedure:
Event Trigger - triggered by external call
or when (global trigger): Player joins the world
Switch dimension of Entity/target entity to "Apocalypse"
Execute command /spawnpoint @a ~ ~ ~ in the name of Entity/target entity
Edited by DaRedBearYT on Mon, 07/08/2024 - 16:25
I will show by adding a player persistant Global variable. I am doing something like this so i have tested it. the variable should be set to 1.
Put the procedure in an if block:
When player joins world
if: global: Newplayerjoins = 1
Then: Switch dimension of Entity/target entity to "Apocalypse"
Execute command /spawnpoint @a ~ ~ ~ in the name of Entity/target entity
Set Global Newplayerjoins to 0
The procedure is completely changeable, as long as you do it inside the if block and before the set variable to 0.
Hope I helped! -PixelKid
Can you show me a screenshot of your procedure? I am a little lost.
Nevermind I figured it out, I will be putting your username in my mods credits, Thanks for your help PixelKid!