
# -> Tag crucible
tag @s add OverlyRealistic.Block.CrucibleInteractedWith

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

# -> Interaction call
execute on target at @s run \
    function overly_realistic:general/custom_blocks/crucible/player_interact_with_crucible

# --> Interaction type events

# -> Remove items
execute if score #or.crucible_interaction_type OverlyRealistic.General.ArbitraryData matches 1 run \
    function overly_realistic:general/custom_blocks/crucible/crucible_remove_items

# -> Add item
execute if score #or.crucible_interaction_type OverlyRealistic.General.ArbitraryData matches 2 run \
    function overly_realistic:general/custom_blocks/crucible/crucible_add_item

# -> Untag crucible
tag @s remove OverlyRealistic.Block.CrucibleInteractedWith
