mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
Tall Grass now drops Melon and Pumpkin seeds with a probability of 1/15
This commit is contained in:
@@ -56,6 +56,12 @@ class TallGrassBlock extends FlowableBlock{
|
||||
if(mt_rand(1,15) === 1){//Beetroot Seeds
|
||||
$drops[] = array(BEETROOT_SEEDS, 0, 1);
|
||||
}
|
||||
if(mt_rand(1,20) === 1){//Melon Seeds
|
||||
$drops[] = array(MELON_SEEDS, 0, 1);
|
||||
}
|
||||
if(mt_rand(1,15) === 1){//Melon Seeds
|
||||
$drops[] = array(PUMPKIN_SEEDS, 0, 1);
|
||||
}
|
||||
return $drops;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user