Commands/kill

Kills entities (players, mobs, items, etc.).


 * Syntax


 * Java Edition


 * Pocket Edition


 * Arguments


 * player|entity (PE: target: target) (optional)
 * Specifies the target(s) to be killed (including "non-living" entities like items, vehicles, etc.). Must be a player name or a target selector. If not specified, defaults to the command's user. Not optional in command blocks.


 * Result


 * Fails if player|entity fails to resolve to one or more entities (named players must be online).


 * On success, directly kills non-living targets, or inflicts 3.4 x 1038 void damage to living targets — even if they are in Creative mode or protected by a high-level Resistance effect — and issues the appropriate death message. Players and mobs killed this way drop loot, and slimes and magma cubes that aren't already of minimum size spawn smaller ones. Destroys boats, minecarts, loose items and experience orbs if they are targeted.


 * Examples


 * To kill yourself:


 * To kill a player named Bob:


 * To kill all item entities (making them vanish from the world):


 * To kill all entities within loaded chunks, including yourself:


 * To kill all entities (item entities, animals, etc) apart from players: