mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
20 lines
No EOL
336 B
PHP
20 lines
No EOL
336 B
PHP
<?php
|
|
|
|
class GravelBlock extends FallableBlock{
|
|
public function __construct(){
|
|
parent::__construct(GRAVEL, 0, "Gravel");
|
|
$this->hardness = 3;
|
|
}
|
|
|
|
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),
|
|
);
|
|
}
|
|
|
|
} |