
# -> If stick count >= 10 then set as campfire
execute if score @s OverlyRealistic.General.ArbitraryData matches 10.. run \
    return run \
        function overly_realistic:general/custom_blocks/dry_tinder/interactions/turn_into_campfire

# -> Reset interaction type
scoreboard players set #or.dry_tinder_interaction_type OverlyRealistic.General.ArbitraryData 0

# -> Function call
execute on target run \
    function overly_realistic:general/custom_blocks/dry_tinder/player_interact_with_dry_tinder

# --> Interaction types

# -> Placed stick
execute if score #or.dry_tinder_interaction_type OverlyRealistic.General.ArbitraryData matches 1 run \
    function overly_realistic:general/custom_blocks/dry_tinder/interactions/add_stick

# -> Remove items
execute if score #or.dry_tinder_interaction_type OverlyRealistic.General.ArbitraryData matches 2 run \
    function overly_realistic:general/custom_blocks/dry_tinder/dry_tinder_remove_items_from_interaction
