Posted January 22, 201411 yr Hello! My ores generate in world when I start minecraft in Eclipse, but don't generate if I use launcher Here's my code: register World Generator: GameRegistry.registerWorldGenerator(new MoreOreGenerator(), 1); MoreOreGenerator.java: public class MoreOreGenerator implements IWorldGenerator { public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch (world.provider.dimensionId) { case -1: generateNether(world, random, chunkX*16, chunkZ*16); case 0: generateSurface(world, random, chunkX*16, chunkZ*16); } } public void generateSurface(World world, Random random, int chunkX, int chunkZ) { for(int i = 0; i < 13; i++) { int randPosX=chunkX + random.nextInt(16); int randPosY=random.nextInt(40); int randPosZ=chunkZ + random.nextInt(16); (new WorldGenMinable(MoreModBase.CopperOre, 6)).generate(world, random, randPosX, randPosY, randPosZ); } } Forge 1.7.2-10.12.0.1012
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.