block light

This commit is contained in:
GameHerobrine 2025-06-23 01:24:00 +03:00
parent fd5b103df7
commit d1a724c143
66 changed files with 266 additions and 1 deletions

View file

@ -13,6 +13,7 @@ class FireBlock extends FlowableBlock implements LightingBlock{
$this->hardness = 0;
$this->breakTime = 0;
$this->material = Material::$fire;
$this->lightEmission = 15;
}
public static function getAABB(Level $level, $x, $y, $z){
return null;

View file

@ -9,6 +9,7 @@ class NetherReactorBlock extends SolidBlock{
$this->hardness = 15;
$this->breakTime = 3;
$this->material = Material::$metal;
$this->lightBlock = 255;
}
public function onActivate(Item $item, Player $player){

View file

@ -8,6 +8,7 @@ class TNTBlock extends SolidBlock{
$this->breakTime = 0;
$this->isActivable = true;
$this->material = Material::$explosive;
$this->lightBlock = 255;
}
public function onActivate(Item $item, Player $player){