Quite simple, i want to make a food that instead of disappearing after use (like apple, beef etc) it uses some eu.
Here's the code, hope someone can help me.
Everything works, the only problem is that after use my item disappears.
That is the only problem.
Problem with eu and food.
-
-
Try adding ++var1.stacksize at The beginnin of onfoodeaten
-
Try adding ++var1.stacksize at The beginnin of onfoodeaten
It doesn't work -
Perhaps you could give the player the itemstack in that method, which basically does the same, but since it might be possible that in that function the itemstack isn't related to the player anymore ( already aten ) it might be possible that this way it might actually give it to the player