
# -> Damage shears (offhand)
item replace entity 00000001-0000-002b-0000-00010000002b contents from entity @s weapon.offhand
scoreboard players set #or.shears_damage_from_shearing OverlyRealistic.General.ArbitraryData 0
execute store result score #or.shears_damage_from_shearing OverlyRealistic.General.ArbitraryData run \
    data get entity 00000001-0000-002b-0000-00010000002b item.components."minecraft:damage"
execute if score #or.shears_damage_from_shearing OverlyRealistic.General.ArbitraryData matches 238.. run \
    return run \
        item replace entity @s weapon.offhand with air
execute if score #or.player_using_iron_shears OverlyRealistic.General.ArbitraryData matches 1 \
    if score #or.shears_damage_from_shearing OverlyRealistic.General.ArbitraryData matches 138.. run \
        return run \
            item replace entity @s weapon.offhand with air
scoreboard players add #or.shears_damage_from_shearing OverlyRealistic.General.ArbitraryData 1
execute store result entity 00000001-0000-002b-0000-00010000002b item.components."minecraft:damage" int 1 run \
    scoreboard players get #or.shears_damage_from_shearing OverlyRealistic.General.ArbitraryData
item replace entity @s weapon.offhand from entity 00000001-0000-002b-0000-00010000002b contents
