A custom tool, how can i set a durability to it? With the green durability bar. For changing text on screen, e.g. coords, do i just call a button that does nothing but has changing text? If this is the case, please do not give me the code unless the changing text does not involve redrawing the button over and over again (more experience coding for me if that is the case).
I am using a code that sets the item you are holding to +1 damage(durability used up) every time you hit. The code works fine ans the item breams after enough uses, but you cannot see how much uses you have left. Is there any way to set the green durability bar on a custom item using patches(JavaScript)?
Yep. You can just set the items max damage using Item.setMaxDamage(id, damage);
Rollback Post to RevisionRollBack
Please give me an Internet. Please. Pretty Please with sprinkles on top
I have a twitter!! Follow me for regular updates on my mods! https://twitter.com/DamienMiller11
A custom tool, how can i set a durability to it? With the green durability bar. For changing text on screen, e.g. coords, do i just call a button that does nothing but has changing text? If this is the case, please do not give me the code unless the changing text does not involve redrawing the button over and over again (more experience coding for me if that is the case).
I have nothing to say...
Item.setMaxDamage(ID, durability);
If you want the text to change, just add a setText after onClick
The heck is this for
Nvm to the changing text question i discovered tooltips
I have nothing to say...
I am using a code that sets the item you are holding to +1 damage(durability used up) every time you hit. The code works fine ans the item breams after enough uses, but you cannot see how much uses you have left. Is there any way to set the green durability bar on a custom item using patches(JavaScript)?
I have nothing to say...
Yep. You can just set the items max damage using Item.setMaxDamage(id, damage);
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
Tried that and it worked i just thought you only use one or the other thanks
I have nothing to say...