I have built an Enderman Farm and I want to kill all Endermans who spawn below in a radius of about 50x50x5 blocks. But how?
With the sword, with lava or water. And then it's best to do a spawnproof with lower slabs, if you haven't already done so.
But I asked how the Distance command works.
Your actual question does not say "order". The command: / kill @e [type = enderman, distance = .50]