I'm using the command /execute if entity @a[y=0,dy=30] run (command) on 1.13_pre3 to run a command when a player is below the 30th "y" level. Unfortunately the command isn't working. How can I detect when a player is below the 30th "y" level? Any help would be appreciated!
Thank you for the quick response! I tried copying and pasting your command into a repeating command block, and nothing happened. I also did this for the one I typed in my original thread, and nothing happened again. I even tried creating a new world and it didn't work. Thank you for trying to help.
I'm using the command /execute if entity @a[y=0,dy=30] run (command) on 1.13_pre3 to run a command when a player is below the 30th "y" level. Unfortunately the command isn't working. How can I detect when a player is below the 30th "y" level? Any help would be appreciated!
I tested it using /execute if entity @s[y=0,dy=30] run say i
And it worked fine on 1.13_pre2 and pre3
Then it might be other things that caused this not working.
ex. Who is executing this command.
check if the command that you run is also correct.
...
Thank you for the quick response! I tried copying and pasting your command into a repeating command block, and nothing happened. I also did this for the one I typed in my original thread, and nothing happened again. I even tried creating a new world and it didn't work. Thank you for trying to help.
emmm...a little bit trick here if you want to run in a command block
/execute as @a at @s if entity @s[y=0,dy=30] run say i
It works! Thank you so much!!!