data remove entity @n[tag=miner.getpick] interaction
execute unless entity @s[team=miner] run return 0
execute if entity @s[nbt={Inventory:[{id:"minecraft:golden_pickaxe"}]}] run return 0
give @s golden_pickaxe[tool={default_mining_speed:5,rules:[{correct_for_drops:true,blocks:["coal_ore","copper_ore","iron_ore","gold_ore","lapis_ore","redstone_ore","emerald_ore","diamond_ore","amethyst_block","nether_quartz_ore","ancient_debris","prismarine"]}]},can_break={predicates:[{blocks:"coal_ore"},{blocks:"copper_ore"},{blocks:"iron_ore"},{blocks:"gold_ore"},{blocks:"redstone_ore"},{blocks:"lapis_ore"},{blocks:"emerald_ore"},{blocks:"diamond_ore"},{blocks:"nether_quartz_ore"},{blocks:"amethyst_block"},{blocks:"prismarine"},{blocks:"ancient_debris"}],show_in_tooltip:false},unbreakable={}] 1