mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
19 lines
No EOL
507 B
PHP
19 lines
No EOL
507 B
PHP
<?php
|
|
|
|
class RedMushroomSolidBlock extends SolidBlock{
|
|
public function __construct($meta = 0){
|
|
parent::__construct(RED_MUSHROOM_BLOCK, $meta, "Mushroom");
|
|
$this->hardness = 0.2;
|
|
}
|
|
|
|
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
|
//todo
|
|
$this->level->setBlock($this, $this, true, false, true);
|
|
}
|
|
|
|
public function getDrops(Item $item, Player $player){
|
|
return [
|
|
[RED_MUSHROOM, 0, mt_rand(0, 2)]
|
|
];
|
|
}
|
|
} |