Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/kill

From SAS Gaming Wiki
Revision as of 22:18, 20 March 2026 by ~2026-RiverDonkeyBreeze5868 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Redirect Template:Infobox command

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

Usage

Directly kills living targets compulsorily (directly removes the entity) and prompts Killed <entity display name>, or Killed <number> entities if multiple entities are killed, which is irrespective of any of the targeted mob(s)' protective effects (Minecraft:armor, Minecraft:Protection and Minecraft:Resistance). However, the damage can be adjusted by the Minecraft:ender dragon. Minecraft:Totems of undying can't be triggered when their owner(s) die(s) because of this command.

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

Template:IN, Minecraft:ender dragons killed by this command will skip their death animation and immediately open the Minecraft:exit portal.

Template:IN, players in Minecraft:Creative mode cannot be killed using this command.

Syntax

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

Arguments

Template:Argument

Specifies the target(s) to kill. If not specified, defaults to the player who executed the command.
Template:Arg desc

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Output

Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table

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 (if there are too many entities, some won’t be killed.) : kill @e[type=!player]
  • To kill all creepers within 10 blocks:
  • To kill all arrows that are stuck in a Minecraft:target: kill @e[type=arrow,nbt={inBlockState:{Name:"minecraft:target"}}]Template:Only

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

External links

Navigation

Template:Navbox commands

Minecraft:de:Befehl/kill Minecraft:es:Comandos/kill Minecraft:fr:Commandes/kill Minecraft:it:Comandi/kill Minecraft:ja:コマンド/kill Minecraft:ko:명령어/kill Minecraft:pt:Comandos/kill Minecraft:ru:Команды консоли/kill Minecraft:uk:Команди консолі/kill Minecraft:zh:命令/kill