1

Help me! making a biome, server exception

maxy3 11/25/12 1:58 am
201
11/25/2012 2:07 am
please does anyone know how to fix this problem: every time i start minecraft in eclipse,
and generate a new world, chunk errors start to appear, then if i go too far into these chunk error, minecraft crashes, please help me.

here is the crash error:

Minecraft has crashed!
----------------------

Minecraft has stopped running because it encountered a problem; Exception ticking world

A full error report has been saved to D:\mod making kit\mcp1\jars\.\crash-reports\crash-2012-11-25_17.46.53-server.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash



--- BEGIN ERROR REPORT e2c688a4 --------
Full report at:
D:\mod making kit\mcp1\jars\.\crash-reports\crash-2012-11-25_17.46.53-server.txt
Please show that file to Mojang, NOT just this screen!

Generated 25/11/12 5:47 PM

-- Head --
Stacktrace:
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:235)
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:184)
at net.minecraft.src.BiomeGenBase.decorate(BiomeGenBase.java:334)
at net.minecraft.src.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:522)
at net.minecraft.src.ChunkProviderServer.populate(ChunkProviderServer.java:233)
at net.minecraft.src.Chunk.populateChunk(Chunk.java:1117)
at net.minecraft.src.ChunkProviderServer.loadChunk(ChunkProviderServer.java:128)
at net.minecraft.src.ChunkProviderServer.provideChunk(ChunkProviderServer.java:141)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:435)
at net.minecraft.src.SpawnerAnimals.getRandomSpawningPointInChunk(SpawnerAnimals.java:21)
at net.minecraft.src.SpawnerAnimals.findChunksForSpawning(SpawnerAnimals.java:90)
at net.minecraft.src.WorldServer.tick(WorldServer.java:106)

-- Affected level --
Details:
Level name: New World
All players: 1 total; [EntityPlayerMP['Player518'/4, l='New World', x=300.50, y=67.50, z=2000000.50]]
Chunk stats: ServerChunkCache: 2403 Drop: 41
Level seed: 496351714093196730
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options:
Level spawn location: World: (-198,64,62), Chunk: (at 10,4,14 in -13,3; contains blocks -208,0,48 to -193,255,63), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 1914 game time, 1914 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 49643 (now: false), thunder time: 83113 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:654)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:588)
at net.minecraft.src.IntegratedServer.tick(IntegratedServer.java:124)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:498)
at net.minecraft.src.ThreadMinecraftServer.run(ThreadMinecraftServer.java:17)

-- System Details --
Details:
Minecraft Version: 1.4.5
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 652727664 bytes (622 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 12843 (719208 bytes; 0 MB) allocated, 6 (336 bytes; 0 MB) used
Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]
IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63
ModLoader: Mods loaded: 2
ModLoader 1.4.5
mod_Thecoppermod Randomstufflol

Profiler Position: N/A (disabled)
Vec3 Pool Size: 3690 (206640 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player518'/4, l='New World', x=300.50, y=67.50, z=2000000.50]]
Type: Integrated Server (map_client.txt)
Is Modded: Very likely; Jar signature invalidated

java.lang.NullPointerException
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:235)
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:184)
at net.minecraft.src.BiomeGenBase.decorate(BiomeGenBase.java:334)
at net.minecraft.src.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:522)
at net.minecraft.src.ChunkProviderServer.populate(ChunkProviderServer.java:233)
at net.minecraft.src.Chunk.populateChunk(Chunk.java:1117)
at net.minecraft.src.ChunkProviderServer.loadChunk(ChunkProviderServer.java:128)
at net.minecraft.src.ChunkProviderServer.provideChunk(ChunkProviderServer.java:141)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:435)
at net.minecraft.src.SpawnerAnimals.getRandomSpawningPointInChunk(SpawnerAnimals.java:21)
at net.minecraft.src.SpawnerAnimals.findChunksForSpawning(SpawnerAnimals.java:90)
at net.minecraft.src.WorldServer.tick(WorldServer.java:106)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:654)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:588)
at net.minecraft.src.IntegratedServer.tick(IntegratedServer.java:124)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:498)
at net.minecraft.src.ThreadMinecraftServer.run(ThreadMinecraftServer.java:17)
--- END ERROR REPORT 3c9084ba ----------
__________________________________________________________________

here is the code:





package net.minecraft.src;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Map;
import java.awt.Color;

public class mod_Thecoppermod extends BaseMod{


public static final Item CopperHelmet = new ItemArmor(5001, EnumArmorMaterial.COPPER, ModLoader.addArmor("Copper"), 0).setItemName("yourHelmet");
public static final Item CopperChestplate = new ItemArmor(5002, EnumArmorMaterial.COPPER, ModLoader.addArmor("Copper"), 1).setItemName("yourChestplate");
public static final Item CopperLeggings = new ItemArmor(5003, EnumArmorMaterial.COPPER, ModLoader.addArmor("Copper"), 2).setItemName("yourLeggings");
public static final Item CopperBoots = new ItemArmor(5004, EnumArmorMaterial.COPPER, ModLoader.addArmor("Copper"), 3).setItemName("yourBoots");

public static final Item JetHelmet = new ItemArmor(5005, EnumArmorMaterial.JET, ModLoader.addArmor("Jet"), 0).setItemName("jetHelmet");
public static final Item JetChestplate = new ItemArmor(5006, EnumArmorMaterial.JET, ModLoader.addArmor("Jet"), 1).setItemName("JetChestplate");
public static final Item JetLeggings = new ItemArmor(5007, EnumArmorMaterial.JET, ModLoader.addArmor("Jet"), 2).setItemName("JetLeggings");
public static final Item JetBoots = new ItemArmor(5008, EnumArmorMaterial.JET, ModLoader.addArmor("Jet"), 3).setItemName("JetBoots");

public static final Block EnviroGrass = new BlockEnviroGrass(214).setBlockName("EnviroGrass").setHardness(1F).setResistance(1f).setLightValue(0F);
public static final Block CopperOre = new BlockCopperOre(200, 0).setBlockName("Copper").setHardness(1F).setResistance(1f).setLightValue(0F);
public static final Block LeadOre = new BlockLeadOre(207, 0).setBlockName("LeadOre").setHardness(1F).setResistance(1f).setLightValue(0F);
public static final Block JetOre = new BlockJetOre(208, 0).setBlockName("JetOre").setHardness(1F).setResistance(1f).setLightValue(0F);
public static final Block Opal = new BlockOpal(209, 0).setBlockName("Opal").setHardness(1F).setResistance(1f).setLightValue(0F);
public static final Block AzuriteOre = new BlockAzurite(210, 0).setBlockName("AzuriteOre").setHardness(1F).setResistance(1f).setLightValue(0F);
public static final Block SulphurOre = new BlockSulphurOre(211, 0).setBlockName("SulphurOre").setHardness(1F).setResistance(1f).setLightValue(0F);
public static final Block AmberOre = new BlockAmber(212, 0).setBlockName("AmberOre").setHardness(1F).setResistance(1f).setLightValue(0F);
public static final Block Topaz = new BlockTopaz(213, 0).setBlockName("TopazOre").setHardness(1F).setResistance(1f).setLightValue(0F);
public static final Block SilverOre = new BlockSilverOre(201, 0).setBlockName("Silver").setHardness(1F).setResistance(1f).setLightValue(0F);
public static final Block Amethyst = new BlockAmethyst(205, 0).setBlockName("Amethyst").setHardness(1F).setResistance(1f).setLightValue(0F);
public static final Block TinOre = new BlockTinOre(202, 0).setBlockName("Tin").setHardness(1F).setResistance(1f).setLightValue(0F);
public static final Block CedarLog = new BlockCedarLog(203).setBlockName("Cedar").setHardness(0.5F).setResistance(2F).setLightValue(0F);
public static final Block cedarLeaves = new BlockCedarLeaves(204, 0).setBlockName("cedarLeaves").setHardness(1F).setResistance(0.5F).setLightValue(0F);
public static final Block CedarSapling = new BlockCedarSaplings(206, 0).setBlockName("cedarSapling").setHardness(0F).setResistance(0F).setLightValue(0F);

public static final Item CopperPickaxe = (new ItemPickaxe(207, EnumToolMaterial.STONE)).setItemName("CopperPickaxe");
public static final Item CopperAxe = (new ItemAxe(208, EnumToolMaterial.WOOD)).setItemName("CopperAxe");
public static final Item CopperShovel = (new ItemSpade(209, EnumToolMaterial.WOOD)).setItemName("CopperShovel");
public static final Item CopperSword = (new ItemSword(210, EnumToolMaterial.WOOD)).setItemName("CopperSword");
public static final Item CopperHoe = (new ItemHoe(211, EnumToolMaterial.WOOD)).setItemName("CopperHoe");







public static int cedarLogMiddle;
public static int cedarLogSides;



public static final Item OpalI = new ItemOpal(605).setItemName("Opal");
public static final Item Jet = new ItemJet(606).setItemName("Jet");
public static final Item LeadIngot = new ItemLeadIngot(607).setItemName("Lead Ingot");
public static final Item Azurite = new ItemAzurite(608).setItemName("Azurite");
public static final Item Amber = new ItemAmber(609).setItemName("Amber");
public static final Item AmethystCrystal = new ItemAmethystCrystal(604).setItemName("Amethyst Crystal");
public static final Item TopazI = new ItemTopaz(610).setItemName("Topaz");
public static final Item Sulphur = new ItemSulphur(611).setItemName("Sulphur");
public static final Item copperIngot = new ItemCopperIngot(600).setItemName("Copper Ingot");
public static final Item SilverIngot = new ItemSilverIngot(601).setItemName("Silver Ingot");
public static final Item TinIngot = new ItemTinIngot(602).setItemName("Tin Ingot");
public static final Item HarrysRag = (new ItemRecord(2264, "HarrysRag")).setItemName("HarrysRag").setCreativeTab(CreativeTabs.tabMisc);
public static final Item NoVim = (new ItemRecord(2265, "NoVim")).setItemName("NoVim").setCreativeTab(CreativeTabs.tabMisc);

public String getVersion() {

return "Randomstufflol";
}


// public mod_Thecoppermod() {
// int redColor = (255 << 16);
// int orangecolor = (255 << 16)+ (100 << 8);
// ModLoader.registerEntityID(EnityCopperGolem.class, "Copper Golem", ModLoader.getUniqueEntityId(), redColor, orangecolor);
// ModLoader.addSpawn(EnityCopperGolem.class, 5, 5, 5, EnumCreatureType.waterCreature);
// }


public static final BiomeGenBase CedarForest = (new BiomeGenCedarForest(40)).setBiomeName("CedarForest");

public void load() {
ModLoader.addBiome(CedarForest);


ModLoader.addRecipe(new ItemStack(CopperHelmet, 1), new Object [] {"###", "# #", Character.valueOf('#'), copperIngot});
ModLoader.addRecipe(new ItemStack(CopperChestplate, 1), new Object [] {"# #", "###", "###", Character.valueOf('#'), copperIngot});
ModLoader.addRecipe(new ItemStack(CopperLeggings, 1), new Object [] {"###", "# #", "# #", Character.valueOf('#'), copperIngot});
ModLoader.addRecipe(new ItemStack(CopperBoots, 1), new Object [] {"# #", "# #", Character.valueOf('#'), copperIngot});
ModLoader.addName(CopperHelmet, "Copper Helmet");
ModLoader.addName(CopperChestplate, "Copper Chestplate");
ModLoader.addName(CopperLeggings, "Copper Leggings");
ModLoader.addName(CopperBoots, "Copper Boots");

ModLoader.addRecipe(new ItemStack(JetHelmet, 1), new Object [] {"###", "# #", Character.valueOf('#'), Jet});
ModLoader.addRecipe(new ItemStack(JetChestplate, 1), new Object [] {"# #", "###", "###", Character.valueOf('#'), Jet});
ModLoader.addRecipe(new ItemStack(JetLeggings, 1), new Object [] {"###", "# #", "# #", Character.valueOf('#'), Jet});
ModLoader.addRecipe(new ItemStack(JetBoots, 1), new Object [] {"# #", "# #", Character.valueOf('#'), Jet});
ModLoader.addName(JetHelmet, "Jet Helmet");
ModLoader.addName(JetChestplate, "Jet Chestplate");
ModLoader.addName(JetLeggings, "Jet Leggings");
ModLoader.addName(JetBoots, "Jet Boots");



CopperPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/yourPickaxe.png");
CopperAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/yourAxe.png");
CopperShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/yourShovel.png");
CopperSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/yourSword.png");
CopperHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/yourHoe.png");

CopperHelmet.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/CopperHelmet.png");
CopperChestplate.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/CopperChestPlate.png");
CopperLeggings.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/CopperLeggings.png");
CopperBoots.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/CopperBoots.png");


JetHelmet.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/JetHelmet.png");
JetChestplate.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/JetChestPlate.png");
JetLeggings.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/JetLeggings.png");
JetBoots.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/JetBoots.png");


ModLoader.addRecipe(new ItemStack(CopperPickaxe, 1), new Object [] {"###", " X ", " X ", Character.valueOf('#'), CopperPickaxe, Character.valueOf('X'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperShovel, 1), new Object [] {"#", "X", "X", Character.valueOf('#'), CopperShovel, Character.valueOf('X'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperSword, 1), new Object [] {"#", "#", "X", Character.valueOf('#'), CopperSword, Character.valueOf('X'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperAxe, 1), new Object [] {"##", "#X ", " X", Character.valueOf('#'), CopperAxe, Character.valueOf('X'), Item.stick});
ModLoader.addRecipe(new ItemStack(CopperHoe, 1), new Object [] {"##", " X", " X", Character.valueOf('#'), CopperHoe, Character.valueOf('X'), Item.stick});

{



CopperOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/The copper mod/The copper mod.png");
ModLoader.registerBlock(CopperOre);
ModLoader.addName(CopperOre, "Copper Ore");

LeadOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/The copper mod/LeadOre.png");
ModLoader.registerBlock(LeadOre);
ModLoader.addName(LeadOre, "Lead Ore");

JetOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/The copper mod/JetOre.png");
ModLoader.registerBlock(JetOre);
ModLoader.addName(JetOre, "Jet Ore");

Opal.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/The copper mod/Opal.png");
ModLoader.registerBlock(Opal);
ModLoader.addName(Opal, "Opal Ore");

AzuriteOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/The copper mod/Azurite.png");
ModLoader.registerBlock(AzuriteOre);
ModLoader.addName(AzuriteOre, "Azurite Ore");

SulphurOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/The copper mod/SulphurOre.png");
ModLoader.registerBlock(SulphurOre);
ModLoader.addName(SulphurOre, "Sulphur Ore");

AmberOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/The copper mod/AmberOre.png");
ModLoader.registerBlock(AmberOre);
ModLoader.addName(AmberOre, "Amber Ore");

Topaz.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/The copper mod/Topaz.png");
ModLoader.registerBlock(Topaz);
ModLoader.addName(Topaz, "Topaz Ore");
;


SilverOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/The copper mod/The copper mod2.png");
ModLoader.registerBlock(SilverOre);
ModLoader.addName(SilverOre, "Silver Ore");



//TinOre texture-----------------------------------------------------------------------------------------
TinOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/The copper mod/The copper mod3.png");
ModLoader.registerBlock(TinOre);
ModLoader.addName(TinOre, "Tin Ore");

//------------------------------------------------------------------------------------------------------

OpalI.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/OpalI.png");
ModLoader.addName(OpalI, "Opal");

Jet.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/JetI.png");
ModLoader.addName(Jet, "Jet");

OpalI.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/OpalI.png");
ModLoader.addName(OpalI, "Opal");

LeadIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/LeadIngot.png");
ModLoader.addName(LeadIngot, "Lead Ingot");
ModLoader.addSmelting(LeadOre.blockID, new ItemStack(LeadIngot.shiftedIndex, 1, 1), 1);

Azurite.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/AzuriteI.png");
ModLoader.addName(Azurite, "Azurite");

Amber.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/AmberI.png");
ModLoader.addName(Amber, "Amber");

TopazI.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/TopazI.png");
ModLoader.addName(TopazI, "Topaz");

Sulphur.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/SulphurI.png");
ModLoader.addName(Sulphur, "Sulphur");

cedarLeaves.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/The copper mod/The copper mod4.png");
ModLoader.registerBlock(cedarLeaves);
ModLoader.addName(cedarLeaves, "Cedar Leaves");


CedarSapling.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/The copper mod/The copper mod5.png");
ModLoader.registerBlock(CedarSapling);
ModLoader.addName(CedarSapling, "Cedar Sapling");

;
ModLoader.registerBlock(CedarLog);
ModLoader.addName(CedarLog, "Cedar Log");


Amethyst.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/The copper mod/Amethyst.png");
ModLoader.registerBlock(Amethyst);
ModLoader.addName(Amethyst, "Amethyst");
;


cedarLogMiddle = ModLoader.addOverride("/terrain.png", "/The copper mod/CedarLogtop.png");
cedarLogSides = ModLoader.addOverride("/terrain.png", "/The copper mod/CedarLog.png");

copperIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/CopperIngot.png");
ModLoader.addName(copperIngot, "Copper Ingot");
ModLoader.addSmelting(CopperOre.blockID, new ItemStack(copperIngot.shiftedIndex, 1, 1), 1);


SilverIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/SilverIngot.png");
ModLoader.addName(SilverIngot, "Silver Ingot");
ModLoader.addSmelting(SilverOre.blockID, new ItemStack(SilverIngot.shiftedIndex, 1, 1), 1);

TinIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/TinIngot.png");
ModLoader.addName(TinIngot, "Tin Ingot");
ModLoader.addSmelting(TinOre.blockID, new ItemStack(TinIngot.shiftedIndex, 1, 1), 1);

AmethystCrystal.iconIndex = ModLoader.addOverride("/gui/items.png", "/The copper mod/AmethystCrystal.png");
ModLoader.addName(AmethystCrystal, "Amethyst Crystal");
ModLoader.addSmelting(Amethyst.blockID, new ItemStack(AmethystCrystal.shiftedIndex, 1, 1), 1);
{
ModLoader.addName(CopperPickaxe, "Copper Pickaxe");
ModLoader.addName(CopperAxe, "Copper Axe");
ModLoader.addName(CopperShovel, "Copper Shovel");
ModLoader.addName(CopperSword, "Copper Sword");
ModLoader.addName(CopperHoe, "Copper Hoe");


HarrysRag.iconIndex = ModLoader.addOverride("/gui/items.png", "/record/Cinema.png");
ModLoader.addName(HarrysRag, "Harrys Rag");
ModLoader.addRecipe(new ItemStack(HarrysRag, 1), new Object[] {" # ", "#X#", " # ", Character.valueOf('#'), new ItemStack(Item.coal, 1, 1), Character.valueOf('X'), copperIngot});
}

NoVim.iconIndex = ModLoader.addOverride("/gui/items.png", "/record/NoVim.png");
ModLoader.addName(NoVim, "No!");
ModLoader.addRecipe(new ItemStack(NoVim, 1), new Object[] {" # ", "#X#", " # ", Character.valueOf('#'), new ItemStack(Item.coal, 1, 1), Character.valueOf('X'), TinIngot});
}
}














public void generateSurface(World world, Random rand, int j, int k)
{

BiomeGenBase biome = world.getWorldChunkManager().getBiomeGenAt(j, k);
WorldGenCedarTree tree = new WorldGenCedarTree();
if(biome instanceof BiomeGenCedarForest)


for(int x = 0; x < 1; x++)
{
int Xcoord = j + rand.nextInt(16);
int Zcoord = k + rand.nextInt(16);
int i = world.getHeightValue(Xcoord, Zcoord);
tree.generate(world, rand, Xcoord, Zcoord, i);

}
{

}


{
}

for(int rarity = 0; rarity < 13; rarity++){
int BlockX = k + rand.nextInt(16);
int BlockY = rand.nextInt(64);
int BlockZ= j + rand.nextInt(16);

new WorldGenMinable(LeadOre.blockID, 12).generate(world, rand, BlockX, BlockY, BlockZ);
}
for(int rarity = 0; rarity < 13; rarity++){
int BlockX = k + rand.nextInt(16);
int BlockY = rand.nextInt(64);
int BlockZ= j + rand.nextInt(16);

new WorldGenMinable(Opal.blockID, 12).generate(world, rand, BlockX, BlockY, BlockZ);
}
for(int rarity = 0; rarity < 13; rarity++){
int BlockX = k + rand.nextInt(16);
int BlockY = rand.nextInt(64);
int BlockZ= j + rand.nextInt(16);

new WorldGenMinable(AzuriteOre.blockID, 12).generate(world, rand, BlockX, BlockY, BlockZ);
}
for(int rarity = 0; rarity < 13; rarity++){
int BlockX = k + rand.nextInt(16);
int BlockY = rand.nextInt(64);
int BlockZ= j + rand.nextInt(16);

new WorldGenMinable(SulphurOre.blockID, 12).generate(world, rand, BlockX, BlockY, BlockZ);
}
for(int rarity = 0; rarity < 13; rarity++){
int BlockX = k + rand.nextInt(16);
int BlockY = rand.nextInt(64);
int BlockZ= j + rand.nextInt(16);

new WorldGenMinable(AmberOre.blockID, 12).generate(world, rand, BlockX, BlockY, BlockZ);
}
for(int rarity = 0; rarity < 13; rarity++){
int BlockX = k + rand.nextInt(16);
int BlockY = rand.nextInt(64);
int BlockZ= j + rand.nextInt(16);

new WorldGenMinable(Topaz.blockID, 12).generate(world, rand, BlockX, BlockY, BlockZ);
}

for(int rarity = 0; rarity < 13; rarity++){
int BlockX = k + rand.nextInt(16);
int BlockY = rand.nextInt(64);
int BlockZ= j + rand.nextInt(16);

new WorldGenMinable(JetOre.blockID, 12).generate(world, rand, BlockX, BlockY, BlockZ);
}

for(int rarity = 0; rarity < 13; rarity++){
int BlockX = k + rand.nextInt(16);
int BlockY = rand.nextInt(64);
int BlockZ= j + rand.nextInt(16);

new WorldGenMinable(CopperOre.blockID, 12).generate(world, rand, BlockX, BlockY, BlockZ);


}
for(int rarity = 0; rarity < 9; rarity++){
int BlockX = k + rand.nextInt(16);
int BlockY = rand.nextInt(64);
int BlockZ= j + rand.nextInt(16);

new WorldGenMinable(SilverOre.blockID, 13).generate(world, rand, BlockX, BlockY, BlockZ);


}
for(int rarity = 0; rarity < 6; rarity++){
int BlockX = k + rand.nextInt(16);
int BlockY = rand.nextInt(64);
int BlockZ= j + rand.nextInt(16);

new WorldGenMinable(TinOre.blockID, 14).generate(world, rand, BlockX, BlockY, BlockZ);

}
for(int rarity = 0; rarity < 3; rarity++){
int BlockX = k + rand.nextInt(16);
int BlockY = rand.nextInt(64);
int BlockZ= j + rand.nextInt(16);

new WorldGenMinable(Amethyst.blockID, 14).generate(world, rand, BlockX, BlockY, BlockZ);



}

}
}
______________________________________________________________

and the biome generation code:

package net.minecraft.src;

import java.util.List;
import java.util.Random;

public class BiomeGenCedarForest extends BiomeGenBase
{
private WorldGenerator worldGeneratorCedarForest;
public BiomeGenCedarForest(int par1)
{
super(par1);
spawnableMonsterList.clear();
spawnableCreatureList.clear();
spawnableWaterCreatureList.clear();

topBlock = (byte)mod_Thecoppermod.EnviroGrass.blockID;
fillerBlock = (byte)mod_Thecoppermod.SilverOre.blockID;
}




/**
* takes temperature, returns color
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(5) == 0 ? this.worldGeneratorCedarForest : (par1Random.nextInt(10) == 0 ? this.worldGeneratorCedarForest : this.worldGeneratorTrees));
}
}
__________________________________________________________

please help!
Posted by
maxy3
Level 34 : Artisan Demolitionist
12

  Have something to say?

JoinSign in

1

maxy3
11/25/2012 2:07 am
Level 34 : Artisan Demolitionist
i really need help
1

Welcome