mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39: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
|
|
@ -17,6 +17,10 @@ class EntityAPI{
|
|||
$this->server->api->console->register("summon", "<mob>", [$this, "commandHandler"]);
|
||||
$this->server->api->console->register("spawnmob", "<mob>", [$this, "commandHandler"]);
|
||||
$this->server->api->console->register("despawn", "", [$this, "CommandHandler"]);
|
||||
|
||||
if(($this->serverSpawnAnimals or $this->serverSpawnMobs) and Entity::$updateOnTick){
|
||||
(new MobSpawner())->init();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue