mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Gravel is able to drop Flint
This commit is contained in:
parent
8192b41693
commit
e67a7a510e
1 changed files with 11 additions and 0 deletions
|
|
@ -30,4 +30,15 @@ class GravelBlock extends FallableBlock{
|
||||||
parent::__construct(GRAVEL, 0, "Gravel");
|
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…
Add table
Add a link
Reference in a new issue