mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
test light simulation + ice melting
This commit is contained in:
parent
a071f577bf
commit
945730e148
9 changed files with 74 additions and 16 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue