Sorry, I gave the wrong link. Here it is: https://github.com/PocketMine/Pocke...3589b64/src/pocketmine/entity/Entity.php#L597
some says its broken. im not sure if this works but try this: (Make sure you have added EntityRegainHealth class) $healValue = 1; $player->heal($healValue, new EntityRegainHealthEvent($player, $healValue, EntityRegainHealthEvent::CAUSE_EATING));