static blockID for all blocks

This commit is contained in:
GameHerobrine 2024-07-10 19:58:25 +03:00
parent 205e432f52
commit 36be0211f9
109 changed files with 111 additions and 13 deletions

View file

@ -1,6 +1,8 @@
<?php
class AirBlock extends TransparentBlock{
public static $blockID;
public function __construct(){
parent::__construct(AIR, 0, "Air");
$this->isActivable = false;

View file

@ -1,7 +1,7 @@
<?php
class BedBlock extends TransparentBlock{
public static $blockID;
public static $faces = [
0 => 3,
1 => 4,

View file

@ -1,7 +1,7 @@
<?php
class FireBlock extends FlowableBlock implements LightingBlock{
public static $blockID;
public static $flammability = [];
public static $fireCatchingChance = [];

View file

@ -1,6 +1,7 @@
<?php
class NetherReactorBlock extends SolidBlock{
public static $blockID;
public static $enableReactor = true;
public function __construct($meta = 0){
parent::__construct(NETHER_REACTOR, $meta, "Nether Reactor");

View file

@ -1,6 +1,7 @@
<?php
class TNTBlock extends SolidBlock{
public static $blockID;
public function __construct(){
parent::__construct(TNT, 0, "TNT");
$this->hardness = 0;