Guest User

Untitled

a guest
Nov 30th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. @Override
  2. public void genTerrainBlocks(World world, Random rand, ChunkPrimer primer, int x, int z, double noiseVal)
  3. {
  4. int localX = Math.floorMod(x, 16);
  5. int localZ = Math.floorMod(z, 16);
  6. IBlockState state = Blocks.STONE.getDefaultState().withProperty(BlockStone.VARIANT, BlockStone.EnumType.GRANITE);
  7. for (int y = 0; y < 255; ++y)
  8. {
  9. if (primer.getBlockState(localX, y, localZ).getBlock() == Blocks.STONE)
  10. {
  11. primer.setBlockState(localX, y, localZ, state);
  12. }
  13. }
  14. }
Add Comment
Please, Sign In to add comment