data remove entity @n[tag=miner.mine] interaction
execute unless entity @s[team=miner] run return 0
execute unless entity @e[tag=miner.startpos] run function ws:work/misc/tier2/miner/createmine
data merge entity @e[tag=miner.generate.text,limit=1,type=text_display] {text:'{"translate":"miner.generate","color":"dark_red"}'}
tag @s add mining
execute at @n[tag=miner.startpos] run tp @s ~ ~ ~ ~ ~
forceload remove all