View difference between Paste ID: B3fSAzd9 and riyZc8Un
SHOW: | | - or go back to the newest paste.
1
on death of player:
2
	cancel event
3
	set player's gamemode to spectator
4
	wait 5 seconds
5
	teleport %player% to location (0, 0, 0)
6
	set health of player to max health of player
7-
        set the %player% food level to 20
7+
	set food of player to max food of player
8
	set player's gamemode to adventure