Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
773
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1.     @SubscribeEvent
  2.     public void populateChunk(PopulateChunkEvent.Pre event) {
  3.         Chunk chunk = event.world.getChunkFromChunkCoords(event.chunkX, event.chunkZ);
  4.         for (ExtendedBlockStorage storage : chunk.getBlockStorageArray()) {
  5.             if (storage != null) {
  6.                 for (int x = 0; x < 16; ++x) {
  7.                     for (int y = 0; y < 16; ++y) {
  8.                         for (int z = 0; z < 16; ++z) {
  9.                             if (storage.getBlockByExtId(x, y, z) == Blocks.stone) {
  10.                                 storage.func_150818_a(x, y, z, Blocks.brick_block);
  11.                             }
  12.                         }
  13.                     }
  14.                 }
  15.             }
  16.         }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement