In an adventure map i'd like to make it so when the player drops a certain item in their inventory, the datapack will instantly execute a function as that item (in order to give it back to the player and then kill itself).
the give command i used to give it was this:
/give @a iron_pickaxe[item_model="minecraft:shears",can_break=[{blocks:"waxed_oxidized_copper_grate"}],item_name="Wire cutters"]
i am unsure how to translate this to nbt so i can target item type entities with that specific data.
i'm on 26.1.1 and my goal is to basically prevent the player from losing that item since its their main tool throughout the map.
if there is a way to just tag that specific item so i only have to target a specific nbt feild that would be great too. i just need a way to target that specific item when it gets dropped.