The skript works fine until you die, then the teleporting no longer works. Can someone help make it not break upon death?
Code:
on join:
wait 1 tick
while player is alive:
if blocks in radius 2 of player contains lime glazed terracotta:
teleport player to location(556.5, 99, -73.5, world)
wait 1 second