
# -> Reset adv trigger
advancement revoke @s only overly_realistic:blocks/per_custom_block_interactions/fire_starter/break_custom_block

# -> Tag player
tag @s add OverlyRealistic.Player.BrokeCustomBlock

# -> Run breaking function
execute as @e[type=interaction,tag=OverlyRealistic.Block.FireStarter,distance=..64] \
    at @s \
    align xyz \
    positioned ~0.5 ~0.5 ~0.5 run \
        function overly_realistic:general/custom_blocks/fire_starter/per_block_interaction/break_block_filter

# -> Untag player
tag @s remove OverlyRealistic.Player.BrokeCustomBlock
