Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-172079

The /clear command output doesn't count items in the inventory crafting grid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w22a
    • 20w07a, 20w09a, 20w19a, 20w20b
    • None
    • Confirmed
    • Commands
    • Normal

      The bug

      Normally the /clear command returns how many items it has cleared from a person's inventory. But /clear does not count the items which were in the player's inventory crafting grid.

      To reproduce

      1. Place a command block and put the command /clear @p into the command block.
      2. Place a button which activates the command block after some time (eg by using repeaters)
      3. Press the button
      4. Open your inventory and put an item into your crafting grid.
      5. Wait for the clear command to run.
      6. Open the command block and see "Previous Output" says no items were found even though it found and cleared your items.

            mgatland [Mojang] Matthew Gatland
            Vilder50 Vilder50
            Votes:
            10 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: