So I'm trying to do something like if i eat a rotten flesh i get hunger but if i hit another play they get poison.
klosjaarrr mine-care Gamecube762 so umm i don't know if it will work but maybe On player damage if the attacker has hunger the (person getting hit) will have poison. Some thing wat zombies do to people.
AKS JEFFREY You want an onItemConsumeEvent (I believe that is what is called) regarding eating rotten flesh. Then you may add hunger to their food level (Player#getFoodLevel()). As for your other problem, listen for an EntityDamageByEntityEvent.