#Custom durability?
1 messages · Page 1 of 1 (latest)
however, you could theoretically make a custom durability system that more or less detects when the tool's durability changes and then changes something in the lore of that tool, and adjusts the real durability to the same relative percentage of the custom durability to create the illusion of custom durability, because you can change the current damage on a tool.
would probably be quite annoying to do because youd have to extrapolate the number from the lore into scoreboard form, subtract one, and turn it back to a string, which is pretty stupid annoying, but at least its possible
also if they have advanced tooltips on ofc they can see the normal durability too but if you make the custom durability like bright colors itll catch the eye more, lol
Smithed has a library that can handle custom durability but - again - it's unfortunately undocumented
https://github.com/Smithed-MC/Libraries/tree/main/smithed_libraries/packs/item
Unfortunately smithed's custom durability library is heavy, I recommend using Stoupy51's custom durability librairy, it's less precise but more optimized (cause instead of modifying multiple data in the item it only replace the durability with a random chance)
https://www.planetminecraft.com/data-pack/durability-multiplier-library-custom-durability/
https://github.com/Stoupy51/DurabilityMultiplier/blob/main/README.fr.md
More information on the github link Durability Multiplier A Minecraft data pack library for handling custom durability on every damageable item...
thats crazy, i needa start looking at more libraries
Yes, sadly it's hard to find libraries, I thing modrinth has a page "libraries" but other than that it's mainly just talking to people who know some libraries :/
Ok so modrinth has a page "library" but...
I don't really call that a library
This isn't a library either 😕
lol
that one actually is