test light simulation + ice melting

This commit is contained in:
GameHerobrine 2022-05-11 19:45:37 +03:00
parent a071f577bf
commit 945730e148
9 changed files with 74 additions and 16 deletions

View file

@ -19,7 +19,7 @@
*
*/
class BurningFurnaceBlock extends SolidBlock{
class BurningFurnaceBlock extends SolidBlock implements LightingBlock{
public function __construct($meta = 0){
parent::__construct(BURNING_FURNACE, $meta, "Burning Furnace");
$this->isActivable = true;
@ -37,7 +37,9 @@ class BurningFurnaceBlock extends SolidBlock{
$this->level->setBlock($block, $this, true, false, true);
return true;
}
public function getMaxLightValue(){
return 13;
}
public function onBreak(Item $item, Player $player){
$this->level->setBlock($this, new AirBlock(), true, true, true);
return true;