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

/clear deleting unwanted items

    XMLWordPrintable

    Details

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

      Description

      I was working on a datapack that needs to remove a specific item from a player's inventory with a custom tag using the /clear command. For some reason, if I am running this command every tick, it deletes any block that you put into a crafting table or the crafting menu in your survival inventory. It does not affect any block in your inventory until it gets placed in the crafting menu.

       

      Here is an example of the command I am using. I changed the scoreboard to "scoreboard" and item tag to "customtag" for convenience sake:

      /execute as @a store result score @s scoreboard run clear @s stick{customtag:1} 1

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ninjanoah5 Noah Ramirez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: