mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Reeds in swampification
This commit is contained in:
parent
c56257945b
commit
07373dde56
@ -158,15 +158,17 @@ public class BunkerComponents extends ProceduralComponents {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(canGenPlant) {
|
if(canGenPlant) {
|
||||||
/*Block belowNeighbor = world.getBlock(posX, posY - 2, posZ);
|
int value = rand.nextInt(2);
|
||||||
int bound = !belowNeighbor.isNormalCube() ? 10 : 10; //reeds
|
|
||||||
int value = rand.nextInt(bound);
|
|
||||||
|
|
||||||
if(value <= 0) {*/
|
if(value <= 0) {
|
||||||
int rY = posY + rand.nextInt(10) - rand.nextInt(10);
|
int rY = posY + rand.nextInt(10) - rand.nextInt(10);
|
||||||
if(rY == posY)
|
if(rY == posY)
|
||||||
world.setBlock(posX, posY, posZ, Blocks.waterlily, 0, 2);
|
world.setBlock(posX, posY, posZ, Blocks.waterlily, 0, 2);
|
||||||
//}
|
} else if(value <= 1) {
|
||||||
|
int rY = posY + rand.nextInt(10) - rand.nextInt(10);
|
||||||
|
if(rY == posY)
|
||||||
|
world.setBlock(posX, posY, posZ, ModBlocks.reeds, 0, 2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user