I'm trying to make a datapack and in it you cannot sleep unless you are y 100
or above, but my command doesn't work. Can anyone explain why P.S: playerheight
is a scoreboard that updates according to the Y coordinate.
execute at @e[tag=avian,scores={slep=1..}] if score @p[tag=avian]
playerheight < 100 run run setblock ~ ~ ~ air destroy