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 FireBlock extends FlowableBlock{
class FireBlock extends FlowableBlock implements LightingBlock{
public function __construct($meta = 0){
parent::__construct(FIRE, $meta, "Fire");
$this->isReplaceable = true;
@ -31,7 +31,9 @@ class FireBlock extends FlowableBlock{
public function getDrops(Item $item, Player $player){
return array();
}
public function getMaxLightValue(){
return 15;
}
public function onUpdate($type){
if($type === BLOCK_UPDATE_NORMAL){
for($s = 0; $s <= 5; ++$s){