execute as @e[tag=miner.getpick,type=minecraft:interaction] on target run function ws:work/misc/tier2/miner/getpick
execute as @e[tag=miner.mine,type=minecraft:interaction] on target run function ws:work/misc/tier2/miner/gotomine
execute as @e[tag=miner.generate,type=minecraft:interaction] on target run function ws:work/misc/tier2/miner/regeneratemine
execute as @e[tag=miner.sell,type=minecraft:interaction] on target run function ws:work/misc/tier2/miner/sell
execute as @e[tag=miner.extract,type=interaction] run function ws:work/misc/tier2/miner/resonate
execute as @a[tag=mining,team=miner] run function ws:work/misc/tier2/miner/mined/check
kill @e[type=item,nbt={Item:{id:"minecraft:golden_pickaxe"}}]