Jump to content

Multiple ores wont generate[1.6.4]


majesticmadman98

Recommended Posts

No code: no help.

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

ok anything related to Marble or 'More' isn't part of my problem just something else i was working on in the mean time.

 

Main Code

 

package b.OOMOD;

 

import b.OOMOD.Weapons.weaponCBdagger;

import b.OOMOD.Weapons.weaponCBhammer;

import b.OOMOD.Weapons.weaponCBsword;

import b.OOMOD.Weapons.weaponIGknife;

import b.OOMOD.Weapons.weaponIGknife;

import b.OOMOD.Weapons.weaponIGsword;

import b.OOMOD.Weapons.weaponSIaxe;

import b.OOMOD.Weapons.weaponSIdagger;

import b.OOMOD.Weapons.weaponSIsword;

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraftforge.common.EnumHelper;

import net.minecraftforge.common.MinecraftForge;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

import b.OOMOD.Ingots.*;

import b.OOMOD.genWorld.CBoreWorldGen;

import b.OOMOD.genWorld.IGoreWorldGen;

import b.OOMOD.genWorld.SIoreWorldGen;

import b.OOMOD.genWorld.MoreWorldGen;

import b.OOMOD.ore.CBore;

 

 

 

//mod info

@Mod(modid = "OOMOD", name = "Odysessues' Oddity", version = "1.0.0")

//client server

@NetworkMod(clientSideRequired = true, serverSideRequired = false)

 

public class OOmain{

//Weapon defining

public static Item CBsword;

public static Item CBdagger;

public static Item CBhammer;

public static Item SIsword;

public static Item SIdagger;

public static Item SIaxe;

public static Item IGsword;

public static Item IGknife;

 

 

//define weapon material

public static EnumToolMaterial SWORD = EnumHelper.addToolMaterial("SWORD", 0, 2134, 8.0F, 11.0F, 10);

public static EnumToolMaterial DAGGER = EnumHelper.addToolMaterial("DAGGER", 0, 2134, 8.0F, 5.0F, 10);

public static EnumToolMaterial HAMMER = EnumHelper.addToolMaterial("HAMMER", 0, 2134, 8.0F, 15.0F, 10);

 

 

//Ingot Defining

public static Item CBingot;

public static Item SIingot;

public static Item IGingot;

public static Item Marble;

 

//Ore Defining

public static Block CBore;

public static Block SIore;

public static Block IGore;

public static Block More;

 

//Ore World Gen Defining

public static CBoreWorldGen CBO_genWorld = new CBoreWorldGen();

public static SIoreWorldGen SIO_genWorld = new SIoreWorldGen();

public static IGoreWorldGen IGO_genWorld = new IGoreWorldGen();

public static MoreWorldGen MO_genWorld = new MoreWorldGen();

 

 

    //event handler

@EventHandler

public void Load(FMLPreInitializationEvent Event){

 

//Weapon Settings

CBsword = new weaponCBsword(5000, SWORD).setUnlocalizedName("OOmod:CBsword ");

CBdagger = new weaponCBdagger(5001, DAGGER).setUnlocalizedName("OOmod:CBdagger ");

CBhammer = new weaponCBhammer(5002, HAMMER).setUnlocalizedName("OOmod:CBhammer ");

SIsword = new weaponSIsword(5003, SWORD).setUnlocalizedName("OOmod:SIsword ");

SIdagger = new weaponSIdagger(5004, DAGGER).setUnlocalizedName("OOmod:SIdagger ");

SIaxe = new weaponSIaxe(5005, HAMMER).setUnlocalizedName("OOmod:SIaxe ");

IGsword = new weaponIGsword(5006, SWORD).setUnlocalizedName("OOmod:IGsword ");

IGknife = new weaponIGknife(5007, DAGGER).setUnlocalizedName("OOmod:IGdagger ");

 

//ingot setting

CBingot = new CBingot(5008).setUnlocalizedName("OOmod:CBingot");

SIingot = new SIingot(5009).setUnlocalizedName("OOmod:SIingot");

IGingot = new IGingot(5010).setUnlocalizedName("OOmod:IGingot");

Marble = new Marble(5011).setUnlocalizedName("OOmod:Marble");

 

 

//ore settings

CBore = new b.OOMOD.ore.CBore(4000, Material.rock).setUnlocalizedName("OOmod:CBore");

SIore = new b.OOMOD.ore.SIore(4001, Material.rock).setUnlocalizedName("OOmod:SIore");

IGore = new b.OOMOD.ore.IGore(4002, Material.rock).setUnlocalizedName("OOmod:IGore");

More = new b.OOMOD.ore.More(4003, Material.rock).setUnlocalizedName("OOmod:More");

 

 

//Weapon Game Register

GameRegistry.registerItem(CBsword, "CBsword");

GameRegistry.registerItem(CBdagger, "CBdagger");

GameRegistry.registerItem(CBhammer, "CBhammer");

GameRegistry.registerItem(SIsword, "SIsword");

GameRegistry.registerItem(SIdagger, "SIdagger");

GameRegistry.registerItem(SIaxe, "SIaxe");

GameRegistry.registerItem(IGsword, "IGsword");

GameRegistry.registerItem(IGknife, "IGknife");

 

//Ingot Game Register

GameRegistry.registerItem(CBingot, "CBingot");

GameRegistry.registerItem(SIingot, "SIingot");

GameRegistry.registerItem(IGingot, "IGingot");

 

//Ore Game Register

GameRegistry.registerBlock(CBore, "CBore");

GameRegistry.registerBlock(SIore, "SIore");

GameRegistry.registerBlock(IGore, "IGore");

GameRegistry.registerBlock(More, "More");

 

 

//World Gen Game Register

GameRegistry.registerWorldGenerator(CBO_genWorld);

MinecraftForge.setBlockHarvestLevel(CBore, "pickaxe", 1);

 

GameRegistry.registerWorldGenerator(SIO_genWorld);

MinecraftForge.setBlockHarvestLevel(SIore, "pickaxe", 1);

 

GameRegistry.registerWorldGenerator(IGO_genWorld);

MinecraftForge.setBlockHarvestLevel(IGore, "pickaxe", 1);

 

GameRegistry.registerWorldGenerator(MO_genWorld);

MinecraftForge.setBlockHarvestLevel(More, "pickaxe", 1);

 

 

//Weapon Language Register

LanguageRegistry.addName(CBsword, "Celestial Bronze Sword");

LanguageRegistry.addName(CBdagger, "Celestial Bronze Dagger");

LanguageRegistry.addName(CBhammer, "Celestial Bronze Hammer");

LanguageRegistry.addName(SIsword, "Stygian Iron Sword");

LanguageRegistry.addName(SIdagger, "Stygian Iron Dagger");

LanguageRegistry.addName(SIaxe, "Stygian Iron Axe");

LanguageRegistry.addName(IGsword, "Imperial Gold Sword");

LanguageRegistry.addName(IGknife, "Imperial Gold Dagger");

 

//Ingot Language Register

LanguageRegistry.addName(CBingot, "Celestial Bronze Ingot");

LanguageRegistry.addName(SIingot, "Stygian Iron Ingot");

LanguageRegistry.addName(IGingot, "Imperial Gold Ingot");

LanguageRegistry.addName(Marble, "Marble");

 

//Ore Language Register

LanguageRegistry.addName(CBore, "Celestial Bronze Ore");

LanguageRegistry.addName(SIore, "Stygian Iron Ore");

LanguageRegistry.addName(IGore, "Imperial Gold Ore");

LanguageRegistry.addName(More, "Marble Ore");

 

 

//weapon Crafting recipes

GameRegistry.addRecipe(new ItemStack(CBsword), new Object[] {" C "," C "," S ", 'C', CBingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(CBdagger), new Object[] {"  "," C "," S ", 'C', CBingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(CBhammer), new Object[] {"CCC"," S "," S ", 'C', CBingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(SIsword), new Object[] {" I "," I "," S ", 'I', SIingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(SIdagger), new Object[] {"  "," I "," S ", 'I', SIingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(SIaxe), new Object[] {"III"," S "," S ", 'I', SIingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(IGsword), new Object[] {" G "," G "," S ", 'G', IGingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(IGknife), new Object[] {"  "," G "," S ", 'G', IGingot, 'S', Item.stick});

 

//Smelting Recipes

GameRegistry.addSmelting(CBore.blockID, new ItemStack(CBingot), 1.0F);

GameRegistry.addSmelting(SIore.blockID, new ItemStack(SIingot), 1.0F);

GameRegistry.addSmelting(IGore.blockID, new ItemStack(IGingot), 1.0F);

GameRegistry.addSmelting(More.blockID, new ItemStack(Marble), 1.0F);

 

}}

 

 

 

 

 

Ore 1 world gen

 

 

package b.OOMOD.genWorld;

 

import java.util.Random;

 

import b.OOMOD.OOmain;

import net.minecraft.world.World;

import net.minecraft.world.chunk.IChunkProvider;

import net.minecraft.world.gen.feature.WorldGenMinable;

import cpw.mods.fml.common.IWorldGenerator;

 

public class CBoreWorldGen implements IWorldGenerator {

 

@Override

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

IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {

switch(world.provider.dimensionId){

case 0:

generateSurface(world, random, chunkX*16, chunkZ*16);

}

 

}

 

private void generateSurface(World world, Random random, int i, int j) {

for (int k = 0; k < 25; k++) {

int chunkX = i + random.nextInt(16);

    int chunkY = random.nextInt(256);

    int chunkZ = j + random.nextInt(16);

   

    (new WorldGenMinable(OOmain.CBore.blockID, 64)).generate(world, random, chunkX, chunkY, chunkZ);}}}

 

 

ore 2 world gen

 

package b.OOMOD.genWorld;

 

import java.util.Random;

 

import b.OOMOD.OOmain;

import net.minecraft.world.World;

import net.minecraft.world.chunk.IChunkProvider;

import net.minecraft.world.gen.feature.WorldGenMinable;

import cpw.mods.fml.common.IWorldGenerator;

 

public class IGoreWorldGen implements IWorldGenerator {

 

@Override

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

IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {

switch(world.provider.dimensionId){

case 0:

generateSurface(world, random, chunkX*16, chunkZ*16);

}

 

}

 

private void generateSurface(World world, Random random, int i, int j) {

for (int k = 0; k < 25; k++) {

int chunkX = i + random.nextInt(16);

    int chunkY = random.nextInt(256);

    int chunkZ = j + random.nextInt(16);

   

    (new WorldGenMinable(OOmain.IGore.blockID, 64)).generate(world, random, chunkX, chunkY, chunkZ);}}}

 

 

ore 3 world gen

 

package b.OOMOD.genWorld;

 

import java.util.Random;

 

import b.OOMOD.OOmain;

import net.minecraft.world.World;

import net.minecraft.world.chunk.IChunkProvider;

import net.minecraft.world.gen.feature.WorldGenMinable;

import cpw.mods.fml.common.IWorldGenerator;

 

public class SIoreWorldGen implements IWorldGenerator {

 

@Override

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

IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {

switch(world.provider.dimensionId){

case 0:

generateSurface(world, random, chunkX*16, chunkZ*16);

}

 

}

 

private void generateSurface(World world, Random random, int i, int j) {

for (int k = 0; k < 25; k++) {

int chunkX = i + random.nextInt(16);

    int chunkY = random.nextInt(256);

    int chunkZ = j + random.nextInt(16);

   

    (new WorldGenMinable(OOmain.SIore.blockID, 64)).generate(world, random, chunkX, chunkY, chunkZ);}}}

 

 

do you need the block class files?

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.