mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
block light
This commit is contained in:
parent
fd5b103df7
commit
d1a724c143
66 changed files with 266 additions and 1 deletions
|
|
@ -8,6 +8,8 @@ class LavaBlock extends LiquidBlockDynamic implements LightingBlock{
|
|||
$this->hardness = 500; //0 in vanilla
|
||||
$this->breakTime = -1; //in vanilla it is 0, but you cant interact with the block so it is not possible to destroy it
|
||||
$this->material = Material::$lava;
|
||||
$this->lightEmission = 15;
|
||||
$this->lightBlock = 255;
|
||||
}
|
||||
|
||||
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ class StillLavaBlock extends LiquidBlockStatic{
|
|||
$this->hardness = 500;
|
||||
$this->breakTime = -1; //in vanilla it is 100, but you cant interact with the block so it is not possible to destroy it
|
||||
$this->material = Material::$lava;
|
||||
$this->lightEmission = 15;
|
||||
$this->lightBlock = 255;
|
||||
}
|
||||
|
||||
public static function getTickDelay(){
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ class StillWaterBlock extends LiquidBlockStatic{
|
|||
$this->hardness = 500;
|
||||
$this->breakTime = -1; //in vanilla it is 100, but you cant interact with the block so it is not possible to destroy it
|
||||
$this->material = Material::$water;
|
||||
$this->lightBlock = 3;
|
||||
}
|
||||
|
||||
public static function getTickDelay(){
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ class WaterBlock extends LiquidBlockDynamic{
|
|||
$this->hardness = 500;
|
||||
$this->breakTime = -1; //in vanilla it is 100, but you cant interact with the block so it is not possible to destroy it
|
||||
$this->material = Material::$water;
|
||||
$this->lightBlock = 3;
|
||||
}
|
||||
|
||||
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue