function main:mechanics/interaction/weapon/clear
##calc
function main:settings/stats/attack_speed/calculation
function main:settings/stats/calculation

execute as @s[predicate=main:holding/stroke_glove] at @s run function main:characters/gadget/gadget/use {"type":"pickup"}

$execute as @s[scores={attack_speed=..0}] run function main:mechanics/artifacts/inputs/weapon {"character":$(character)}

##ID
$execute as @s[scores={attack_speed=..0},tag=$(character),predicate=main:holding/rod] at @s anchored eyes run function main:characters/$(character)/weapon/id$(weapon)/id$(weapon) with storage player_data 1
