mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
nether reactor gen replaces air
This commit is contained in:
parent
26549f9e42
commit
95ade68cde
1 changed files with 16 additions and 9 deletions
|
|
@ -48,9 +48,9 @@ class NetherReactorStructure{
|
|||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N ___ N",
|
||||
"N ___ N",
|
||||
"N ___ N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
|
|
@ -67,9 +67,9 @@ class NetherReactorStructure{
|
|||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N ___ N",
|
||||
"N ___ N",
|
||||
"N ___ N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
|
|
@ -87,9 +87,9 @@ class NetherReactorStructure{
|
|||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N ___ N",
|
||||
"N ___ N",
|
||||
"N ___ N",
|
||||
"N N",
|
||||
"N N",
|
||||
"N N",
|
||||
|
|
@ -600,6 +600,13 @@ class NetherReactorStructure{
|
|||
case "N": //Netherrack
|
||||
$level->setBlockRaw(new Vector3($x - 8 + $offsetX, $y - 1 + $layerCount, $z - 8 + $offsetZ), new NetherrackBlock());
|
||||
break;
|
||||
case " ":
|
||||
$block = $level->getBlock(new Vector3($x - 8 + $offsetX, $y - 1 + $layerCount, $z - 8 + $offsetZ))->getID();
|
||||
if($block == 0){
|
||||
continue;
|
||||
}
|
||||
$level->setBlockRaw(new Vector3($x - 8 + $offsetX, $y - 1 + $layerCount, $z - 8 + $offsetZ), new AirBlock());
|
||||
break;
|
||||
}
|
||||
++$offsetX;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue