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,12 +19,16 @@
*
*/
class LitPumpkinBlock extends SolidBlock{
class LitPumpkinBlock extends SolidBlock implements LightingBlock{
public function __construct($meta = 0){
parent::__construct(LIT_PUMPKIN, $meta, "Jack o'Lantern");
$this->hardness = 5;
}
public function getMaxLightValue(){
return 15;
}
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
$faces = array(
0 => 1,