Topic category: Help with Minecraft modding (Java Edition)
I have a block I'm working on to repair stuff, everything works fine except the part where it checks for the items durability.. I had to working fine yesterday but I played around with the procedure without saving a backup of it and now I can't get it to work..
I'm not putting the whole procedure in the pic, only the part I'm having trouble with..
What it's supposed to do is if durability is less than max durability then repair, else not repair and say it has already been done.
What's happening is it's repairing each time and I don't remember how I had it when it was working, I swear it is the same way, and it was working last night.
Now I can't get it to work.. :(
Anyone see what I'm missing?
Working with MC 1.15.2 and Mcreator 2020.3..
damage is always less than the max damage unless your max damage is 0. durability = max_damage - damage
Any idea how to do this then? I can't remember how I had it to get it to work.
if damage > 0 do whatever
I am so stupid :( I shouldn't have had to ask for help, I should have known this by now..
Thank you much ahznb :), it is much appreciated!!.