mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
fixed more tasks
This commit is contained in:
parent
bcf7ef7c79
commit
2636aa985d
15 changed files with 64 additions and 20 deletions
|
|
@ -13,7 +13,7 @@ class SpawnEggItem extends Item{
|
|||
"x" => $block->x + 0.5,
|
||||
"y" => $block->y,
|
||||
"z" => $block->z + 0.5,
|
||||
"IsBaby" => $ageable ? Utils::chance(5) ? 1 : 0 : 0
|
||||
"IsBaby" => $ageable ? mt_rand(0, 5) == 0 ? 1 : 0 : 0
|
||||
);
|
||||
$e = ServerAPI::request()->api->entity->add($block->level, ENTITY_MOB, $this->meta, $data);
|
||||
ServerAPI::request()->api->entity->spawnToAll($e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue