mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +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 GlowstoneBlock extends TransparentBlock{
|
||||
class GlowstoneBlock extends TransparentBlock implements LightingBlock{
|
||||
public function __construct(){
|
||||
parent::__construct(GLOWSTONE_BLOCK, 0, "Glowstone");
|
||||
$this->hardness = 1.5;
|
||||
}
|
||||
|
||||
|
||||
public function getMaxLightValue(){
|
||||
return 15;
|
||||
}
|
||||
|
||||
public function getDrops(Item $item, Player $player){
|
||||
return array(
|
||||
array(GLOWSTONE_DUST, 0, mt_rand(2, 4)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue