nether reactor gen replaces air

This commit is contained in:
GameHerobrine 2022-06-03 16:44:40 +03:00
parent 26549f9e42
commit 95ade68cde

View file

@ -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;
}