Closed Infernopickaxe closed 5 years ago
Minecraft doesn't support modifying the durability of a tool, so the concept of a higher durability tool doesn't make sense.
Instead items have a damage value which counts up until maxDamage is reached and the item is destroyed.
I suspect that maybe you are talking about enchantments, perhaps the item has a high level Unbreaking enchantment or something?
No I'm talking about durability Another client already has true durability On 2b2t we have "unbreakables" the durability of these items are in the thousands (max being the original durability + 32767) (The lowest durability possible is -32767 + the original durability of the item)
That doesn't make sense. The -32,768 to +32,767 is a 16bit short
, which enchantment levels are stored as. However damage
and maxDamage
are both stored as 32bit int
s which has a range of -2,147,483,648 to +2,147,483,647 ("durability" remaining is calculated on the fly as maxDamage - damage
).
I'd love to see a screenshot/gif/video/whatever of one of these items, or a /give
command of how they were originally hacked in (and in which version).
Do you have a discord?
Yes, here. Btw this probably a duplicate of #957
Yeah I just joined in github I didnt see that one
np it wouldn't have been easy to find since damage/durability isn't in the title. Anyway back on topic do you have anything showing the characteristics of these items? Have you interacted with these yourself or simply heard about them somewhere (if so where)?
Trying to find the screenshot
Add an extra line on the tooltip similar to this for damage information
I don't think this adds anything that the vanilla game doesn't already do. Vanilla already shows Durability: 3204/1561
, the only thing added in the screenshot is the damage (-1643)
which is - durability + maxDamage
(since durability = maxDamage - damage
)
Added in 4.6 - vanilla doesn't show the durability if damage is negative, so we added an option to make it always show.
For armor and tools that go above the normal durability amount as in 2b2t's "unbreakables" (not really unbreakable) I would like it if it displays in the armor hud, hovering over the item, and seeing it in player name tags (I believe the items have a high negative damage value)