Minecraft: Kill players under y = 57?

xz
7

Hi! I need a Command for an Adventure Map, which kills all players who are below 57. If anyone else has the time and inclination, they also like a command that kills players who are on a particular block.

I have already tried the following:

kill @a [y = 57]

But does not seem to work, I die, no matter what height I'm.

Co

You have to query players with Testfor

iv

Yes, because y = 57 is not a valid argument.

xz

The command no longer exists

Co

Have read anything on Reddit with Execute

Co

Stupid answer

xz

However… Is it by the way

an

Execute as @a at @s run kill @s [y = 57, dy = 0]