/kill

"Kill" redirects here. For the action of killing, see Health § Death.
/kill
Permission level
required
  • 2 ‌
  • 1 ‌
Restrictions

Cheat only‌

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

Usage

Directly kills living targets compulsorily (which deals 2128 or as a number 340282366920938463463374607431768211456 or (~3.40282×1038) damage), which is irrespective of any of the targeted mob(s)' protective effects (armor, Protection and Resistance). However, the damage can be adjusted by the ender dragon. Totems of undying can't be triggered when their owner(s) die(s) because of this command.

When the command kill mob(s), it issues the appropriate death message. Players and mobs killed this way drop loot, and slimes and magma cubes that are not of minimum size spawn smaller ones. Non-mob entities disappear if they are targeted.

In Java Edition, ender dragons killed by this command will skip their death animation and immediately open the exit portal.

In Bedrock Edition, players in Creative mode cannot be killed using this command.

Syntax

  • Java Edition
kill [<targets>]
  • Bedrock Edition
kill [target: target]

Arguments

JE<targets>: entity
BE: target: target: CommandSelector<Actor>

Specifies the target(s) to kill. If not specified, defaults to the player who executed the command.
Must be a player name, a target selector or a UUID‌.

Result

CommandTriggerJava EditionBedrock Edition
AnyAny argument is not specified correctly. Unparseable Unparseable
<targets> or target: target is not specified when the command's executor is not an entity. Failed Failed
<targets> or target: target fails to resolve to one or more entities (named players must be online).
All the targets are creative-mode players. Successful
OtherwiseSuccessful

Output

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
AnyJava EditionOn fail000
On success11the number of targeted entities
Bedrock EditionOn fail0N/AN/A
On successthe number of entities that are killedN/AN/A

Examples

  • To kill the player executing the command: kill @s or kill
  • To kill the player Steve: kill Steve
  • To kill item entities: kill @e[type=item]
  • To kill all entities except players: kill @e[type=!player]
  • To kill all creepers within 10 blocks:
    • JE: kill @e[distance=..10,type=creeper]
    • BE: kill @e[r=10,type=creeper]
  • To kill all arrows that are stuck in a target: kill @e[type=arrow,nbt={inBlockState:{Name:"minecraft:target"}}]

History

Java Edition Alpha
v1.2.6Added /kill. It currently deals 1000HP♥ × 500 damage.
Java Edition
1.3.112w16a/kill is now usable in singleplayer.
Parsing of the command is now more strict, rejecting extra characters after the command name (such as /killme or /killed). However, arguments are still ignored, meaning /kill playername still only kills the executor.
/kill now uses void damage instead of generic damage, bypassing armor. The death message is now "player fell out of the world" instead of "player died".
/kill now prints the message "Ouch! That looked like it hurt" on execution.
1.6.113w24b/kill now deals 2128 (~3.4×1038) damage.
1.814w02aAdded (player|entity) argument to /kill.
Replaced the "Ouch! That looked like it hurt" message with "Killed player".
14w02cTo fix MC-44371, /kill now directly kills non-living targets.
1.1317w45a<target> argument is no longer optional.
1.1519w38a<target> argument is once again optional.
1.20Pre-release 1/kill now uses generic_kill type damage instead of void damage.
Pocket Edition Alpha
v0.16.0build 1Added /kill.

Navigation