Posted June 13, 201411 yr Hello MCF Forums, I would like to know if there was a way to change the texture of a tools as it gets damaged?
June 13, 201411 yr Yes you could run a check of the said items durabillity and link to an if statement defining texture, or you could set up multiple items with different starting durabilities and as they reach a certain level they're replaced with a weaker variant with the different texture
June 14, 201411 yr The method you will want is getIconFromDamage(int damage). Depending on the damage passed, return a different IIcon to be rendered. http://i1279.photobucket.com/albums/y523/textcraft/Jun%202014%20-%202/a77dd69ddfa9e622422c5e5cd7e377b14d5cdedec1b7a8e19dde68c9e22be6dfbf81219d3893f419da39a3ee5e6b4b0d3255bfef95601890afd8070929aa338b0dfc68d48355_zps0c847cf3.png[/img] I have a reputation for text walls. If you ask me a question I will most likely explain it in the most wordy way possible. -0 characters left
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.