Jump to content

Custom Ores not spawning in


djday1337

Recommended Posts

Only Copper, Tin, and Silver will spawn in for some reason.

 

 

 

class:   

package com.DJDAY.modnamehereKappa;

 

import java.util.Random;

 

import cpw.mods.fml.common.IWorldGenerator;

import net.minecraft.block.Block;

import net.minecraft.init.Blocks;

import net.minecraft.world.World;

import net.minecraft.world.chunk.IChunkProvider;

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

 

public class CopperGen implements IWorldGenerator {

 

@Override

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

IChunkProvider chunkProvider) {

switch (world.provider.dimensionId)

 

{

case 1:

generateEnd(world, random, chunkX, chunkZ);

break;

case 0:

generateOverworld(world, random, chunkX, chunkZ);

break;

case -1:

generateNether(world, random, chunkX, chunkZ);

break;

}

 

}

 

public void generateEnd(World world, Random rand, int x, int z) {

 

}

//N.1-2 = min/max 3. = CHANCE 4-5. = MIN/MAX-Y

public void generateOverworld(World world, Random rand, int x, int z) {

generateOre(Firstmod.CopperOre,  world, rand, x, z, 4, 10, 20, 0, 124, Blocks.stone);

generateOre(Firstmod.TinOre,      world, rand, x, z, 3, 8, 20, 0, 165, Blocks.stone);

generateOre(Firstmod.SilverOre,  world, rand, x, z, 2, 6, 20, 0, 100, Blocks.stone);

generateOre(Firstmod.EmeraldOre,  world, rand, x, z, 1, 3, 20, 20, 200, Blocks.stone);

generateOre(Firstmod.AmethystOre, world, rand, x, z, 2, 4, 20, 0, 232, Blocks.stone);

generateOre(Firstmod.RubyOre,    world, rand, x, z, 1, 3, 20, 10, 323, Blocks.stone);

}

 

 

 

 

public void generateNether(World world, Random rand, int x, int z) {

 

}

 

public void generateOre(Block block, World world, Random random, int chunkX, int chunkZ, int minVienSize,

int MaxVienSize, int chance, int minY, int maxY, Block generateIn) {

 

int vienSize = minVienSize + random.nextInt(MaxVienSize - minVienSize);

int heightRange = maxY - minY;

WorldGenMinable gen = new WorldGenMinable(block, vienSize, generateIn);

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

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

int yRand = random.nextInt(heightRange) + minY;

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

gen.generate(world, random, xRand, yRand, zRand);

}

}

}

 

 

 

 

heres the other ores classes

 

Amethyst   

package com.DJDAY.modnamehereKappa;

 

import java.util.Random;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.item.Item;

 

public class AmethystOre extends Block {

 

protected AmethystOre(Material material) {

super(material);

this.setHardness(3.0F);

this.setStepSound(this.soundTypeStone);

}

 

@Override

 

public Item getItemDropped(int metadata, Random rand, int fortune) {

return Firstmod.itemAmethyst;

}

 

public int quatityDropped(Random rand) {

return 1;

}

}

 

 

 

Emerald   

package com.DJDAY.modnamehereKappa;

 

import java.util.Random;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.item.Item;

 

public class EmeraldOre extends Block{

 

protected EmeraldOre(Material material) {

super(material);

this.setHardness(4.0F);

this.setStepSound(this.soundTypeStone);

}

@Override

 

public Item getItemDropped(int metadata, Random rand, int fortune){

return Firstmod.itemEmeraldShard;

}

 

 

 

public int quatityDropped(Random rand){

return 5;

}

}

 

 

 

Ruby   

package com.DJDAY.modnamehereKappa;

 

import java.util.Random;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.item.Item;

 

public class RubyOre extends Block {

 

protected RubyOre(Material material) {

super(material);

this.setHardness(6.0F);

this.setStepSound(this.soundTypeStone);

}

 

@Override

 

public Item getItemDropped(int metadata, Random rand, int fortune) {

return Firstmod.itemRuby;

}

 

public int quatityDropped(Random rand) {

return 1;

}

}

 

 

Firstmod:

 

 

package com.DJDAY.modnamehereKappa;

 

import cpw.mods.fml.common.Mod;

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

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

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

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

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

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraftforge.common.util.EnumHelper;

 

@Mod(modid = "mo", name = "More Ores!", version = "1.0")

 

public class Firstmod {

 

public static Item itemOrichalcumDust;

 

public static Item itemRuby;

 

public static Item itemRubyDust;

 

public static Item itemRubyHammer;

 

public static Block RubyOre;

 

public static Item itemRubyPickaxe;

 

public static Item itemRubyAxe;

 

public static Item itemRubySword;

 

public static Item itemRubySpade;

 

public static Item itemRubyHoe;

 

public static Block AmethystOre;

 

public static Block AmethystBrick;

 

public static Item itemAmethyst;

 

public static Item itemAmethystDust;

 

public static Item itemAmethystPickaxe;

 

public static Item itemAmethystAxe;

 

public static Item itemAmethystSword;

 

public static Item itemAmethystSpade;

 

public static Item itemAmethystHoe;

 

public static Item itemEmeraldShard;

 

public static Item itemEmeraldPiece;

 

public static Item itemDiamondIngot;

 

public static Item itemDiamondDust;

 

public static Item itemCopperIngot;

 

public static Item itemCopperDust;

 

public static Item itemSilverIngot;

 

public static Item itemSilverDust;

 

public static Item itemTinIngot;

 

public static Item itemTinDust;

 

public static Item itemCopperPickaxe;

 

public static Item itemCopperAxe;

 

public static Item itemCopperSword;

 

public static Item itemCopperSpade;

 

public static Item itemCopperHoe;

 

public static Item itemSilverPickaxe;

 

public static Item itemSilverAxe;

 

public static Item itemSilverSword;

 

public static Item itemSilverSpade;

 

public static Item itemSilverHoe;

 

public static Item itemTinAxe;

 

public static Item itemTinSword;

 

public static Item itemTinSpade;

 

public static Item itemTinHoe;

 

public static Item itemTinPickaxe;

 

public static Block EmeraldOre;

 

public static Block DiamondBrick;

 

public static Block CopperOre;

 

public static Block CopperBrick;

 

public static Block TinOre;

 

public static Block TinBrick;

 

public static Block SilverOre;

 

public static Block SilverBrick;

 

public static final Item.ToolMaterial copperstuff = EnumHelper.addToolMaterial("copperstuff", 2, 256, 3.5F, 1.5F,

5);

 

public static final Item.ToolMaterial silverstuff = EnumHelper.addToolMaterial("silverstuff", 2, 512, 3.8F, 1.6F,

6);

 

public static final Item.ToolMaterial tinstuff = EnumHelper.addToolMaterial("tinstuff", 2, 360, 3.4F, 1.5F, 4);

 

public static final Item.ToolMaterial amystuff = EnumHelper.addToolMaterial("amystuff", 2, 1024, 4.0F, 2.0F, 8);

 

public static final Item.ToolMaterial rubystuff = EnumHelper.addToolMaterial("rubystuff", 2, 1561, 5.0F, 3.0F, 9);

 

@EventHandler

public void preInit(FMLPreInitializationEvent event) {

// item and block initialization and registering

// configuration handling

 

//Orichalcum

 

itemOrichalcumDust = new ItemOrichalcumDust().setUnlocalizedName("OrichalcumDust").setTextureName("fm:Orichalcum_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemOrichalcumDust, itemOrichalcumDust.getUnlocalizedName().substring(5));

 

// Ruby

 

RubyOre = new RubyOre(Material.rock).setBlockName("RubyOre").setBlockTextureName("fm:Ruby_Ore")

.setCreativeTab(moreores);

GameRegistry.registerBlock(RubyOre, RubyOre.getUnlocalizedName().substring(5));

 

itemRuby = new itemRuby().setUnlocalizedName("Ruby").setTextureName("fm:Ruby")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemRuby, itemRuby.getUnlocalizedName().substring(5));

 

itemRubyDust = new itemRubyDust().setUnlocalizedName("RubyDust").setTextureName("fm:Ruby_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemRubyDust, itemRubyDust.getUnlocalizedName().substring(5));

 

itemRubyHammer = new ItemRubyHammer().setUnlocalizedName("RubyHammer").setMaxStackSize(1)

.setTextureName("fm:Ruby_Hammer").setCreativeTab(moreores);

GameRegistry.registerItem(itemRubyHammer, itemRubyHammer.getUnlocalizedName().substring(5));

 

itemRubyPickaxe = new ItemRubyPickaxe(rubystuff).setUnlocalizedName("RubyPickaxe")

.setTextureName("fm:Ruby_Pickaxe").setCreativeTab(moreores);

GameRegistry.registerItem(itemRubyPickaxe, itemRubyPickaxe.getUnlocalizedName().substring(5));

 

itemRubyAxe = new ItemRubyAxe(rubystuff).setUnlocalizedName("RubyAxe").setTextureName("fm:Ruby_Axe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemRubyAxe, itemRubyAxe.getUnlocalizedName().substring(5));

 

itemRubySword = new ItemRubySword(rubystuff).setUnlocalizedName("RubySword").setTextureName("fm:Ruby_Sword")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemRubySword, itemRubySword.getUnlocalizedName().substring(5));

 

itemRubySpade = new ItemRubySpade(rubystuff).setUnlocalizedName("RubySpade").setTextureName("fm:Ruby_Spade")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemRubySpade, itemRubySpade.getUnlocalizedName().substring(5));

 

itemRubyHoe = new ItemRubyHoe(rubystuff).setUnlocalizedName("RubyHoe").setTextureName("fm:Ruby_Hoe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemRubyHoe, itemRubyHoe.getUnlocalizedName().substring(5));

 

// amethyst

 

AmethystOre = new AmethystOre(Material.rock).setBlockName("AmethystOre").setBlockTextureName("fm:Amythest_Ore")

.setCreativeTab(moreores);

GameRegistry.registerBlock(AmethystOre, AmethystOre.getUnlocalizedName().substring(5));

 

itemAmethystDust = new ItemAmethystDust().setUnlocalizedName("AmethystDust").setTextureName("fm:Amethyst_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethystDust, itemAmethystDust.getUnlocalizedName().substring(5));

 

AmethystBrick = new AmethystBrick(Material.rock).setBlockName("AmethystBrick")

.setBlockTextureName("fm:Amethyst_Brick").setCreativeTab(moreores);

GameRegistry.registerBlock(AmethystBrick, AmethystBrick.getUnlocalizedName().substring(5));

 

itemAmethyst = new itemAmethyst().setUnlocalizedName("Amethyst").setTextureName("fm:Amythest")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethyst, itemAmethyst.getUnlocalizedName().substring(5));

 

itemAmethystPickaxe = new ItemAmethystPickaxe(amystuff).setUnlocalizedName("AmythestPickaxe")

.setTextureName("fm:Amethyst_Pickaxe").setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethystPickaxe, itemAmethystPickaxe.getUnlocalizedName().substring(5));

 

itemAmethystAxe = new ItemAmethystAxe(amystuff).setUnlocalizedName("AmethystAxe")

.setTextureName("fm:Amethyst_Axe").setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethystAxe, itemAmethystAxe.getUnlocalizedName().substring(5));

 

itemAmethystSword = new ItemAmethystSword(amystuff).setUnlocalizedName("AmethystSword")

.setTextureName("fm:Amethyst_Sword").setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethystSword, itemAmethystSword.getUnlocalizedName().substring(5));

 

itemAmethystSpade = new ItemAmethystSpade(amystuff).setUnlocalizedName("AmethystSpade")

.setTextureName("fm:Amethyst_Spade").setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethystSpade, itemAmethystSpade.getUnlocalizedName().substring(5));

 

itemAmethystHoe = new ItemAmethystHoe(amystuff).setUnlocalizedName("AmythestHoe")

.setTextureName("fm:Amethyst_Hoe").setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethystHoe, itemAmethystHoe.getUnlocalizedName().substring(5));

 

// Emerald

 

EmeraldOre = new EmeraldOre(Material.rock).setBlockName("EmeraldOre").setBlockTextureName("fm:Emerald_Ore")

.setCreativeTab(moreores);

GameRegistry.registerBlock(EmeraldOre, EmeraldOre.getUnlocalizedName().substring(5));

 

itemEmeraldShard = new ItemEmeraldShard().setUnlocalizedName("EmeraldShard").setTextureName("fm:Emerald_Shard")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemEmeraldShard, itemEmeraldShard.getUnlocalizedName().substring(5));

 

itemEmeraldPiece = new ItemEmeraldPiece().setUnlocalizedName("EmeraldPiece").setTextureName("fm:Emerald_piece")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemEmeraldPiece, itemEmeraldPiece.getUnlocalizedName().substring(5));

 

// Diamond

 

itemDiamondIngot = new ItemDiamondIngot().setUnlocalizedName("DiamondIngot").setTextureName("fm:Diamond_Ingot")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemDiamondIngot, itemDiamondIngot.getUnlocalizedName().substring(5));

 

itemDiamondDust = new ItemDiamondDust().setUnlocalizedName("DiamondDust").setTextureName("fm:Diamond_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemDiamondDust, itemDiamondDust.getUnlocalizedName().substring(5));

 

DiamondBrick = new DiamondBrick(Material.rock).setBlockName("DiamondBrick")

.setBlockTextureName("fm:Diamond_Brick").setCreativeTab(moreores);

GameRegistry.registerBlock(DiamondBrick, DiamondBrick.getUnlocalizedName().substring(5));

 

// Copper

 

itemCopperIngot = new ItemCopperIngot().setUnlocalizedName("CopperIngot").setTextureName("fm:Copper_Ingot")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperIngot, itemCopperIngot.getUnlocalizedName().substring(5));

 

itemCopperDust = new ItemCopperDust().setUnlocalizedName("CopperDust").setTextureName("fm:Copper_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperDust, itemCopperDust.getUnlocalizedName().substring(5));

 

CopperOre = new CopperOre(Material.rock).setBlockName("CopperOre").setBlockTextureName("fm:Copper_Ore")

.setCreativeTab(moreores);

GameRegistry.registerBlock(CopperOre, CopperOre.getUnlocalizedName().substring(5));

 

itemCopperPickaxe = new ItemCopperPickaxe(copperstuff).setUnlocalizedName("CopperPickaxe")

.setTextureName("fm:Copper_Pickaxe").setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperPickaxe, itemCopperPickaxe.getUnlocalizedName().substring(5));

 

itemCopperAxe = new ItemCopperAxe(copperstuff).setUnlocalizedName("CopperAxe").setTextureName("fm:Copper_Axe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperAxe, itemCopperAxe.getUnlocalizedName().substring(5));

 

itemCopperSword = new ItemCopperSword(copperstuff).setUnlocalizedName("CopperSword")

.setTextureName("fm:Copper_Sword").setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperSword, itemCopperSword.getUnlocalizedName().substring(5));

 

itemCopperSpade = new ItemCopperSpade(copperstuff).setUnlocalizedName("CopperSpade")

.setTextureName("fm:Copper_Spade").setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperSpade, itemCopperSpade.getUnlocalizedName().substring(5));

 

itemCopperHoe = new itemCopperHoe(copperstuff).setUnlocalizedName("CopperHoe").setTextureName("fm:Copper_Hoe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperHoe, itemCopperHoe.getUnlocalizedName().substring(5));

 

CopperBrick = new CopperBrick(Material.rock).setBlockName("CopperBrick").setBlockTextureName("fm:Copper_Brick")

.setCreativeTab(moreores);

GameRegistry.registerBlock(CopperBrick, CopperBrick.getUnlocalizedName().substring(5));

 

// Silver

 

itemSilverIngot = new ItemSilverIngot().setUnlocalizedName("SilverIngot").setTextureName("fm:Silver_Ingot")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverIngot, itemSilverIngot.getUnlocalizedName().substring(5));

 

itemSilverDust = new ItemSilverDust().setUnlocalizedName("SilverDust").setTextureName("fm:Silver_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverDust, itemSilverDust.getUnlocalizedName().substring(5));

 

itemSilverPickaxe = new ItemSilverPickaxe(silverstuff).setUnlocalizedName("SilverPickaxe")

.setTextureName("fm:Silver_Pickaxe").setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverPickaxe, itemSilverPickaxe.getUnlocalizedName().substring(5));

 

itemSilverAxe = new ItemSilverAxe(silverstuff).setUnlocalizedName("SilverAxe").setTextureName("fm:Silver_Axe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverAxe, itemSilverAxe.getUnlocalizedName().substring(5));

 

itemSilverSword = new ItemSilverSword(silverstuff).setUnlocalizedName("SilverSword")

.setTextureName("fm:Silver_Sword").setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverSword, itemSilverSword.getUnlocalizedName().substring(5));

 

itemSilverSpade = new ItemSilverSpade(silverstuff).setUnlocalizedName("SilverSpade")

.setTextureName("fm:Silver_Spade").setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverSpade, itemSilverSpade.getUnlocalizedName().substring(5));

 

itemSilverHoe = new itemSilverHoe(silverstuff).setUnlocalizedName("SilverHoe").setTextureName("fm:Silver_Hoe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverHoe, itemSilverHoe.getUnlocalizedName().substring(5));

 

SilverOre = new SilverOre(Material.rock).setBlockName("SilverOre").setBlockTextureName("fm:Silver_Ore")

.setCreativeTab(moreores);

GameRegistry.registerBlock(SilverOre, SilverOre.getUnlocalizedName().substring(5));

 

SilverBrick = new SilverBrick(Material.rock).setBlockName("SilverBrick").setBlockTextureName("fm:Silver_Brick")

.setCreativeTab(moreores);

GameRegistry.registerBlock(SilverBrick, SilverBrick.getUnlocalizedName().substring(5));

 

// Tin

 

itemTinIngot = new ItemTinIngot().setUnlocalizedName("TinIngot").setTextureName("fm:Tin_Ingot")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinIngot, itemTinIngot.getUnlocalizedName().substring(5));

 

itemTinDust = new ItemTinDust().setUnlocalizedName("TinDust").setTextureName("fm:Tin_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinDust, itemTinDust.getUnlocalizedName().substring(5));

 

itemTinPickaxe = new ItemTinPickaxe(tinstuff).setUnlocalizedName("TinPickaxe").setTextureName("fm:Tin_Pickaxe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinPickaxe, itemTinPickaxe.getUnlocalizedName().substring(5));

 

itemTinAxe = new ItemTinAxe(tinstuff).setUnlocalizedName("TinAxe").setTextureName("fm:Tin_Axe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinAxe, itemTinAxe.getUnlocalizedName().substring(5));

 

itemTinSword = new ItemTinSword(tinstuff).setUnlocalizedName("TinSword").setTextureName("fm:Tin_Sword")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinSword, itemTinSword.getUnlocalizedName().substring(5));

 

itemTinSpade = new ItemTinSpade(tinstuff).setUnlocalizedName("TinSpade").setTextureName("fm:Tin_Spade")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinSpade, itemTinSpade.getUnlocalizedName().substring(5));

 

itemTinHoe = new ItemTinHoe(tinstuff).setUnlocalizedName("TinHoe").setTextureName("fm:Tin_Hoe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinHoe, itemTinHoe.getUnlocalizedName().substring(5));

 

TinOre = new TinOre(Material.rock).setBlockName("TinOre").setBlockTextureName("fm:Tin_Ore")

.setCreativeTab(moreores);

GameRegistry.registerBlock(TinOre, TinOre.getUnlocalizedName().substring(5));

 

TinBrick = new TinBrick(Material.rock).setBlockName("TinBrick").setBlockTextureName("fm:Tin_Brick")

.setCreativeTab(moreores);

GameRegistry.registerBlock(TinBrick, TinBrick.getUnlocalizedName().substring(5));

 

GameRegistry.registerWorldGenerator(new CopperGen(), 0);

 

}

 

@EventHandler

public void init(FMLInitializationEvent event) {

// Proxy, TileEntity, entity, GUI and packet Registering

 

// crafting

 

// Ruby

 

GameRegistry.addRecipe(new ItemStack(itemRubyHammer),

new Object[] { "RR ", " SR", " S ", Character.valueOf('R'), itemRuby, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemRubyPickaxe),

new Object[] { "RRR", " S ", " S ", Character.valueOf('R'), itemRuby, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemRubyAxe),

new Object[] { "RR ", "RS ", " S ", Character.valueOf('R'), itemRuby, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemRubySword),

new Object[] { " R ", " R ", " S ", Character.valueOf('R'), itemRuby, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemRubySpade),

new Object[] { " R ", " S ", " S ", Character.valueOf('R'), itemRuby, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemRubyHoe),

new Object[] { "RR ", " S ", " S ", Character.valueOf('R'), itemRuby, 'S', Items.stick });

 

// Amythest

 

GameRegistry.addRecipe(new ItemStack(AmethystBrick),

new Object[] { "AAA", "AAA", "AAA", Character.valueOf('A'), itemAmethyst });

 

GameRegistry.addRecipe(new ItemStack(itemAmethystPickaxe),

new Object[] { "AAA", " S ", " S ", Character.valueOf('A'), itemAmethyst, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemAmethystAxe),

new Object[] { "AA ", "AS ", " S ", Character.valueOf('A'), itemAmethyst, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemAmethystSword),

new Object[] { " A ", " A ", " S ", Character.valueOf('A'), itemAmethyst, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemAmethystSpade),

new Object[] { " A ", " S ", " S ", Character.valueOf('A'), itemAmethyst, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemAmethystHoe),

new Object[] { "AA ", " S ", " S ", Character.valueOf('A'), itemAmethyst, 'S', Items.stick });

 

// Emerald

 

GameRegistry.addRecipe(new ItemStack(itemEmeraldPiece),

new Object[] { "OO ", "OO ", "  ", Character.valueOf('O'), itemEmeraldShard });

 

GameRegistry.addRecipe(new ItemStack(Items.emerald),

new Object[] { "PP ", "PP  ", "  ", Character.valueOf('P'), itemEmeraldPiece });

 

// DiamondIngot

 

GameRegistry.addRecipe(new ItemStack(itemDiamondIngot),

new Object[] { "OO ", "OO  ", "  ", Character.valueOf('O'), Items.diamond });

 

GameRegistry.addRecipe(new ItemStack(Items.diamond, 4),

new Object[] { "OO ", "OO  ", "  ", Character.valueOf('O'), itemDiamondIngot });

 

GameRegistry.addRecipe(new ItemStack(DiamondBrick),

new Object[] { "DDD", "DDD", "DDD", Character.valueOf('D'), itemDiamondIngot });

 

// Copper

 

GameRegistry.addRecipe(new ItemStack(itemCopperPickaxe),

new Object[] { "CCC", " S ", " S ", Character.valueOf('C'), itemCopperIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemCopperAxe),

new Object[] { "CC ", "CS ", " S ", Character.valueOf('C'), itemCopperIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemCopperSword),

new Object[] { " C ", " C ", " S ", Character.valueOf('C'), itemCopperIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemCopperSpade),

new Object[] { " C ", " S ", " S ", Character.valueOf('C'), itemCopperIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemCopperHoe),

new Object[] { "CC ", " S ", " S ", Character.valueOf('C'), itemCopperIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(CopperBrick),

new Object[] { "CCC", "CCC", "CCC", Character.valueOf('C'), itemCopperIngot });

 

GameRegistry.addSmelting(CopperOre, new ItemStack(itemCopperIngot, 1), 2);

 

// Silver

 

GameRegistry.addRecipe(new ItemStack(itemSilverPickaxe),

new Object[] { "III", " S ", " S ", Character.valueOf('I'), itemSilverIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemSilverAxe),

new Object[] { "II ", "IS ", " S ", Character.valueOf('I'), itemSilverIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemSilverSword),

new Object[] { " I ", " I ", " S ", Character.valueOf('I'), itemSilverIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemSilverSpade),

new Object[] { " I ", " S ", " S ", Character.valueOf('I'), itemSilverIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemSilverHoe),

new Object[] { "II ", " S ", " S ", Character.valueOf('I'), itemSilverIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(SilverBrick),

new Object[] { "III", "III", "III", Character.valueOf('I'), itemSilverIngot });

 

GameRegistry.addSmelting(SilverOre, new ItemStack(itemSilverIngot, 1), 2);

 

// Tin

 

GameRegistry.addRecipe(new ItemStack(itemTinPickaxe),

new Object[] { "TTT", " S ", " S ", Character.valueOf('T'), itemTinIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemTinAxe),

new Object[] { "TT ", "TS ", " S ", Character.valueOf('T'), itemTinIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemTinSword),

new Object[] { " T ", " T ", " S ", Character.valueOf('T'), itemTinIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemTinSpade),

new Object[] { " T ", " S ", " S ", Character.valueOf('T'), itemTinIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemTinHoe),

new Object[] { "TT ", " S ", " S ", Character.valueOf('T'), itemTinIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(TinBrick),

new Object[] { "TTT", "TTT", "TTT", Character.valueOf('T'), itemTinIngot });

 

GameRegistry.addSmelting(TinOre, new ItemStack(itemTinIngot, 1), 2);

 

// Hammer Recipes (by hammer type)

 

// Ruby

 

GameRegistry.addRecipe(new ItemStack(itemRubyDust, 2),

new Object[] { " H ", " R ", "  ", Character.valueOf('H'), itemRubyHammer, 'R', RubyOre });

 

GameRegistry.addRecipe(new ItemStack(itemCopperDust, 2),

new Object[] { " H ", " R ", "  ", Character.valueOf('H'), itemRubyHammer, 'R', CopperOre });

 

GameRegistry.addRecipe(new ItemStack(itemSilverDust, 2),

new Object[] { " H ", " R ", "  ", Character.valueOf('H'), itemRubyHammer, 'R', SilverOre });

 

GameRegistry.addRecipe(new ItemStack(itemTinDust, 2),

new Object[] { " H ", " R ", "  ", Character.valueOf('H'), itemRubyHammer, 'R', TinOre });

 

}

 

@EventHandler

public void postInit(FMLPostInitializationEvent event) {

 

}

 

public static CreativeTabs moreores = new CreativeTabs("MoreOres!") {

@Override

public Item getTabIconItem() {

return new ItemStack(itemDiamondIngot).getItem();

 

}

 

};

 

}

 

 

 

 

Please help!

MY NAME IS JEFF. Or is it? I do hope you never always not have a bad day!

Link to comment
Share on other sites

Are you getting any crashes or errors in the log?

 

Have the gem ores been instantiated and registered properly?

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

My thoughts:

 

1) You should add the @override attribute to your quatityDropped functions (and then respond to the error messages).

 

2) You should include the source of Firstmod so we can see what may be interfering with object instantiation. Do all of those objects execute their constructors successfully? Did you confuse item classes with ore classes in declarations? (something like that would explain the smeltable metals succeeding while gem-dropping ores failed)

 

 

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

"The method quatityDropped(Random) of type EmeraldOre must override or implement a supertype method" That happens when I add @Override to it for some reason.

 

I added the class Firstmod to the post

 

 

 

 

MY NAME IS JEFF. Or is it? I do hope you never always not have a bad day!

Link to comment
Share on other sites

"The method quatityDropped(Random) of type EmeraldOre must override or implement a supertype method"

Because you misspelled the method name, inadvertently creating a new method instead of overriding the one that will be called by the game. Correcting spelling and parameter mismatches (and keeping up with superclass edits) is why we add the annotation wherever applicable.

 

As it turns out, the default method in BlockOre will drop one for anything other than lapis, so your method is actually unnecessary (not hurting, just taking up space).

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

I looked through your code again, and I'm not spotting any drop-dead differences between the metals and the gems. You might want to set a debug breakpoint on your generateOre call to one of those gem ores.

 

The only thing I can think of: Your height ranges are high, so a lot of the gem ores will fail when they try to generate in air (and even above the height limit for the Overworld). Maybe you just didn't get many and couldn't find them. Do a test where they're confined to a narrow range with lots of rock. See if they become easier to find. If so, then you just need to calibrate your numbers to get the scarcity and distribution you want.

 

Oh, and when testing world generators, you need to start a new world (or go to previously unvisited chunks) to spawn new generation every time. Otherwise you see only what was generated (or failed) when the world/chunk spawned sometime in the past.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

Ok, Ive been looking for an hour now with some tweaks and can only find Amethyst... Even with the chance being 50!

 

Gen:

 

 

package com.DJDAY.modnamehereKappa;

 

import java.util.Random;

 

import cpw.mods.fml.common.IWorldGenerator;

import net.minecraft.block.Block;

import net.minecraft.init.Blocks;

import net.minecraft.world.World;

import net.minecraft.world.chunk.IChunkProvider;

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

 

public class CopperGen implements IWorldGenerator {

 

@Override

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

IChunkProvider chunkProvider) {

switch (world.provider.dimensionId)

 

{

case 1:

generateEnd(world, random, chunkX, chunkZ);

break;

case 0:

generateOverworld(world, random, chunkX, chunkZ);

break;

case -1:

generateNether(world, random, chunkX, chunkZ);

break;

}

 

}

 

public void generateEnd(World world, Random rand, int x, int z) {

 

}

//N.1-2 = min/max 3. = CHANCE 4-5. = MIN/MAX-Y

public void generateOverworld(World world, Random rand, int x, int z) {

generateOre(Firstmod.CopperOre,  world, rand, x, z, 4, 10, 20, 0, 128, Blocks.stone);

generateOre(Firstmod.TinOre,      world, rand, x, z, 3, 8, 20, 0, 128, Blocks.stone);

generateOre(Firstmod.SilverOre,  world, rand, x, z, 2, 6, 20, 0, 128, Blocks.stone);

generateOre(Firstmod.EmeraldOre,  world, rand, x, z, 1, 3, 50, 0, 128, Blocks.stone);

generateOre(Firstmod.AmethystOre, world, rand, x, z, 2, 4, 50, 0, 128, Blocks.stone);

generateOre(Firstmod.RubyOre,    world, rand, x, z, 1, 3, 50, 0, 128, Blocks.stone);

}

 

 

 

 

public void generateNether(World world, Random rand, int x, int z) {

 

}

 

public void generateOre(Block block, World world, Random random, int chunkX, int chunkZ, int minVienSize,

int MaxVienSize, int chance, int minY, int maxY, Block generateIn) {

 

int vienSize = minVienSize + random.nextInt(MaxVienSize - minVienSize);

int heightRange = maxY - minY;

WorldGenMinable gen = new WorldGenMinable(block, vienSize, generateIn);

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

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

int yRand = random.nextInt(heightRange) + minY;

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

gen.generate(world, random, xRand, yRand, zRand);

}

}

}

 

 

 

 

 

 

 

 

 

 

Firstmod:

 

 

package com.DJDAY.modnamehereKappa;

 

import cpw.mods.fml.common.Mod;

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

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

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

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

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

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraftforge.common.util.EnumHelper;

 

@Mod(modid = "mo", name = "More Ores!", version = "1.0")

 

public class Firstmod {

 

public static Item itemOrichalcumDust;

 

public static Item itemRuby;

 

public static Item itemRubyDust;

 

public static Item itemRubyHammer;

 

public static Block RubyOre;

 

public static Item itemRubyPickaxe;

 

public static Item itemRubyAxe;

 

public static Item itemRubySword;

 

public static Item itemRubySpade;

 

public static Item itemRubyHoe;

 

public static Block AmethystOre;

 

public static Block AmethystBrick;

 

public static Item itemAmethyst;

 

public static Item itemAmethystDust;

 

public static Item itemAmethystPickaxe;

 

public static Item itemAmethystAxe;

 

public static Item itemAmethystSword;

 

public static Item itemAmethystSpade;

 

public static Item itemAmethystHoe;

 

public static Item itemEmeraldShard;

 

public static Item itemEmeraldPiece;

 

public static Item itemDiamondIngot;

 

public static Item itemDiamondDust;

 

public static Item itemCopperIngot;

 

public static Item itemCopperDust;

 

public static Item itemSilverIngot;

 

public static Item itemSilverDust;

 

public static Item itemTinIngot;

 

public static Item itemTinDust;

 

public static Item itemCopperPickaxe;

 

public static Item itemCopperAxe;

 

public static Item itemCopperSword;

 

public static Item itemCopperSpade;

 

public static Item itemCopperHoe;

 

public static Item itemSilverPickaxe;

 

public static Item itemSilverAxe;

 

public static Item itemSilverSword;

 

public static Item itemSilverSpade;

 

public static Item itemSilverHoe;

 

public static Item itemTinAxe;

 

public static Item itemTinSword;

 

public static Item itemTinSpade;

 

public static Item itemTinHoe;

 

public static Item itemTinPickaxe;

 

public static Block EmeraldOre;

 

public static Block DiamondBrick;

 

public static Block CopperOre;

 

public static Block CopperBrick;

 

public static Block TinOre;

 

public static Block TinBrick;

 

public static Block SilverOre;

 

public static Block SilverBrick;

 

public static final Item.ToolMaterial copperstuff = EnumHelper.addToolMaterial("copperstuff", 2, 256, 3.5F, 1.5F,

5);

 

public static final Item.ToolMaterial silverstuff = EnumHelper.addToolMaterial("silverstuff", 2, 512, 3.8F, 1.6F,

6);

 

public static final Item.ToolMaterial tinstuff = EnumHelper.addToolMaterial("tinstuff", 2, 360, 3.4F, 1.5F, 4);

 

public static final Item.ToolMaterial amystuff = EnumHelper.addToolMaterial("amystuff", 2, 1024, 4.0F, 2.0F, 8);

 

public static final Item.ToolMaterial rubystuff = EnumHelper.addToolMaterial("rubystuff", 2, 1561, 5.0F, 3.0F, 9);

 

@EventHandler

public void preInit(FMLPreInitializationEvent event) {

// item and block initialization and registering

// configuration handling

 

//Orichalcum

 

itemOrichalcumDust = new ItemOrichalcumDust().setUnlocalizedName("OrichalcumDust").setTextureName("fm:Orichalcum_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemOrichalcumDust, itemOrichalcumDust.getUnlocalizedName().substring(5));

 

// Ruby

 

RubyOre = new RubyOre(Material.rock).setBlockName("RubyOre").setBlockTextureName("fm:Ruby_Ore")

.setCreativeTab(moreores);

GameRegistry.registerBlock(RubyOre, RubyOre.getUnlocalizedName().substring(5));

 

itemRuby = new itemRuby().setUnlocalizedName("Ruby").setTextureName("fm:Ruby")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemRuby, itemRuby.getUnlocalizedName().substring(5));

 

itemRubyDust = new itemRubyDust().setUnlocalizedName("RubyDust").setTextureName("fm:Ruby_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemRubyDust, itemRubyDust.getUnlocalizedName().substring(5));

 

itemRubyHammer = new ItemRubyHammer().setUnlocalizedName("RubyHammer").setMaxStackSize(1)

.setTextureName("fm:Ruby_Hammer").setCreativeTab(moreores);

GameRegistry.registerItem(itemRubyHammer, itemRubyHammer.getUnlocalizedName().substring(5));

 

itemRubyPickaxe = new ItemRubyPickaxe(rubystuff).setUnlocalizedName("RubyPickaxe")

.setTextureName("fm:Ruby_Pickaxe").setCreativeTab(moreores);

GameRegistry.registerItem(itemRubyPickaxe, itemRubyPickaxe.getUnlocalizedName().substring(5));

 

itemRubyAxe = new ItemRubyAxe(rubystuff).setUnlocalizedName("RubyAxe").setTextureName("fm:Ruby_Axe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemRubyAxe, itemRubyAxe.getUnlocalizedName().substring(5));

 

itemRubySword = new ItemRubySword(rubystuff).setUnlocalizedName("RubySword").setTextureName("fm:Ruby_Sword")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemRubySword, itemRubySword.getUnlocalizedName().substring(5));

 

itemRubySpade = new ItemRubySpade(rubystuff).setUnlocalizedName("RubySpade").setTextureName("fm:Ruby_Spade")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemRubySpade, itemRubySpade.getUnlocalizedName().substring(5));

 

itemRubyHoe = new ItemRubyHoe(rubystuff).setUnlocalizedName("RubyHoe").setTextureName("fm:Ruby_Hoe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemRubyHoe, itemRubyHoe.getUnlocalizedName().substring(5));

 

// amethyst

 

AmethystOre = new AmethystOre(Material.rock).setBlockName("AmethystOre").setBlockTextureName("fm:Amythest_Ore")

.setCreativeTab(moreores);

GameRegistry.registerBlock(AmethystOre, AmethystOre.getUnlocalizedName().substring(5));

 

itemAmethystDust = new ItemAmethystDust().setUnlocalizedName("AmethystDust").setTextureName("fm:Amethyst_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethystDust, itemAmethystDust.getUnlocalizedName().substring(5));

 

AmethystBrick = new AmethystBrick(Material.rock).setBlockName("AmethystBrick")

.setBlockTextureName("fm:Amethyst_Brick").setCreativeTab(moreores);

GameRegistry.registerBlock(AmethystBrick, AmethystBrick.getUnlocalizedName().substring(5));

 

itemAmethyst = new itemAmethyst().setUnlocalizedName("Amethyst").setTextureName("fm:Amythest")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethyst, itemAmethyst.getUnlocalizedName().substring(5));

 

itemAmethystPickaxe = new ItemAmethystPickaxe(amystuff).setUnlocalizedName("AmythestPickaxe")

.setTextureName("fm:Amethyst_Pickaxe").setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethystPickaxe, itemAmethystPickaxe.getUnlocalizedName().substring(5));

 

itemAmethystAxe = new ItemAmethystAxe(amystuff).setUnlocalizedName("AmethystAxe")

.setTextureName("fm:Amethyst_Axe").setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethystAxe, itemAmethystAxe.getUnlocalizedName().substring(5));

 

itemAmethystSword = new ItemAmethystSword(amystuff).setUnlocalizedName("AmethystSword")

.setTextureName("fm:Amethyst_Sword").setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethystSword, itemAmethystSword.getUnlocalizedName().substring(5));

 

itemAmethystSpade = new ItemAmethystSpade(amystuff).setUnlocalizedName("AmethystSpade")

.setTextureName("fm:Amethyst_Spade").setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethystSpade, itemAmethystSpade.getUnlocalizedName().substring(5));

 

itemAmethystHoe = new ItemAmethystHoe(amystuff).setUnlocalizedName("AmythestHoe")

.setTextureName("fm:Amethyst_Hoe").setCreativeTab(moreores);

GameRegistry.registerItem(itemAmethystHoe, itemAmethystHoe.getUnlocalizedName().substring(5));

 

// Emerald

 

EmeraldOre = new EmeraldOre(Material.rock).setBlockName("EmeraldOre").setBlockTextureName("fm:Emerald_Ore")

.setCreativeTab(moreores);

GameRegistry.registerBlock(EmeraldOre, EmeraldOre.getUnlocalizedName().substring(5));

 

itemEmeraldShard = new ItemEmeraldShard().setUnlocalizedName("EmeraldShard").setTextureName("fm:Emerald_Shard")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemEmeraldShard, itemEmeraldShard.getUnlocalizedName().substring(5));

 

itemEmeraldPiece = new ItemEmeraldPiece().setUnlocalizedName("EmeraldPiece").setTextureName("fm:Emerald_piece")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemEmeraldPiece, itemEmeraldPiece.getUnlocalizedName().substring(5));

 

// Diamond

 

itemDiamondIngot = new ItemDiamondIngot().setUnlocalizedName("DiamondIngot").setTextureName("fm:Diamond_Ingot")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemDiamondIngot, itemDiamondIngot.getUnlocalizedName().substring(5));

 

itemDiamondDust = new ItemDiamondDust().setUnlocalizedName("DiamondDust").setTextureName("fm:Diamond_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemDiamondDust, itemDiamondDust.getUnlocalizedName().substring(5));

 

DiamondBrick = new DiamondBrick(Material.rock).setBlockName("DiamondBrick")

.setBlockTextureName("fm:Diamond_Brick").setCreativeTab(moreores);

GameRegistry.registerBlock(DiamondBrick, DiamondBrick.getUnlocalizedName().substring(5));

 

// Copper

 

itemCopperIngot = new ItemCopperIngot().setUnlocalizedName("CopperIngot").setTextureName("fm:Copper_Ingot")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperIngot, itemCopperIngot.getUnlocalizedName().substring(5));

 

