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
is duplicated by 1
Comments 7
Duplicates very likely MC-79677
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.