mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Added MonsterRoom Structure
This commit is contained in:
parent
762ff1b3eb
commit
022664c402
5 changed files with 100 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue