Run these from an operator’s chat, a command block, or the server console. Rotate, Swing and Display Entity use newer command/entity features — check they’re available on your Minecraft version.

How to Use the Kill Command Generator

  1. Leave the target box empty to kill the command’s own executor (an operator killing themselves).
  2. Or enter a target selector such as @e[type=minecraft:zombie], @e (every entity), or a player name to kill something else.
  3. Copy the generated /kill command into a command block, the console, or an operator’s chat.

Command Syntax Reference

/kill [target]

With no target, /kill kills whoever ran the command. With a target selector, it kills every entity the selector matches – /kill @e[type=item], for instance, clears every dropped item currently on the ground, and /kill @e[type=!minecraft:player] kills every non-player entity in the loaded world.

Frequently Asked Questions

Does a Totem of Undying save an entity from /kill?

No. /kill is treated like void damage rather than a normal damage source, so it bypasses effects that intercept lethal damage – including the Totem of Undying. It’s one of the few guaranteed ways to remove an entity regardless of what it’s holding or wearing.

Will /kill drop the entity’s inventory and XP?

Yes for most mobs – a killed entity still runs its normal death event, so item drops, loot tables, and (for hostile mobs) experience orbs trigger exactly as if it died in combat.

Can I use /kill to clear all dropped items or projectiles?

Yes – target selectors make this a common cleanup command, e.g. /kill @e[type=minecraft:item] for dropped items or /kill @e[type=minecraft:arrow] for stray arrows, without touching mobs or players.

Is /kill the same on Bedrock Edition?

The base syntax is similar, but exact protections for things like Creative-mode players differ between editions – this generator outputs Java Edition syntax and behavior.

Related Tools