mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Update Grass.php // Pumpkin, Melon seeds.
Легальное получение семена тыквы и семена арбуза через вспахивание травы.
This commit is contained in:
parent
1f13444724
commit
7510676c5c
1 changed files with 9 additions and 1 deletions
|
|
@ -42,6 +42,14 @@ class GrassBlock extends SolidBlock{
|
|||
ServerAPI::request()->api->entity->drop(new Position($this->x+0.5, $this->y+1, $this->z+0.5, $this->level), BlockAPI::getItem(295,0,1));
|
||||
return;
|
||||
}
|
||||
elseif($chance > 1 and $chance <= 17){
|
||||
ServerAPI::request()->api->entity->drop(new Position($this->x+0.5, $this->y+1, $this->z+0.5, $this->level), BlockAPI::getItem(361,0,1));
|
||||
return;
|
||||
}
|
||||
elseif($chance > 1 and $chance <= 18){
|
||||
ServerAPI::request()->api->entity->drop(new Position($this->x+0.5, $this->y+1, $this->z+0.5, $this->level), BlockAPI::getItem(362,0,1));
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -58,4 +66,4 @@ class GrassBlock extends SolidBlock{
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue