Added MonsterRoom Structure

This commit is contained in:
ArkQuark 2023-03-02 16:59:39 +03:00
parent 762ff1b3eb
commit 022664c402
5 changed files with 100 additions and 4 deletions

View file

@ -80,6 +80,7 @@ class NetherReactorBlock extends SolidBlock{
}
return $pigCount < 3 ? $pigCount < 2 ? 2 : 1 : 0;
}
public function spawnItems($data) {
$x = $this->x;
$y = $this->y;
@ -116,6 +117,7 @@ class NetherReactorBlock extends SolidBlock{
$server->api->entity->spawnToAll($e);
}
}
public function glow($part){
$x = $this->x;
$y = $this->y;
@ -182,6 +184,7 @@ class NetherReactorBlock extends SolidBlock{
break;
}
}
private function isCorrect($x, $y, $z){
$offsetX = -1;
$offsetZ = -1;

View file

@ -18,16 +18,17 @@ class BurningFurnaceBlock extends SolidBlock implements LightingBlock{
$this->level->setBlock($block, $this, true, false, true);
return true;
}
public function getMaxLightValue(){
return 13;
}
public function onBreak(Item $item, Player $player){
$this->level->setBlock($this, new AirBlock(), true, true, true);
return true;
}
public function onActivate(Item $item, Player $player){
$server = ServerAPI::request();
$t = $server->api->tile->get($this);
$furnace = false;

View file

@ -14,6 +14,10 @@ class MyceliumBlock extends SolidBlock{
return BLOCK_UPDATE_RANDOM;
}
public function onActivate(Item $item, Player $player){
//MonsterRoomStructure::buildStructure($this->level, $this->getX(), $this->getY(), $this->getZ());
}
public function getDrops(Item $item, Player $player){
return array(
array(DIRT, 0, 1),