Jump to content

Custom Dimension Generation


Wurmatron

Recommended Posts

I am trying to create custom generation for my dimension but when i do it creates the structure at 0 , 69 ,0 I set it to generate at Y = 69 and for it to use java Random to select random points for the X and Z cords.  Here is my generation code i am trying to get it to generate all over the minecraft world.

 

package darkness.synapse;

 

import java.util.Random;

 

import net.minecraft.world.World;

import net.minecraft.world.biome.BiomeGenBase;

import net.minecraft.world.chunk.IChunkProvider;

import cpw.mods.fml.common.IWorldGenerator;

import darkness.Darkness;

import darkness.lib.ConfigHandler;

import darkness.synapse.gen.SynapseIslandGen;

 

public class Synapse_Generator implements IWorldGenerator {

 

@Override

public void generate(Random random, int chunkX, int chunkZ, World world,

IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {

 

BiomeGenBase biomegenbase = world.getWorldChunkManager().getBiomeGenAt(chunkX, chunkZ);     

int Y = 69;

 

 

int randX = chunkX * 16 + random.nextInt();

int randZ = chunkZ * 16 + random.nextInt();

 

for(int k = 0; k < chunkX * chunkZ; k++){

if (biomegenbase == Darkness.Biome_Synapse ) {

 

(new SynapseIslandGen()).generate(world,random,chunkX,Y,chunkZ);

 

}

}

}

}

 

- Wurmatron

Link to comment
Share on other sites

(new SynapseIslandGen()).generate(world,random,chunkX,Y,chunkZ);  <-- lets not use the random values we selected at all!  Brilliant!

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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