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 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){