mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
block light
This commit is contained in:
parent
fd5b103df7
commit
d1a724c143
66 changed files with 266 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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){
|
||||
|
|
|
|||
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue