mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 13:35:29 +00:00
Gravel is able to drop Flint
This commit is contained in:
parent
8192b41693
commit
e67a7a510e
@ -30,4 +30,15 @@ class GravelBlock extends FallableBlock{
|
||||
parent::__construct(GRAVEL, 0, "Gravel");
|
||||
}
|
||||
|
||||
public function getDrops(Item $item, Player $player){
|
||||
if(mt_rand(1,10) === 1){
|
||||
return array(
|
||||
array(FLINT, 0, 1),
|
||||
);
|
||||
}
|
||||
return array(
|
||||
array(GRAVEL, 0, 1),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user