This commit is contained in:
GameHerobrine 2025-06-14 07:59:24 +03:00
parent 625e9ca71f
commit 11c1b77f5e
4 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,9 @@
<?php
/*value - durability*/
class ArmorMaterial{
const LEATHER = 5; //when enums
const CHAIN = 15;
const GOLD = 7;
const IRON = 15;
const DIAMOND = 33;
}

View file

@ -0,0 +1,18 @@
<?php
class DecorationMaterial extends Material
{
public function __construct(){
parent::__construct();
$this->flammable = false;
$this->translucent = false;
$this->alwaysDestroyable = false;
$this->replaceable = false;
$this->blocksMotion = false;
$this->blocksLight = false;
$this->isSolid = false;
}
}

View file

@ -0,0 +1,14 @@
<?php
class GasMaterial extends Material
{
public function __construct(){
parent::__construct();
$this->blocksLight = false;
$this->blocksMotion = false;
$this->isSolid = false;
$this->replaceable = true;
}
}

View file

@ -0,0 +1,14 @@
<?php
class LiquidMaterial extends Material
{
public function __construct(){
parent::__construct();
$this->blocksMotion = false;
$this->isLiquid = true;
$this->isSolid = false;
$this->replaceable = true;
}
}