NostalgiaCore/src/material/block/solid/InvisibleBedrockBlock.php
2024-07-10 19:58:25 +03:00

18 lines
No EOL
372 B
PHP
Executable file

<?php
class InvisibleBedrockBlock extends SolidBlock{
public static $blockID;
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;
}
}