mojira.dev
MC-75328

/clear doesn't clear items in the inventory crafting grid

The bug

When running a /clear command on a player to remove all their items, they're still able to prevent some items to be cleared simply by putting them in the crafting area in their inventory.

Comments 14

If you want to resolve this problem right now you can teleport the player right at his position and then right after clear his inventory. The teleportation make the players close their inventory, so they'll never have the time to put stuff in their crafting grid. I might be wrong, sorry, but if it's the case you have your solution.

teleporting a player doesn't close his inventory. You could teleport him to a nether portal though, for some reason a nether portal closes UIs. But it's a bit of a weird workaround

Might be intended because the items in none of the other GUIs are cleared (for example enchanting table) (in Minecraft 1.8)

Can confirm for MC 1.12.1.

Confirmed for 17w50a

4 more comments

Confirmed for 1.15.1

Confirmed for 1.15.2-pre2

Confirmed for 20w06a

This is not fixed for crafting tables, anvils, enchanting tables, looms, grindstones or cartography tables where the items are technically still in the player's inventory.

As this might be seen as a separate issue, I've created a separate bug report for it: MC-172496

Dang it! I use a hacked client to store things in the inventory crafting slots, now OPs can /clear it.

Jesper the End

kingbdogz

Confirmed

Low

Commands

Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.8, Minecraft 15w46a, Minecraft 16w42a, ..., Minecraft 18w50a, Minecraft 1.14 Pre-Release 4, 1.15.1, 1.15.2 Pre-release 2, 20w06a

20w07a

Retrieved