mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 19:55:33 +00:00
Tall Grass can now drop Carrots, potatoes, beetroot seeds
This commit is contained in:
parent
2044269d86
commit
02150da862
@ -47,6 +47,15 @@ class TallGrassBlock extends FlowableBlock{
|
|||||||
if(mt_rand(1,10) === 1){//Seeds
|
if(mt_rand(1,10) === 1){//Seeds
|
||||||
$drops[] = array(WHEAT_SEEDS, 0, 1);
|
$drops[] = array(WHEAT_SEEDS, 0, 1);
|
||||||
}
|
}
|
||||||
|
if(mt_rand(1,15) === 1){//Carrots
|
||||||
|
$drops[] = array(CARROT, 0, 1);
|
||||||
|
}
|
||||||
|
if(mt_rand(1,15) === 1){//Potatoes
|
||||||
|
$drops[] = array(POTATO, 0, 1);
|
||||||
|
}
|
||||||
|
if(mt_rand(1,15) === 1){//Beetroot Seeds
|
||||||
|
$drops[] = array(BEETROOT_SEEDS, 0, 1);
|
||||||
|
}
|
||||||
return $drops;
|
return $drops;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user