mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59: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,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
class GlowingRedstoneOreBlock extends SolidBlock{
|
||||
class GlowingRedstoneOreBlock extends SolidBlock implements LightingBlock{
|
||||
public function __construct(){
|
||||
parent::__construct(GLOWING_REDSTONE_ORE, 0, "Glowing Redstone Ore");
|
||||
$this->hardness = 15;
|
||||
|
|
@ -34,7 +34,9 @@ class GlowingRedstoneOreBlock extends SolidBlock{
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getMaxLightValue(){
|
||||
return 9;
|
||||
}
|
||||
|
||||
public function getBreakTime(Item $item, Player $player){
|
||||
if(($player->gamemode & 0x01) === 0x01){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue