
# -> If player is shifting then return and remove contents
execute if predicate overly_realistic:player/actions/player_is_shifting run \
    return run \
        execute as @n[type=interaction,tag=OverlyRealistic.Block.DryTinder,distance=..64,nbt={interaction:{}}] \
        at @s run \
            function overly_realistic:general/custom_blocks/dry_tinder/dry_tinder_remove_items_from_interaction

# -> Create campfire
execute as @n[type=interaction,tag=OverlyRealistic.Block.DryTinder,distance=..64,nbt={interaction:{}}] \
    if score @s OverlyRealistic.General.ArbitraryData matches 10.. \
    at @s \
    align xyz \
    positioned ~0.5 ~0.5 ~0.5 run \
        function overly_realistic:general/custom_blocks/dry_tinder/interactions/turn_into_campfire
