Advertisement
CaptainLepidus

Chunk Generation Code

Jan 3rd, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. public byte[][] generateBlockSections(World world, Random rand,
  2.         int ChunkX, int ChunkZ, ChunkGenerator.BiomeGrid biomes) {
  3.         byte[][] chunk = new byte[world.getMaxHeight() / 16][];
  4.         for (int x=0; x<16; x++) {
  5.         for (int z=0; z<16; z++) {
  6.                 int realX = ChunkX * 16 + x;
  7.                 int realZ = ChunkZ * 16 + z;
  8.                 biomes.setBiome(x,z,Biome.DESERT);
  9.             }
  10.         }
  11.         return chunk;
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement