Update Grass.php // Pumpkin, Melon seeds.

Легальное получение семена тыквы и семена арбуза через вспахивание травы.
This commit is contained in:
Tema1d 2022-07-30 11:32:08 +03:00 • committed by GitHub
parent 1f13444724
commit 7510676c5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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{
}
}
}
}