Apotheosis

Apotheosis

90M Downloads

Reforging items till they're unbreakable causes a durability bonus of 0% until next reforge

James103 opened this issue ยท 1 comments

commented

When reforging items using Godforged Pearls, when a reforge result rolls the Unbreakable tag, the durability bonus shows up as "This item ignores 0% of durability damage," which is incorrect as the item is unbreakable. Instead the bonus should read "This item ignores 100% of durability damage."

Command to place a shulker box containing an item showing this behavior:

setblock ~ ~ ~ minecraft:shulker_box[facing=up]{Items:[{Slot:13b,components:{"apotheosis:affix_name":{color:"#ED7014",translate:"misc.apotheosis.affix_name.three",with:[{translate:"affix.apotheosis:melee/festive"},{translate:"item.minecraft.netherite_sword"},{translate:"affix.apotheosis:melee/attribute/infernal.suffix"}]},"apotheosis:affixes":{"apotheosis:melee/attribute/forceful":0.96945393f,"apotheosis:melee/attribute/giant_slaying":0.5990131f,"apotheosis:melee/attribute/infernal":0.4655013f,"apotheosis:melee/attribute/lacerating":0.34401983f,"apotheosis:melee/cleaving":0.843075f,"apotheosis:melee/festive":0.36884046f,"apotheosis:melee/mob_effect/omniscient":0.5945949f},"apotheosis:durability_bonus":0.0f,"apotheosis:rarity":"apotheosis:mythic","apotheosis:sockets":4,"minecraft:unbreakable":{}},count:1,id:"minecraft:netherite_sword"}]}

Tooltip of the item within the above shulker box:
image

Reforging such items again changes the durability bonus again to a non-zero and non-100% value.

Mod list:

Apotheosis-1.21.1-8.0.0
ApothicAttributes-1.21.1-2.5.0
ApothicEnchanting-1.21.1-1.2.4
ApothicSpawners-1.21.1-1.1.1
cloth-config-15.0.140-neoforge
emi_enchanting-0.1.2+1.21+neoforge
emi-1.1.18+1.21.1+neoforge
NoChatReports-NEOFORGE-1.21.1-v2.9.1
Patchouli-1.21-87-NEOFORGE
Placebo-1.21.1-9.6.1
commented