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

/clear deleting unwanted items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 20w19a
    • None
    • Unconfirmed
    • (Unassigned)

      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

            Unassigned Unassigned
            ninjanoah5 Netrovek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: