mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
final blocks
This commit is contained in:
parent
284910734f
commit
4715d938e1
6 changed files with 33 additions and 41 deletions
14
src/material/block/solid/RedMushroomSolidBlock.php
Normal file
14
src/material/block/solid/RedMushroomSolidBlock.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
class RedMushroomSolidBlock extends SolidBlock{
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(RED_MUSHROOM_BLOCK, $meta, "Mushroom");
|
||||
}
|
||||
|
||||
public function getDrops(Item $item, Player $player){
|
||||
return [
|
||||
[RED_MUSHROOM, 0, mt_rand(0, 2)]
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue