How to test for a player's height

How to test for a player's height - From above of young sportive female athlete in activewear on blue sports ground

I'm making a mining turtle-like one command contraption and I need to execute on the turtle when it gets to y=16.

This is the command I use:

scoreboard players tag @e[y=16,dy=0,tag=Bot] remove MiningDown

for some reason it does not work. How do I make it work properly?






Pictures about "How to test for a player's height"

How to test for a player's height - Student Getting A+ Mark in Her Exam
How to test for a player's height - Student Cheating During an Exam
How to test for a player's height - Aerial Photography of White Ferris Wheel





How to detect a player using command blocks! | /execute command tutorial for 1.16 Minecraft Java




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Harrison Haines, RODNAE Productions, RODNAE Productions, Tom Fisk