
# -> Wooden spear
execute if items entity 00000001-0000-002b-0000-00010000002b contents *[custom_data~{or_tool_type_specific:"wooden_spear"}] run \
    return run \
        function overly_realistic:players/misc/spear/spear_damage_instant/spear_damage/remcol_wooden_spear

# -> Stone spear
execute if items entity 00000001-0000-002b-0000-00010000002b contents *[custom_data~{or_tool_type_specific:"stone_spear"}] run \
    return run \
        function overly_realistic:players/misc/spear/spear_damage_instant/spear_damage/remcol_stone_spear

# -> Copper spear
execute if items entity 00000001-0000-002b-0000-00010000002b contents *[custom_data~{or_tool_type_specific:"copper_spear"}] run \
    return run \
        function overly_realistic:players/misc/spear/spear_damage_instant/spear_damage/remcol_copper_spear

# -> Iron spear
execute if items entity 00000001-0000-002b-0000-00010000002b contents *[custom_data~{or_tool_type_specific:"iron_spear"}] run \
    return run \
        function overly_realistic:players/misc/spear/spear_damage_instant/spear_damage/remcol_iron_spear
