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

/clear deleting unwanted items


    • 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
            0 Vote for this issue
            0 Start watching this issue