I have this script, which should not allow players to go below y 34 without the correct key, but it's not working, how come?
Code:
options:
key-item: deepslate brick wall
on player move:
if player's y-coordinate < 34:
if player's tool is not {key-item}:
send "&cYou do not possess the correct key to enter the deep mines!" to player
set player's location to player's previous location