
# -> Get item
item replace block -29999985 2 -29999985 container.0 from entity @s weapon.mainhand

# -> Decrease durability
scoreboard players set #or.axe_durability_from_stripping_log OverlyRealistic.General.ArbitraryData 0
execute store result score #or.axe_durability_from_stripping_log OverlyRealistic.General.ArbitraryData run \
    data get block -29999985 2 -29999985 Items[0].components."minecraft:damage"
execute store result block -29999985 2 -29999985 Items[0].components."minecraft:damage" int 1 run \
    scoreboard players add #or.axe_durability_from_stripping_log OverlyRealistic.General.ArbitraryData 1

# -> Restore item
item replace entity @s weapon.mainhand from block -29999985 2 -29999985 container.0
