data remove entity @n[tag=miner.generate] interaction
execute unless entity @s[team=miner] run return 0
execute unless entity @e[type=item_display,tag=miner.startpos] run return 0
function ws:work/misc/tier2/miner/destroymine
data merge entity @e[tag=miner.generate.text,limit=1,type=text_display] {text:'{"translate":"miner.generate","color":"dark_gray"}'}
execute at @s run playsound minecraft:entity.generic.explode block @a ~ ~-27 ~ 2 0