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

/clear ignores filter parameters when clearing inventory crafting grid

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: 20w07a
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                CHK: