Jump to content

Why wont structure generate


Recommended Posts

Here is the code of the generator. There are no errors at all

package worldgen;

import java.util.Random;

import worldgen.feature.StructureRuinsmall;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.chunk.IChunkProvider;
import cpw.mods.fml.common.IWorldGenerator;

public class worldgen implements IWorldGenerator {

public void generate(Random random, int chunkX, int chunkZ, World world,
		IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
	case 0:
		generateSurface(world, random, chunkX*16, chunkZ*16);


private void generateSurface(World world, Random random, int x, int z) {

	BiomeGenBase biome = world.getWorldChunkManager().getBiomeGenAt(x, z);

	if ((biome == BiomeGenBase.plains)){
		for (int a = 0; a < 1; a++){
			int i = x + random.nextInt(256);
			int k = z + random.nextInt(256);
			int j = world.getHeightValue(i, k);
			new StructureRuinsmall().generate(world, random, i, k, j);



Learning Java

Link to comment
Share on other sites

Did you register it?

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

This topic is now closed to further replies.

  • Create New...

Important Information

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