Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SubscribeEvent
- public void populateChunk(PopulateChunkEvent.Pre event) {
- Chunk chunk = event.world.getChunkFromChunkCoords(event.chunkX, event.chunkZ);
- for (ExtendedBlockStorage storage : chunk.getBlockStorageArray()) {
- if (storage != null) {
- for (int x = 0; x < 16; ++x) {
- for (int y = 0; y < 16; ++y) {
- for (int z = 0; z < 16; ++z) {
- if (storage.getBlockByExtId(x, y, z) == Blocks.stone) {
- storage.func_150818_a(x, y, z, Blocks.brick_block);
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement