mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Added naturally spawn mobs in world
enabling in extra.properties on "experemental-mob-features" code from mobtest3.2-test6
This commit is contained in:
parent
f2a4cf2337
commit
a75b4cc4de
4 changed files with 125 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ class Sheep extends Animal{
|
|||
parent::__construct($level, $eid, $class, $type, $data);
|
||||
$this->setHealth(isset($this->data["Health"]) ? $this->data["Health"] : 8, "generic");
|
||||
$this->setName("Sheep");
|
||||
$this->data["Sheared"] = isset($this->data["Sheared"]) ? $this->data["Sheared"] : 0;
|
||||
$this->data["Color"] = isset($this->data["Color"]) ? $this->data["Color"] : $this->sheepColor();
|
||||
$this->setSize($this->isBaby() ? 0.45 : 0.9, $this->isBaby() ? 0.675 : 1.3);
|
||||
$this->setSpeed(0.25);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue