some blocks were added into creative, names for flowers fixed, carpet crafts, emeralnd generates in flat worlds

This commit is contained in:
GameHerobrine 2023-02-22 17:03:09 +03:00
parent 2342e1e783
commit 87ed00d718
5 changed files with 48 additions and 14 deletions

View file

@ -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){