itemCopperDust = new ItemCopperDust().setUnlocalizedName("CopperDust").setTextureName("fm:Copper_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperDust, itemCopperDust.getUnlocalizedName().substring(5));

 

CopperOre = new CopperOre(Material.rock).setBlockName("CopperOre").setBlockTextureName("fm:Copper_Ore")

.setCreativeTab(moreores);

GameRegistry.registerBlock(CopperOre, CopperOre.getUnlocalizedName().substring(5));

 

itemCopperPickaxe = new ItemCopperPickaxe(copperstuff).setUnlocalizedName("CopperPickaxe")

.setTextureName("fm:Copper_Pickaxe").setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperPickaxe, itemCopperPickaxe.getUnlocalizedName().substring(5));

 

itemCopperAxe = new ItemCopperAxe(copperstuff).setUnlocalizedName("CopperAxe").setTextureName("fm:Copper_Axe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperAxe, itemCopperAxe.getUnlocalizedName().substring(5));

 

itemCopperSword = new ItemCopperSword(copperstuff).setUnlocalizedName("CopperSword")

.setTextureName("fm:Copper_Sword").setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperSword, itemCopperSword.getUnlocalizedName().substring(5));

 

itemCopperSpade = new ItemCopperSpade(copperstuff).setUnlocalizedName("CopperSpade")

.setTextureName("fm:Copper_Spade").setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperSpade, itemCopperSpade.getUnlocalizedName().substring(5));

 

itemCopperHoe = new itemCopperHoe(copperstuff).setUnlocalizedName("CopperHoe").setTextureName("fm:Copper_Hoe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemCopperHoe, itemCopperHoe.getUnlocalizedName().substring(5));

 

CopperBrick = new CopperBrick(Material.rock).setBlockName("CopperBrick").setBlockTextureName("fm:Copper_Brick")

.setCreativeTab(moreores);

GameRegistry.registerBlock(CopperBrick, CopperBrick.getUnlocalizedName().substring(5));

 

// Silver

 

itemSilverIngot = new ItemSilverIngot().setUnlocalizedName("SilverIngot").setTextureName("fm:Silver_Ingot")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverIngot, itemSilverIngot.getUnlocalizedName().substring(5));

 

itemSilverDust = new ItemSilverDust().setUnlocalizedName("SilverDust").setTextureName("fm:Silver_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverDust, itemSilverDust.getUnlocalizedName().substring(5));

 

itemSilverPickaxe = new ItemSilverPickaxe(silverstuff).setUnlocalizedName("SilverPickaxe")

.setTextureName("fm:Silver_Pickaxe").setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverPickaxe, itemSilverPickaxe.getUnlocalizedName().substring(5));

 

itemSilverAxe = new ItemSilverAxe(silverstuff).setUnlocalizedName("SilverAxe").setTextureName("fm:Silver_Axe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverAxe, itemSilverAxe.getUnlocalizedName().substring(5));

 

itemSilverSword = new ItemSilverSword(silverstuff).setUnlocalizedName("SilverSword")

.setTextureName("fm:Silver_Sword").setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverSword, itemSilverSword.getUnlocalizedName().substring(5));

 

itemSilverSpade = new ItemSilverSpade(silverstuff).setUnlocalizedName("SilverSpade")

.setTextureName("fm:Silver_Spade").setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverSpade, itemSilverSpade.getUnlocalizedName().substring(5));

 

itemSilverHoe = new itemSilverHoe(silverstuff).setUnlocalizedName("SilverHoe").setTextureName("fm:Silver_Hoe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemSilverHoe, itemSilverHoe.getUnlocalizedName().substring(5));

 

SilverOre = new SilverOre(Material.rock).setBlockName("SilverOre").setBlockTextureName("fm:Silver_Ore")

.setCreativeTab(moreores);

GameRegistry.registerBlock(SilverOre, SilverOre.getUnlocalizedName().substring(5));

 

SilverBrick = new SilverBrick(Material.rock).setBlockName("SilverBrick").setBlockTextureName("fm:Silver_Brick")

.setCreativeTab(moreores);

GameRegistry.registerBlock(SilverBrick, SilverBrick.getUnlocalizedName().substring(5));

 

// Tin

 

itemTinIngot = new ItemTinIngot().setUnlocalizedName("TinIngot").setTextureName("fm:Tin_Ingot")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinIngot, itemTinIngot.getUnlocalizedName().substring(5));

 

itemTinDust = new ItemTinDust().setUnlocalizedName("TinDust").setTextureName("fm:Tin_Dust")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinDust, itemTinDust.getUnlocalizedName().substring(5));

 

itemTinPickaxe = new ItemTinPickaxe(tinstuff).setUnlocalizedName("TinPickaxe").setTextureName("fm:Tin_Pickaxe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinPickaxe, itemTinPickaxe.getUnlocalizedName().substring(5));

 

itemTinAxe = new ItemTinAxe(tinstuff).setUnlocalizedName("TinAxe").setTextureName("fm:Tin_Axe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinAxe, itemTinAxe.getUnlocalizedName().substring(5));

 

itemTinSword = new ItemTinSword(tinstuff).setUnlocalizedName("TinSword").setTextureName("fm:Tin_Sword")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinSword, itemTinSword.getUnlocalizedName().substring(5));

 

itemTinSpade = new ItemTinSpade(tinstuff).setUnlocalizedName("TinSpade").setTextureName("fm:Tin_Spade")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinSpade, itemTinSpade.getUnlocalizedName().substring(5));

 

itemTinHoe = new ItemTinHoe(tinstuff).setUnlocalizedName("TinHoe").setTextureName("fm:Tin_Hoe")

.setCreativeTab(moreores);

GameRegistry.registerItem(itemTinHoe, itemTinHoe.getUnlocalizedName().substring(5));

 

TinOre = new TinOre(Material.rock).setBlockName("TinOre").setBlockTextureName("fm:Tin_Ore")

.setCreativeTab(moreores);

GameRegistry.registerBlock(TinOre, TinOre.getUnlocalizedName().substring(5));

 

TinBrick = new TinBrick(Material.rock).setBlockName("TinBrick").setBlockTextureName("fm:Tin_Brick")

.setCreativeTab(moreores);

GameRegistry.registerBlock(TinBrick, TinBrick.getUnlocalizedName().substring(5));

 

GameRegistry.registerWorldGenerator(new CopperGen(), 0);

 

}

 

@EventHandler

