
# -> Store item
item replace entity 00000001-0000-002b-0000-00010000002b contents from entity @s weapon.mainhand

# -> Damage item
execute store result score #or.tongs_damage OverlyRealistic.General.ArbitraryData run \
    data get entity 00000001-0000-002b-0000-00010000002b item.components."minecraft:damage"
execute store result score #or.tongs_damage_max OverlyRealistic.General.ArbitraryData run \
    data get entity 00000001-0000-002b-0000-00010000002b item.components."minecraft:max_damage"
execute if score #or.tongs_damage OverlyRealistic.General.ArbitraryData >= #or.tongs_damage_max OverlyRealistic.General.ArbitraryData run \
    return run \
        function overly_realistic:players/items/hot_items/tongs_break/tongs_break_mainhand
execute store result entity 00000001-0000-002b-0000-00010000002b item.components."minecraft:damage" int 1 run \
    scoreboard players add #or.tongs_damage OverlyRealistic.General.ArbitraryData 1

# -> Return item
item replace entity @s weapon.mainhand from entity 00000001-0000-002b-0000-00010000002b contents
