From 7510676c5ccd4038fd5f8e28909e9540eaf326bb Mon Sep 17 00:00:00 2001 From: Tema1d <84407490+Tema1d@users.noreply.github.com> Date: Sat, 30 Jul 2022 11:32:08 +0300 Subject: [PATCH] Update Grass.php // Pumpkin, Melon seeds. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Легальное получение семена тыквы и семена арбуза через вспахивание травы. --- src/material/block/solid/Grass.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/material/block/solid/Grass.php b/src/material/block/solid/Grass.php index 4b5ec7df..9b9ee0fd 100644 --- a/src/material/block/solid/Grass.php +++ b/src/material/block/solid/Grass.php @@ -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{ } } -} \ No newline at end of file +}