-
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
- duplicates
-
MC-172272 /clear removes all items from crafting grid regardless of item type
- Resolved