Remove mobs, dropped items, XP orbs or a stuck ender dragon on Java and Bedrock — with the exact entity-selector filter you need.
To remove a stuck ender dragon in Minecraft Java 26.2, run: /kill @e[type=minecraft:ender_dragon] On Bedrock 1.26.30 the entity ids are bare (no minecraft: prefix) and range filters use rm/r instead of distance — this generator builds the correct form for both editions and flags anything one edition can't express.
Leave blank to match every entity.
/kill @e[type=minecraft:ender_dragon]Command output is generated for Java 26.2 and Bedrock 1.26.30 and was last paste-verified in-game on 2026-07-10.
Bedrock 1.26.30 uses the same /kill command but a different selector grammar: range filters use rm/r instead of distance, the max count uses c instead of limit, and family= is Bedrock-only. This generator emits the correct form for whichever edition you pick:
| Feature | Java 26.2 | Bedrock 1.26.30 |
|---|---|---|
| The same command | /kill @e[type=minecraft:ender_dragon] | /kill @e[type=ender_dragon] |
| Entity type ids | type=minecraft:zombie | type=zombie |
| Distance filter | distance=3..10 | rm=3,r=10 |
| Entity family filter (family=…) | Not supported | Supported |
| Random order (sort=random) | Supported | The count is honored, but the order is not randomized |
/kill removes the targeted entities immediately, bypassing the normal death sequence. With no target it kills whoever runs it; with a selector like @e[type=…] it removes every matching entity in loaded chunks. It is the fastest way to clear mobs, dropped items or a bugged entity.
/kill @e[type=ender_dragon] removes the dragon entity on both editions and is the usual fix for a wedged fight — a dragon that will not take damage, or a lingering boss bar. Because /kill skips the scripted defeat it drops no XP, spawns no exit portal or dragon egg, and does not trigger the End poem; if you want those rewards, let the dragon die by damage instead. A dragon created with /summon or a spawn egg is not registered with the End fight controller, so it can leave a lingering boss bar that may need a separate cleanup (on Java, /bossbar remove …).
Use @e[type=!player] to remove every non-player entity — but note this also deletes items, XP orbs, armor stands, minecarts, boats, item frames and paintings, not just mobs. To clear only dropped items use @e[type=item]; for XP orbs use @e[type=experience_orb] and the generator writes Bedrock’s xp_orb id for you.
Yes — the command name is the same. This generator maps the filters to Bedrock’s grammar: distance becomes rm/r, limit becomes c, and the family= filter is Bedrock-only (it is dropped on Java with a note). Bedrock also cannot randomize a sort=random order — it honors the count only.