Jump to content

World generation help.


REDX36

Recommended Posts

I have code that DOES generate the ore (In the END), but only in one spot in the island. Nowhere else. Code:

 

package redx36.enderite;

import java.util.Random;

import net.minecraft.src.BiomeGenBase;
import net.minecraft.src.IChunkProvider;
import net.minecraft.src.World;

import cpw.mods.fml.common.IWorldGenerator;

public class EnderiteWorldGenerator implements IWorldGenerator {

@Override public void generate (final Random random, final int X, final int Z, final World world, final IChunkProvider chunkGenerator, final IChunkProvider chunkProvider) {

	if (world.getBiomeGenForCoords(X, Z).biomeName.equalsIgnoreCase(BiomeGenBase.sky.biomeName)) {

		for (int i = 0; i < 10; i++) {

			new WorldGenEndMinable(Enderite.enderiteOre.blockID, 4).generate(world, random, X + random.nextInt(16), random.nextInt(128), Z + random.nextInt(16));

		}

	}

}

}

 

WorldGenEndMineable is exactly the same as WorldGenMineable except is uses end stone instead of stone as the replaceable block. And the finals you see dont change code function at all.

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.

×
×
  • Create New...

Important Information

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