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

/clear ignores filter parameters when clearing inventory crafting grid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 20w07a
    • None
    • Confirmed
    • (Unassigned)

      The /clear command has a parameter that you can use to filter what items the command should clear and how many of the given item there should be cleared

      The item filter is ignored when /clear clears items in players' inventory crafting grids.

      How to recreate:
      Place a command block and put the command /clear @p stone 1 into the command block.
      Place a button which activates the command block after some time (eg by using repeaters)
      Press the button
      Open your inventory and put a stack of stone and a stack of dirt into your crafting grid
      Wait for the clear command to run.
      See both the dirt blocks all the stone was cleared even though only 1 stone block should have been cleared

            Unassigned Unassigned
            Vilder50 Vilder50
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: