Hey there, first of all: I couldn't really think of a good title for my problem, so I picked the one you can see above, although it might not be completely accurate as I don't even know where the exact problem lies. So basically I am trying to change the output damage of sword swings according to the damagers food level. The higher the foodlevel is, the higher is the damage you deal to your enemies. In theory this should work (if I dind't make some stupid mistakes that I just don't recognize) with the code I've written. The strange thing is that it sometimes works and sometimes doesn't. Here is my code: http://pastebin.com/A9Q5qp0g http://pastebin.com/cvi81BNz I was quite confused about this effect so I made a method to check my current food level and print it on the chat. If you look at the code you will see that when using an iron sword, you should deal 2.5 hearts damage when your food bar is full (20/20). So when I check my food level, it sais 20 and I hit an enemy with the iron sword. Sometimes it does work and I deal 2.5 hearts damage, and sometimes it doesn't work and I only deal 0.5 hearts damage. I can't think of any mistakes I make ingame or reasons why it sometimes doesn't deal the right amount of damage, especially because I always check my food level before hitting someone and in both cases it's 20. Do you guys have an idea why this is happening?