NostalgiaCore/src/material/block/solid/InvisibleBedrockBlock.php
2023-01-04 20:46:17 +03:00

17 lines
No EOL
347 B
PHP
Executable file

<?php
class InvisibleBedrockBlock extends SolidBlock{
public function __construct(){
parent::__construct(INVISIBLE_BEDROCK, 0, ".name<");
$this->breakable = false;
$this->hardness = 3600000;
}
public function isBreakable(Item $item, Player $player){
if(($player->gamemode & 0x01) === 0x01){
return true;
}
return false;
}
}