mojira.dev
MC-65290

/execute kill requires arguments

Running a command such as
/execute @p ~ ~ ~ kill
requires arguments to be added to kill, despite /kill not requiring any arguments when ran by a player.
A good example would be a command that kills any entity standing on a specific block.
/execute @e ~ ~ ~ detect ~ ~-1 ~ dirt 2 kill @e
This command kills every entity on the map, so ideally we would drop the arguments to kill, so entities kill themselves, but you cannot.

Linked issues

Comments 7

Works as Intended.
/kill actually does require a selector. Try it in a command block, you'll see a target has to be selected.
/kill itself only works by typing in chat.

Also, your dirt command will kill everything in the world if one entity is on dirt, that's how the command you've entered is interpreted. You'd have specify the selector more accurately to only target those on the podzol.

kill is a universal command anyway. Why would you need an execute for it?

Does anyone think that this is an issue, or is the community consensous that this is intended?

Nicholas Hill

Erik Broes

Community Consensus

Minecraft 14w31a, Minecraft 1.8.4

Retrieved