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.3, run: /kill @e[type=minecraft:ender_dragon] On Bedrock 1.26.62 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.
Recorded in-game checks for /kill: Java 26.3 (2026-11-18) and Bedrock 1.26.65 (2026-11-18). These historical checks cover recorded examples, not every generated command or current releases.
Bedrock 1.26.62 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.3 | Bedrock 1.26.62 |
|---|---|---|
| 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.
The ender dragon preset targets ender dragon entities in the edition you select. Test the command in a copy of your world before using it on a stuck fight. Check the fight, rewards, exit portal and boss bar separately after running it.
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. If a family filter is set, this generator blocks Java output. Remove the family filter or switch to Bedrock to generate the command. Bedrock also cannot randomize a sort=random order — it honors the count only.