public void init(FMLInitializationEvent event) {

// Proxy, TileEntity, entity, GUI and packet Registering

 

// crafting

 

// Ruby

 

GameRegistry.addRecipe(new ItemStack(itemRubyHammer),

new Object[] { "RR ", " SR", " S ", Character.valueOf('R'), itemRuby, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemRubyPickaxe),

new Object[] { "RRR", " S ", " S ", Character.valueOf('R'), itemRuby, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemRubyAxe),

new Object[] { "RR ", "RS ", " S ", Character.valueOf('R'), itemRuby, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemRubySword),

new Object[] { " R ", " R ", " S ", Character.valueOf('R'), itemRuby, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemRubySpade),

new Object[] { " R ", " S ", " S ", Character.valueOf('R'), itemRuby, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemRubyHoe),

new Object[] { "RR ", " S ", " S ", Character.valueOf('R'), itemRuby, 'S', Items.stick });

 

GameRegistry.addSmelting(RubyOre, new ItemStack(itemRuby, 1), 2);

 

// Amythest

 

GameRegistry.addRecipe(new ItemStack(AmethystBrick),

new Object[] { "AAA", "AAA", "AAA", Character.valueOf('A'), itemAmethyst });

 

GameRegistry.addRecipe(new ItemStack(itemAmethystPickaxe),

new Object[] { "AAA", " S ", " S ", Character.valueOf('A'), itemAmethyst, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemAmethystAxe),

new Object[] { "AA ", "AS ", " S ", Character.valueOf('A'), itemAmethyst, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemAmethystSword),

new Object[] { " A ", " A ", " S ", Character.valueOf('A'), itemAmethyst, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemAmethystSpade),

new Object[] { " A ", " S ", " S ", Character.valueOf('A'), itemAmethyst, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemAmethystHoe),

new Object[] { "AA ", " S ", " S ", Character.valueOf('A'), itemAmethyst, 'S', Items.stick });

 

GameRegistry.addSmelting(AmethystOre, new ItemStack(itemAmethyst, 1), 2);

 

// Emerald

 

GameRegistry.addRecipe(new ItemStack(itemEmeraldPiece),

new Object[] { "OO ", "OO ", "  ", Character.valueOf('O'), itemEmeraldShard });

 

GameRegistry.addRecipe(new ItemStack(Items.emerald),

new Object[] { "PP ", "PP  ", "  ", Character.valueOf('P'), itemEmeraldPiece });

 

GameRegistry.addSmelting(EmeraldOre, new ItemStack(itemEmeraldShard, 1), 2);

 

// DiamondIngot

 

GameRegistry.addRecipe(new ItemStack(itemDiamondIngot),

new Object[] { "OO ", "OO  ", "  ", Character.valueOf('O'), Items.diamond });

 

GameRegistry.addRecipe(new ItemStack(Items.diamond, 4),

new Object[] { "OO ", "OO  ", "  ", Character.valueOf('O'), itemDiamondIngot });

 

GameRegistry.addRecipe(new ItemStack(DiamondBrick),

new Object[] { "DDD", "DDD", "DDD", Character.valueOf('D'), itemDiamondIngot });

 

// Copper

 

GameRegistry.addRecipe(new ItemStack(itemCopperPickaxe),

new Object[] { "CCC", " S ", " S ", Character.valueOf('C'), itemCopperIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemCopperAxe),

new Object[] { "CC ", "CS ", " S ", Character.valueOf('C'), itemCopperIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemCopperSword),

new Object[] { " C ", " C ", " S ", Character.valueOf('C'), itemCopperIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemCopperSpade),

new Object[] { " C ", " S ", " S ", Character.valueOf('C'), itemCopperIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemCopperHoe),

new Object[] { "CC ", " S ", " S ", Character.valueOf('C'), itemCopperIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(CopperBrick),

new Object[] { "CCC", "CCC", "CCC", Character.valueOf('C'), itemCopperIngot });

 

GameRegistry.addSmelting(CopperOre, new ItemStack(itemCopperIngot, 1), 2);

 

// Silver

 

GameRegistry.addRecipe(new ItemStack(itemSilverPickaxe),

new Object[] { "III", " S ", " S ", Character.valueOf('I'), itemSilverIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemSilverAxe),

new Object[] { "II ", "IS ", " S ", Character.valueOf('I'), itemSilverIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemSilverSword),

new Object[] { " I ", " I ", " S ", Character.valueOf('I'), itemSilverIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemSilverSpade),

new Object[] { " I ", " S ", " S ", Character.valueOf('I'), itemSilverIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemSilverHoe),

new Object[] { "II ", " S ", " S ", Character.valueOf('I'), itemSilverIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(SilverBrick),

new Object[] { "III", "III", "III", Character.valueOf('I'), itemSilverIngot });

 

GameRegistry.addSmelting(SilverOre, new ItemStack(itemSilverIngot, 1), 2);

 

// Tin

 

GameRegistry.addRecipe(new ItemStack(itemTinPickaxe),

new Object[] { "TTT", " S ", " S ", Character.valueOf('T'), itemTinIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemTinAxe),

new Object[] { "TT ", "TS ", " S ", Character.valueOf('T'), itemTinIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemTinSword),

new Object[] { " T ", " T ", " S ", Character.valueOf('T'), itemTinIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemTinSpade),

new Object[] { " T ", " S ", " S ", Character.valueOf('T'), itemTinIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(itemTinHoe),

new Object[] { "TT ", " S ", " S ", Character.valueOf('T'), itemTinIngot, 'S', Items.stick });

 

GameRegistry.addRecipe(new ItemStack(TinBrick),

new Object[] { "TTT", "TTT", "TTT", Character.valueOf('T'), itemTinIngot });

 

GameRegistry.addSmelting(TinOre, new ItemStack(itemTinIngot, 1), 2);

 

// Hammer Recipes (by hammer type)

 

// Ruby

 

GameRegistry.addRecipe(new ItemStack(itemRubyDust, 2),

new Object[] { " H ", " R ", "  ", Character.valueOf('H'), itemRubyHammer, 'R', RubyOre });

 

GameRegistry.addRecipe(new ItemStack(itemCopperDust, 2),

new Object[] { " H ", " R ", "  ", Character.valueOf('H'), itemRubyHammer, 'R', CopperOre });

 

GameRegistry.addRecipe(new ItemStack(itemSilverDust, 2),

new Object[] { " H ", " R ", "  ", Character.valueOf('H'), itemRubyHammer, 'R', SilverOre });

 

GameRegistry.addRecipe(new ItemStack(itemTinDust, 2),

new Object[] { " H ", " R ", "  ", Character.valueOf('H'), itemRubyHammer, 'R', TinOre });

 

}

 

@EventHandler

public void postInit(FMLPostInitializationEvent event) {

 

}

 

public static CreativeTabs moreores = new CreativeTabs("MoreOres!") {

@Override

public Item getTabIconItem() {

return new ItemStack(itemDiamondIngot).getItem();

 

}

 

};

 

}

 

 

MY NAME IS JEFF. Or is it? I do hope you never always not have a bad day!

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.