get entity names or sizes by eids or instances

This commit is contained in:
GameHerobrine 2022-09-25 00:49:56 +03:00
parent 53928f4e88
commit 69d4e52d44
12 changed files with 35 additions and 12 deletions

View file

@ -8,7 +8,7 @@ class Chicken extends Animal{
$server->schedule(mt_rand(0,6000) + 6000, array($this, "dropAnEgg"));
$this->setHealth(isset($this->data["Health"]) ? $this->data["Health"] : 4, "generic");
$this->update();
//$this->setName('Chicken');
$this->setName('Chicken');
$this->size = $this->isBaby() ? 0.35 : 0.7;
}
public function isFood($id){