I want to do a checkpoint,when player is step on gold block,but chepoint dont work unlike sound and particle
Code:
on step on gold block:
player is in world "christmasWorld1"
play totem at player's location to the player
play sound "entity.experience_orb.pickup" with volume 5 to the player
set (spawn.%player%) to location of player
on player respawn:
if player's world is "christmasWorld1":
teleport player to (spawn.%player%)
else:
stop
Code:
on step on gold block:
player is in world "christmasWorld1"
play totem at player's location to the player
play sound "entity.experience_orb.pickup" with volume 5 to the player
set (spawn.%player%) to location of player
on player respawn:
if player's world is "christmasWorld1":
teleport player to (spawn.%player%)
else:
stop