From Minecraft Wiki
Jump to: navigation, search


First introduced

1.3.1 (12w16a)
PE Alpha 0.16.0 (PE Alpha 0.16.0 build 1)

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

  • Java Edition
kill [player|entity]
  • Pocket Edition
kill [target: target]
player|entity (PE: target: target) (optional[until 1.13])
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.
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.
To kill yourself: kill
To kill the player Bob: kill Bob
To kill item entities: kill @e[type=item]
To kill all entities, including yourself: kill @e
To kill all entities but players: kill @e[type=!player]

Promotional Content