Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.lavapower.harmonia.common;
- import java.util.Random;
- import cpw.mods.fml.common.IWorldGenerator;
- import net.minecraft.init.Blocks;
- import net.minecraft.world.World;
- import net.minecraft.world.chunk.IChunkProvider;
- public class WorldGeneration implements IWorldGenerator
- {
- public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
- {
- switch(world.provider.dimensionId)
- {
- case 0:
- generateSurface(world, random, chunkX * 16, chunkZ * 16);
- break;
- }
- }
- private void generateSurface(World world, Random random, int x, int z)
- {
- int x1 = x + random.nextInt(16);
- int y1 = random.nextInt(128);
- int z1 = z + random.nextInt(16);
- for (int i = 0; i < 100000; i++)
- {
- (new GenOrtie()).generate(world, random, x1, y1, z1);
- }
- }
- }
Add Comment
Please, Sign In to add comment