Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void genTerrainBlocks(World worldIn, Random rand, ChunkPrimer chunkPrimerIn, int x, int z, double noiseVal)
- {
- if(this.isMutation())
- {
- if (noiseVal > 1.0D && noiseVal < 3.0D)
- {
- int i = x & 15;
- int j = z & 15;
- for (int k = 250; k >= 150; --k)
- {
- BlockPos pos = new BlockPos(x, k, z);
- if (chunkPrimerIn.getBlockState(j, k, i).getMaterial() != Material.AIR) //This is where I need to check for solid blocks around pos.
- {
- if (k%2 == 0 && chunkPrimerIn.getBlockState(j, k, i).getBlock() != Blocks.WATER)
- {
- chunkPrimerIn.setBlockState(j, k, i, WATER);
- }
- break;
- }
- }
- }
- }
- this.generateBiomeTerrain2(worldIn, rand, chunkPrimerIn, x, z, noiseVal);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement