diff --git a/smithed_libraries/packs/item/data/smithed.item/functions/impl/durability/damage/force/calc_unbreaking.mcfunction b/smithed_libraries/packs/item/data/smithed.item/functions/impl/durability/damage/force/calc_unbreaking.mcfunction index 22175a9..caa9173 100644 --- a/smithed_libraries/packs/item/data/smithed.item/functions/impl/durability/damage/force/calc_unbreaking.mcfunction +++ b/smithed_libraries/packs/item/data/smithed.item/functions/impl/durability/damage/force/calc_unbreaking.mcfunction @@ -8,7 +8,7 @@ execute store result score $unbreaking_lvl smithed.item run data get storage smi # check if the item is unbreakable scoreboard players set $unbreakable smithed.item 0 -execute store result score $unbreakable smithed.item run data get storage smithed.item:main item.tag.Unbreakable +execute store result score $unbreakable smithed.item run data get storage smithed.item:main item.tag.Unbreakable 1 execute unless score $unbreakable smithed.item matches 0 run scoreboard players set $unbreaking_lvl smithed.item -1 # if delta is positive (i.e. adding durability), ignore unbreaking diff --git a/smithed_libraries/packs/item/data/smithed.item/functions/impl/technical/load.mcfunction b/smithed_libraries/packs/item/data/smithed.item/functions/impl/technical/load.mcfunction index 292019e..a8a7f31 100644 --- a/smithed_libraries/packs/item/data/smithed.item/functions/impl/technical/load.mcfunction +++ b/smithed_libraries/packs/item/data/smithed.item/functions/impl/technical/load.mcfunction @@ -8,7 +8,4 @@ scoreboard players set 16 smithed.const 16 scoreboard players set 2 smithed.const 2 scoreboard players set 0 smithed.const 0 -scoreboard objectives add smithed.xp xp -scoreboard objectives add smithed.item.prev_xp dummy - #declare storage smithed.item:main