some block fixes

This commit is contained in:
ArkQuark 2023-02-21 21:58:22 +03:00
parent d6cf7d2d52
commit f2c1329ce5
7 changed files with 301 additions and 294 deletions

View file

@ -1,8 +1,17 @@
<?php
class StoneBlock extends SolidBlock{
public function __construct(){
parent::__construct(STONE, 0, "Stone");
public function __construct($meta = 0){
parent::__construct(STONE, $meta, "Stone");
$names = array(
1 => "Granite",
2 => "Polished Granite",
3 => "Diorite",
4 => "Polished Diorite",
5 => "Andesite",
6 => "Polished Andesite",
);
$this->name = $names[$this->meta];
$this->hardness = 30;
}