# item:wooden_dagger/attack
# called by advancement: item:attack/wooden_dagger

## Mainhand
execute if data entity @s {SelectedItem:{components:{"minecraft:custom_data":{magical_addons:{id:"wooden_dagger"}}}}} run function magical_addons:item/wooden_dagger/attack_mainhand with entity @s SelectedItem.components."minecraft:custom_data".magical_addons

## Reset
advancement revoke @s from magical_addons:---/item/attack