Separate names with a comma.
Comments in 'Plugin Development' started by TryoneLegendZzz, Apr 8, 2016.
Can i change how much hunger you gain via a plugin from eating?
Yeah. Use PlayerItemConsumeEvent.
No, that event doesn't let you change the hunger value.
You should use EntityEatEvent.
There are also setAdditionalEffects(Effect) and setResidue(). For an EntityEatItemEvent, residue must be an item. For an EntityEatBlockEvent (for cakes), residue must be a block.