Jump to content

Nikc

Members
  • Posts

    2
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Nikc's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. @jhogan42 Thank you very much for your help! You were absolutely correct about multiplying by 16. I went ahead and set the WorldGenerator to 1 and put it in the init event first. That didn't seem to have any effect initially, but I'll take your word for it! I'm sure you have much more experience with this than I do, haha! Thanks much for your help, both of you! - Nikc
  2. Over the last couple of days I've been attempting to figure out how ore generation is working in 1.8. I've read a few tutorials and many forum threads here and I'm a bit stuck. It might be something obvious that I've just missing, but any help would be much appreciated. I'm not getting any errors or crashes. The or simply isn't generating. I've changed all of the values to pretty extreme settings to be that I wouldn't be missing the ore. I also installed x-ray mod to hunt for it, just to be 100% certain that it isn't there. The mod is loading and everything as well. I can grab the block from the creative menu. Calling the generator from the preInit event: GameRegistry.registerWorldGenerator(new SixPointOhGenerator(), 0); The code of the generator. @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch(world.provider.getDimensionId()) { case 0: generateOverworld(random, world, chunkX, chunkZ); break; default: generateOverworld(random, world, chunkX, chunkZ); } } private void generateOverworld(Random random, World world, int x, int z) { addOres(SixPointOhBlocks.PlayBlock, world, random, x, z, 10, 15, 0, 250); } private void addOres(Block block, World world, Random random, int blockXpos, int blockZpos, int MaxVein, int spawnChance, int minY, int maxY) { WorldGenMinable minable = new WorldGenMinable(block.getDefaultState(), random.nextInt(MaxVein), BlockHelper.forBlock(Blocks.stone)); for (int i = 0; i < spawnChance; i++) { int posX = blockXpos + random.nextInt(16); int posZ = blockZpos + random.nextInt(16); int posY = minY + random.nextInt(maxY - minY); minable.generate(world, random, new BlockPos(posX, posZ, posY)); } } Thanks much for the help! - Nikc-Nack
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.