mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
some blocks were added into creative, names for flowers fixed, carpet crafts, emeralnd generates in flat worlds
This commit is contained in:
parent
2342e1e783
commit
87ed00d718
5 changed files with 48 additions and 14 deletions
|
|
@ -1,20 +1,20 @@
|
|||
<?php
|
||||
|
||||
class CyanFlowerBlock extends FlowableBlock{
|
||||
protected static $names = [
|
||||
0 => "Poppy",
|
||||
1 => "Blue Orchid",
|
||||
2 => "Allium",
|
||||
3 => "Azure Bluet",
|
||||
4 => "Red Tulip",
|
||||
5 => "Orange Tulip",
|
||||
6 => "White Tulip",
|
||||
7 => "Pink Tulip",
|
||||
8 => "Oxeye Daisy",
|
||||
];
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(CYAN_FLOWER, $meta, "Poppy");
|
||||
parent::__construct(CYAN_FLOWER, $meta, nullsafe(self::$names[$meta], "Poppy"));
|
||||
$this->hardness = 0;
|
||||
$names = array(
|
||||
0 => "Poppy",
|
||||
1 => "Blue Orchid",
|
||||
2 => "Allium",
|
||||
3 => "Azure Bluet",
|
||||
4 => "Red Tulip",
|
||||
5 => "Orange Tulip",
|
||||
6 => "White Tulip",
|
||||
7 => "Pink Tulip",
|
||||
8 => "Oxeye Daisy",
|
||||
);
|
||||
}
|
||||
|
||||
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue