Ad · Sztuka HarmoniiAdConsultations and ADHD assessment in English · −50% off your first visit · Sztuka HarmoniiPsychologist in English · −50% · Sztuka HarmoniiBook
Discord
Ad · Sztuka HarmoniiConsultations and ADHD assessment in EnglishPsychologist in EnglishIn Gdańsk, Gdynia or online.−50%off your first visitBook an appointmentBook

/kill command

The /kill command instantly kills the entity or player you specify. With no arguments, it kills whoever runs it. With selectors, you can get rid of specific mob types, items on the ground or all entities at once.

Entities and mobs OP 2 since Beta 1.3

Syntax

Java and Bedrock Edition

/kill [target]

Parameters in <angle brackets> are required. Parameters in [square brackets] are optional.

Parameters

Parameter Type Required Description
target selector/player No The entity to kill. Without an argument, the command kills whoever runs it. @e targets all entities, including players.

Usage examples

Example 1
/kill

Kills you. Handy when you get stuck inside a block or fall into the void.

Example 2
/kill @e[type=!player]

Kills all entities except players: mobs, items on the ground, arrows, vehicles, everything.

Example 3
/kill @e[type=zombie,distance=..50]

Kills all zombies within 50 blocks of you.

Example 4
/kill @e[type=item]

Removes all items lying on the ground. Helps with lag when there are lots of dropped items.

Example 5
/kill @e[type=creeper]

Wipes out every creeper on the server. Peaceful building guaranteed.

Tips and tricks

*

The type=!player filter keeps players from getting killed by accident. Always use it when you want to clear entities on a server.

*

/kill @e without filters kills EVERYTHING, including players and minecarts. Use it with care on a server with other players.

*

On a laggy server, /kill @e[type=item] is the first fix to try. Removing thousands of dropped items from the ground improves TPS instantly.

*

Combine it with /execute to kill mobs only in a specific biome or area.

Related commands

Frequently asked questions

How do you use the /kill command in Minecraft?

Open the chat with the T or / key and type the command using this syntax: /kill [target]. The /kill command instantly kills the entity or player you specify. With no arguments, it kills whoever runs it. With selectors, you can get rid of specific mob types, items on the ground or all entities at once.

What permissions does /kill require?

The /kill command requires permission level 2: Operator (OP 2). In singleplayer with cheats turned on, you automatically have full permissions. On a multiplayer server, you need operator status, which is granted with the /op command.

Does /kill work in Bedrock Edition?

Yes, the /kill command works in both Java Edition and Bedrock Edition, with similar syntax.