execute unless entity @e[type=item,tag=KyuMiningCatalyst] run data merge block ~ ~ ~ {auto:0b}
execute as @e[type=item,tag=KyuMiningCatalyst] run execute at @s run execute unless entity @e[distance=..40,tag=KyuPreventMiningCatalystStructure] run scoreboard players add @s KyuDummy 1

execute as @e[type=item,tag=KyuMiningCatalyst,scores={KyuDummy=60..}] run execute at @s run function zzzzdonotuse:specialitems/miningcatalyst/miningcatalystexplode