use of stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenNibiruDoublePlant in project MorePlanets by SteveKunG.
the class BiomeGreenVein method decorate.
@Override
public void decorate(World world, Random rand, BlockPos pos) {
double d0 = GRASS_COLOR_NOISE.getValue((pos.getX() + 8) / 200.0D, (pos.getZ() + 8) / 200.0D);
if (d0 > -0.8D) {
for (int i = 0; i < 7; ++i) {
int j = rand.nextInt(16) + 8;
int k = rand.nextInt(16) + 8;
int l = rand.nextInt(world.getHeight(pos.add(j, 0, k)).getY() + 32);
new WorldGenNibiruDoublePlant(BlockNibiruDoublePlant.BlockType.DOUBLE_GREEN_VEIN_GRASS).generate(world, rand, pos.add(j, l, k));
}
}
if (rand.nextInt(15) == 0) {
int x = rand.nextInt(16) + 8;
int z = rand.nextInt(16) + 8;
new WorldGenTerrashroom().generate(world, rand, world.getHeight(pos.add(x, 0, z)));
}
if (rand.nextInt(4) == 0) {
int x = rand.nextInt(16) + 8;
int z = rand.nextInt(16) + 8;
BlockPos blockpos2 = world.getHeight(pos.add(x, 0, z));
new WorldGenFlowersMP(NibiruBlocks.NIBIRU_FLOWER.getDefaultState().withProperty(BlockNibiruFlower.VARIANT, BlockNibiruFlower.BlockType.TERRASHROOM)).generate(world, rand, blockpos2);
}
super.decorate(world, rand, pos);
}
use of stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenNibiruDoublePlant in project MorePlanets by SteveKunG.
the class BiomeInfectedPlains method decorate.
@Override
public void decorate(World world, Random rand, BlockPos pos) {
double d0 = GRASS_COLOR_NOISE.getValue((pos.getX() + 8) / 200.0D, (pos.getZ() + 8) / 200.0D);
if (d0 < -0.8D) {
this.getBiomeDecorator().infectedTallGrassPerChunk = 86;
} else {
this.getBiomeDecorator().infectedTallGrassPerChunk = 128;
for (int i = 0; i < 7; ++i) {
new WorldGenNibiruDoublePlant(BlockNibiruDoublePlant.BlockType.DOUBLE_INFECTED_GRASS).generate(world, rand, DecorateHelper.getSimplePos(world, pos, rand));
}
}
super.decorate(world, rand, pos);
}
use of stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenNibiruDoublePlant in project MorePlanets by SteveKunG.
the class BiomeInfectedDeadSavanna method decorate.
@Override
public void decorate(World world, Random rand, BlockPos pos) {
double d0 = GRASS_COLOR_NOISE.getValue((pos.getX() + 8) / 200.0D, (pos.getZ() + 8) / 200.0D);
if (d0 > -0.8D) {
for (int i = 0; i < 12; ++i) {
BlockPos newpos = DecorateHelper.getSimplePos(world, pos, rand);
if (world.getBlockState(newpos).getBlock() == NibiruBlocks.INFECTED_GRASS) {
new WorldGenInfectedVinesDirt().generate(world, rand, newpos);
}
}
}
for (int i = 0; i < 7; ++i) {
int x = rand.nextInt(16) + 8;
int z = rand.nextInt(16) + 8;
int y = rand.nextInt(world.getHeight(pos.add(x, 0, z)).getY() + 32);
new WorldGenNibiruDoublePlant(BlockNibiruDoublePlant.BlockType.DOUBLE_INFECTED_GRASS).generate(world, rand, pos.add(x, y, z));
}
super.decorate(world, rand, pos);
}
use of stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenNibiruDoublePlant in project MorePlanets by SteveKunG.
the class BiomeInfectedDeadTaiga method decorate.
@Override
public void decorate(World world, Random rand, BlockPos pos) {
if (rand.nextInt(25) == 0) {
new WorldGenInfectedVinesDirt().generate(world, rand, DecorateHelper.getSimplePos(world, pos, rand));
}
for (int i = 0; i < 7; ++i) {
int x = rand.nextInt(16) + 8;
int z = rand.nextInt(16) + 8;
int y = rand.nextInt(world.getHeight(pos.add(x, 0, z)).getY() + 32);
new WorldGenNibiruDoublePlant(BlockNibiruDoublePlant.BlockType.DOUBLE_INFECTED_FERN).generate(world, rand, pos.add(x, y, z));
}
super.decorate(world, rand, pos);
}
Aggregations