Tall Grass now drops Melon and Pumpkin seeds with a probability of 1/15

This commit is contained in:
Shoghi Cervantes 2013-11-26 12:46:30 +01:00
parent 02150da862
commit 35119befd9

View File

@ -56,6 +56,12 @@ class TallGrassBlock extends FlowableBlock{
if(mt_rand(1,15) === 1){//Beetroot Seeds if(mt_rand(1,15) === 1){//Beetroot Seeds
$drops[] = array(BEETROOT_SEEDS, 0, 1); $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; return $drops;
} }