#I want to block players from mining under Y level 20
1 messages · Page 1 of 1 (latest)
you could just change their gamemode one they reach that y level
execute as @a at @s run gamemode adventure @s[y=20]
put that in your tick function
or remove the all player selectors and put it in a tickplayer function
aswell as a execute as @a at @s run gamemode survival @s[y=19]
for just 1 way you could do it
Players have 4 blocks reach range
then change the number