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: Difference between revisions

From SAS Gaming Wiki
No edit summary
 
SyncBot (talk | contribs)
Remove broken links to missing pages
Line 5: Line 5:
* 2 {{only|java|short=1}}
* 2 {{only|java|short=1}}
* 1 {{only|bedrock|short=1}}
* 1 {{only|bedrock|short=1}}
| others = [[Minecraft:Cheat]] only{{only|bedrock|short=1}}
| others = Cheat only{{only|bedrock|short=1}}
}}
}}


Kills and removes [[Minecraft:Entity|entities]] (players, mobs, items, etc.).
Kills and removes entities (players, mobs, items, etc.).


== Usage ==
== Usage ==
Directly kills living targets compulsorily (directly removes the entity) and prompts <code>Killed <entity display name></code>, or <code>Killed <number> entities</code> 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.
Directly kills living targets compulsorily (directly removes the entity) and prompts <code>Killed <entity display name></code>, or <code>Killed <number> entities</code> if multiple entities are killed, which is irrespective of any of the targeted mob(s)' protective effects ([[Minecraft: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 kills mob(s), it issues the appropriate [[Minecraft:death message]]. Players and mobs killed this way [[Minecraft:Drops|drop loot]], and [[Minecraft:slime]]s and [[Minecraft:magma cube]]s that are not of minimum size spawn smaller ones. Non-mob entities disappear if they are targeted.
When the command kills 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}}, [[Minecraft:ender dragon]]s killed by this command will skip their death animation and immediately open the [[Minecraft:exit portal]].
{{IN|java}}, ender dragons killed by this command will skip their death animation and immediately open the exit portal.


{{IN|bedrock}}, players in [[Minecraft:Creative]] mode cannot be killed using this command.
{{IN|bedrock}}, players in Creative mode cannot be killed using this command.


==Syntax==
==Syntax==
Line 67: Line 67:
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java alpha}}
|{{HistoryLine|java alpha}}
|{{HistoryLine||v1.2.6|Added {{cmd|kill|link=none}}. It currently deals {{hp|1000}} [[Minecraft:damage]].}}
|{{HistoryLine||v1.2.6|Added {{cmd|kill|link=none}}. It currently deals {{hp|1000}} damage.}}
|{{HistoryLine|java}}
|{{HistoryLine|java}}
|{{HistoryLine||1.3.1|dev=12w16a|{{cmd|kill|link=none}} is now usable in singleplayer.|Parsing of the command is now more strict, rejecting extra characters after the command name (such as {{cmd|killme|link=none}} or {{cmd|killed|link=none}}).  However, arguments are still ignored, meaning {{cmd|kill playername|link=none}} still only kills the executor.|{{cmd|kill|link=none}} now uses void damage instead of generic damage, bypassing armor.  The death message is now "<var>player</var> fell out of the world" instead of "<var>player</var> died".|{{cmd|kill|link=none}} now prints the message "Ouch! That looked like it hurt" on execution.}}
|{{HistoryLine||1.3.1|dev=12w16a|{{cmd|kill|link=none}} is now usable in singleplayer.|Parsing of the command is now more strict, rejecting extra characters after the command name (such as {{cmd|killme|link=none}} or {{cmd|killed|link=none}}).  However, arguments are still ignored, meaning {{cmd|kill playername|link=none}} still only kills the executor.|{{cmd|kill|link=none}} now uses void damage instead of generic damage, bypassing armor.  The death message is now "<var>player</var> fell out of the world" instead of "<var>player</var> died".|{{cmd|kill|link=none}} now prints the message "Ouch! That looked like it hurt" on execution.}}
Line 91: Line 91:
{{Navbox commands}}
{{Navbox commands}}


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

Revision as of 15:44, 9 April 2026

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, 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 kills 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.

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

Template:IN, players in 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

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