Posted August 29, 20169 yr Hi / looked ordinary food, but did not find that the method that is responsible for what would by eating raw food with full of chance to give the player the effect of hunger. Where to see this percentage?
August 29, 20169 yr Vanilla uses ItemFood#setPotionEffect to set the potion effect of raw chicken and rotten flesh to Hunger, applied on a 30% chance for raw chicken and an 80% chance for rotten flesh. ย You can call this with 1.0f as the second argument to always apply a potion effect when eating a food item. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.