mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Adding new blocks
This commit is contained in:
parent
37bbfe2d81
commit
4a861c0f5d
11 changed files with 135 additions and 6 deletions
|
|
@ -2,14 +2,15 @@
|
|||
|
||||
class StoneWallBlock extends TransparentBlock{
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(STONE_WALL, $meta & 0x01, $meta === 1 ? "Mossy Cobblestone Wall" : "Cobblestone Wall");
|
||||
parent::__construct(COBBLESTONE_WALL, $meta & 0x01, $meta === 1 ? "Mossy Cobblestone Wall" : "Cobblestone Wall");
|
||||
$this->isFullBlock = false;
|
||||
$this->isSolid = false;
|
||||
$this->hardness = 30;
|
||||
}
|
||||
|
||||
public function getDrops(Item $item, Player $player){
|
||||
if($item->isPickaxe()){
|
||||
return [[STONE_WALL, $this->getMetadata(),1]];
|
||||
return [[COBBLESTONE_WALL, $this->getMetadata(), 1]];
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue