This commit is contained in:
Sunch 2025-01-12 20:26:18 +08:00
parent 165388c8ae
commit 761ac69a20
13 changed files with 7 additions and 23 deletions

View file

@ -39,11 +39,8 @@ class GrassBlock extends SolidBlock{
$chance = lcg_value() * 100;
if($chance <= 1){
ServerAPI::request()->api->entity->drop(new Position($this->x+0.5, $this->y+1, $this->z+0.5, $this->level), BlockAPI::getItem(BEETROOT_SEEDS,0,1), 10);
return;
}
elseif($chance > 1 and $chance <= 16){
}elseif($chance > 1 and $chance <= 16){
ServerAPI::request()->api->entity->drop(new Position($this->x+0.5, $this->y+1, $this->z+0.5, $this->level), BlockAPI::getItem(SEEDS,0,1), 10);
return;
}
}
public static function onRandomTick(Level $level, $x, $y, $z){