Separate names with a comma.
Comments in 'Plugin Development' started by mamayadesu, Jul 18, 2015.
What event occurs when player eating food? Example with function, please.
That doesn't get fired for cakes. You need to use EntityRegainHealthEvent, checking that the cause is CAUDE_EATING. Search for a recent thread.
Hmm... ItemConsumeEvent work for me...
For cake too?
For cake - PlayerInteractEvent.
And EntityRegainHealthEvent can simply do both together...
Wow! I didn't know that there was this event