This commit is contained in:
FreeHij 2023-10-08 14:10:04 +03:00
parent e3ecebb17b
commit edcf1d0556
11 changed files with 273 additions and 4 deletions

View file

@ -1,8 +1,17 @@
<?php
class FenceBlock extends TransparentBlock{
public function __construct(){
parent::__construct(FENCE, 0, "Fence");
public function __construct($meta){
parent::__construct(FENCE, $meta, "Fence");
$names = [
0 => "Oak Fence",
1 => "Spruce Fence",
2 => "Birch Fence",
3 => "Jungle Fence",
4 => "Acacia Fence",
5 => "Dark Oak Fence"
];
$this->name = $names[$this->meta & 0x07];
$this->isFullBlock = false;
$this->hardness = 15;
}