The Meaning of Life, the Universe, and Everything.
Join Date:
1/18/2011
Posts:
810
Minecraft:
mightydanp
Member Details
I have made my own mod but decided to just change the name after i did change the name and reworked my mod when i go into a creative world non of my blocks or items are there when i click on the tab that sepost to take me to my creative tab it gives me an error can anyone help ill be very happy if u can figure out what is wrong
Crash Report
2013-02-01 20:38:12 [INFO] [ForgeModLoader] Forge Mod Loader version 4.7.4.520 for Minecraft 1.4.7 loading
2013-02-01 20:38:14 [INFO] [STDOUT] 27 achievements
2013-02-01 20:38:14 [INFO] [STDOUT] 210 recipes
2013-02-01 20:38:14 [INFO] [STDOUT] Setting user: Player575, -
2013-02-01 20:38:14 [INFO] [STDERR] Client asked for parameter: server
2013-02-01 20:38:14 [INFO] [STDOUT] LWJGL Version: 2.4.2
2013-02-01 20:38:15 [INFO] [ForgeModLoader] Attempting early MinecraftForge initialization
2013-02-01 20:38:15 [INFO] [STDOUT] MinecraftForge v6.6.0.497 Initialized
2013-02-01 20:38:15 [INFO] [ForgeModLoader] MinecraftForge v6.6.0.497 Initialized
2013-02-01 20:38:15 [INFO] [STDOUT] Replaced 84 ore recipies
2013-02-01 20:38:15 [INFO] [ForgeModLoader] Completed early MinecraftForge initialization
2013-02-01 20:38:15 [INFO] [ForgeModLoader] Searching C:\Users\Chris\Desktop\Minecraft\mcp Forge (Rpg Expansion 1.4.7) - Copy\jars\mods for mods
2013-02-01 20:38:16 [INFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-02-01 20:38:16 [INFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-02-01 20:38:17 [INFO] [STDOUT] Starting up SoundSystem...
2013-02-01 20:38:17 [INFO] [STDOUT] Initializing LWJGL OpenAL
2013-02-01 20:38:17 [INFO] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
2013-02-01 20:38:17 [INFO] [STDOUT] OpenAL initialized.
2013-02-01 20:38:18 [INFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
2013-02-01 20:38:22 [INFO] [ForgeModLoader] Loading dimension 0 (Copy of New) (net.minecraft.server.integrated.IntegratedServer@a5d2e19)
2013-02-01 20:38:22 [INFO] [ForgeModLoader] Loading dimension 1 (Copy of New) (net.minecraft.server.integrated.IntegratedServer@a5d2e19)
2013-02-01 20:38:22 [INFO] [ForgeModLoader] Loading dimension -1 (Copy of New) (net.minecraft.server.integrated.IntegratedServer@a5d2e19)
2013-02-01 20:38:29 [INFO] [ForgeModLoader] Unloading dimension 0
2013-02-01 20:38:29 [INFO] [ForgeModLoader] Unloading dimension -1
2013-02-01 20:38:29 [INFO] [ForgeModLoader] Unloading dimension 1
2013-02-01 20:38:30 [INFO] [STDERR] net.minecraft.util.ReportedException: Rendering screen
2013-02-01 20:38:30 [INFO] [STDERR] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1013)
2013-02-01 20:38:30 [INFO] [STDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:882)
2013-02-01 20:38:30 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:771)
2013-02-01 20:38:30 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
2013-02-01 20:38:30 [INFO] [STDERR] Caused by: java.lang.NullPointerException
2013-02-01 20:38:30 [INFO] [STDERR] at RpgExpansion.modCreativeTab.getTabIconItemIndex(modCreativeTab.java:16)
2013-02-01 20:38:30 [INFO] [STDERR] at net.minecraft.creativetab.CreativeTabs.getTabIconItem(CreativeTabs.java:90)
2013-02-01 20:38:30 [INFO] [STDERR] at net.minecraft.creativetab.CreativeTabs.getIconItemStack(CreativeTabs.java:209)
2013-02-01 20:38:30 [INFO] [STDERR] at net.minecraft.client.gui.inventory.GuiContainerCreative.renderCreativeTab(GuiContainerCreative.java:833)
2013-02-01 20:38:30 [INFO] [STDERR] at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:660)
2013-02-01 20:38:30 [INFO] [STDERR] at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:88)
2013-02-01 20:38:30 [INFO] [STDERR] at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:43)
2013-02-01 20:38:30 [INFO] [STDERR] at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:591)
2013-02-01 20:38:30 [INFO] [STDERR] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1004)
2013-02-01 20:38:30 [INFO] [STDERR] ... 3 more
2013-02-01 20:38:40 [INFO] [STDOUT] Stopping!
2013-02-01 20:38:40 [INFO] [STDOUT] SoundSystem shutting down...
2013-02-01 20:38:40 [INFO] [STDOUT] Author: Paul Lamb, www.paulscode.com
CoreModRpgExpansion
package RpgExpansion;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraftforge.client.MinecraftForgeClient;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
@Mod(modid = "RpgExpansion", name = "Rpg Expansion", version = "V0.5, PreRelease 3")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class CoreModRpgExpansion
{
public static CreativeTabs RpgTabs = new modCreativeTab(CreativeTabs.getNextID(),"Rpg Expansion");
public void load(FMLInitializationEvent event)
{
MinecraftForgeClient.preloadTexture("/RpgExpansion/BlockTerrain.png");
MinecraftForgeClient.preloadTexture("/RpgExpansion/ItemTerrain.png");
GameRegistry.registerWorldGenerator(new modWorldGenerator());
}
}
CoreModBlocks
package RpgExpansion;
import java.util.logging.Level;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.src.ModLoader;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.EnumHelper;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.FMLLog;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.event.FMLInitializationEvent;
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;
public class CoreModBlocks
{
//Ores
public static Block OreCopper;
public static Block OreTin;
public static Block OreRuby;
public static Block OreSapphire;
public static Block OreOnyx;
public static int OreCopperID;
public static int OreTinID;
public static int OreRubyID;
public static int OreSapphireID;
public static int OreOnyxID;
//Ore Blocks
public static Block BlockCopper;
public static Block BlockTin;
public static Block BlockRuby;
public static Block BlockSapphire;
public static Block BlockOnyx;
public static Block BlockBronze;
public static Block BlockObsidian;
public static int BlockCopperID;
public static int BlockTinID;
public static int BlockRubyID;
public static int BlockSapphireID;
public static int BlockOnyxID;
public static int BlockBronzeID;
public static int BlockObsidianID;
//Flower
public static Block Lily;
public static int LilyID;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@PreInit
public void Load(FMLInitializationEvent event)
{
//Blocks
//Ores
OreCopper = (new modBlock(OreCopperID, 0, Material.rock).setHardness(1.0F).setResistance(1.0F).setStepSound(Block.soundStoneFootstep).setBlockName("Copper Ore"));
OreTin = (new modBlock(OreTinID, 1, Material.rock).setHardness(1.0F).setResistance(1.0F).setStepSound(Block.soundStoneFootstep).setBlockName("Tin Ore"));
OreRuby = (new modBlock(OreRubyID, 2,Material.rock).setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep).setBlockName("Ruby Ore"));
OreSapphire = (new modBlock(OreSapphireID, 3, Material.rock).setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep).setBlockName("Sapphire Ore"));
OreOnyx = (new modBlock(OreOnyxID, 4, Material.rock).setHardness(20F).setResistance(4.0F).setStepSound(Block.soundStoneFootstep).setBlockName("Onyx Ore"));
//Ore Blocks
BlockCopper = (new modBlock(BlockCopperID, 5, Material.iron).setHardness(1.5F).setResistance(10.0F).setStepSound(Block.soundMetalFootstep).setBlockName("Block of Copper"));
BlockTin = (new modBlock(BlockTinID, 6, Material.iron).setHardness(1.5F).setResistance(10.0F).setStepSound(Block.soundMetalFootstep).setBlockName("Block of Tin"));
BlockRuby = (new modBlock(BlockRubyID, 7, Material.iron).setHardness(5.0F).setResistance(10.0F).setStepSound(Block.soundMetalFootstep).setBlockName("Block of Ruby"));
BlockSapphire = (new modBlock(BlockSapphireID, 8, Material.iron).setHardness(5.0F).setResistance(10.0F).setStepSound(Block.soundMetalFootstep).setBlockName("Block of Sapphire"));
BlockOnyx = (new modBlock(BlockOnyxID, 9, Material.iron).setHardness(7.5F).setResistance(10.0F).setStepSound(Block.soundMetalFootstep).setBlockName("Block of Onyx"));
BlockBronze = (new modBlock(BlockBronzeID, 10, Material.iron).setHardness(5.0F).setResistance(10.0F).setStepSound(Block.soundMetalFootstep).setBlockName("Block of Bronze"));
BlockObsidian = (new modBlock(BlockObsidianID , 11, Material.iron).setHardness(50.0F).setResistance(50.0F).setStepSound(Block.soundMetalFootstep).setBlockName("Block of Obsidian"));
blockNames();
registeringBlocks();
}
@PreInit
public void initConfig(FMLPreInitializationEvent evt)
{
Configuration cfg = new Configuration(evt.getSuggestedConfigurationFile());
try
{
//Ores
OreCopperID = cfg.getBlock("Copper Ore", 1001).getInt();
OreTinID = cfg.getBlock("Tin Ore", 1002).getInt();
OreRubyID = cfg.getBlock("Ruby Ore", 1003).getInt();
OreSapphireID = cfg.getBlock("Sapphire Ore", 1004).getInt();
OreOnyxID = cfg.getBlock("Onxy Ore", 1005).getInt();
//Ore Blocks
BlockCopperID = cfg.getBlock("Block of Copper", 1006).getInt();
BlockTinID = cfg.getBlock("Block of Tin", 1007).getInt();
BlockRubyID = cfg.getBlock("Block of Ruby", 1008).getInt();
BlockSapphireID = cfg.getBlock("Block of Sapphire", 1009).getInt();
BlockOnyxID = cfg.getBlock("Block of Onyx", 1010).getInt();
BlockBronzeID = cfg.getBlock("Block of Bronze", 1011).getInt();
BlockObsidianID = cfg.getBlock("Block of Obsidian", 1012).getInt();
}
catch (Exception e)
{
FMLLog.log(Level.SEVERE, e, "Rpg Expansion has a problems trying to load the config file!! Cheak your Config");
}
finally
{
cfg.save();
}
}
public void registeringBlocks()
{
//Ores
GameRegistry.registerBlock(OreCopper, "Copper Ore");
GameRegistry.registerBlock(OreTin, "Tin Ore");
GameRegistry.registerBlock(OreRuby, "Ruby Ore");
GameRegistry.registerBlock(OreSapphire, "Sapphire Ore");
GameRegistry.registerBlock(OreOnyx, "Onyx Ore");
//Ore Blocks
GameRegistry.registerBlock(BlockCopper, "Block of Copper");
GameRegistry.registerBlock(BlockTin, "Block of Tin");
GameRegistry.registerBlock(BlockRuby, "Block of Ruby");
GameRegistry.registerBlock(BlockSapphire, "Block of Sapphire");
GameRegistry.registerBlock(BlockOnyx, "Block of Onyx");
GameRegistry.registerBlock(BlockBronze, "Block of Bronze");
GameRegistry.registerBlock(BlockObsidian, "Block of Obsidian");
//Flowers
}
public void blockNames()
{
//Ores
LanguageRegistry.addName(OreCopper, "Copper Ore");
LanguageRegistry.addName(OreTin, "Tin Ore");
LanguageRegistry.addName(OreRuby, "Ruby Ore");
LanguageRegistry.addName(OreSapphire, "Sapphire Ore");
LanguageRegistry.addName(OreOnyx, "Onyx Ore");
//Ore Blocks
LanguageRegistry.addName(BlockCopper, "Block of Copper");
LanguageRegistry.addName(BlockTin, "Block of Tin");
LanguageRegistry.addName(BlockRuby, "Block of Ruby");
LanguageRegistry.addName(BlockSapphire, "Block of Sapphire");
LanguageRegistry.addName(BlockOnyx, "Block of Onyx");
LanguageRegistry.addName(BlockBronze, "Block of Bronze");
LanguageRegistry.addName(BlockObsidian, "Block of Obsidian");
LanguageRegistry.addName(Lily, "Lily");
}
}
CoreModItems
package RpgExpansion;
import java.util.logging.Level;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemAxe;
import net.minecraft.item.ItemHoe;
import net.minecraft.item.ItemPickaxe;
import net.minecraft.item.ItemSpade;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
import net.minecraft.src.ModLoader;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.EnumHelper;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.FMLLog;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.event.FMLInitializationEvent;
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;
public class CoreModItems
{
//Items
//OreDrops
public static Item Ruby;
public static Item Sapphire;
public static Item Onyx;
public static int RubyID;
public static int SapphireID;
public static int OnyxID;
//Ore Combination
public static Item BronzeChunk;
public static int BronzeChunkID;
public static Item ObsidianChunk;
public static int ObsidianChunkID;
//Ingot
public static Item IngotCopper;
public static Item IngotTin;
public static Item IngotBronze;
public static Item IngotObsidian;
public static int IngotCopperID;
public static int IngotTinID;
public static int IngotBronzeID;
public static int IngotObsidianID;
//Armor
public static EnumArmorMaterial BRONZE = EnumHelper.addArmorMaterial("BRONZE", 10, new int[] {1, 3, 2, 1}, 9);
public static EnumArmorMaterial OBSIDIAN = EnumHelper.addArmorMaterial("OBSIDIAN", 37, new int[] {3, 8, 6, 3}, 11);
public static EnumArmorMaterial RUBY = EnumHelper.addArmorMaterial("RUBY", 50, new int[] {3, 8, 6, 3}, 15);
public static EnumArmorMaterial SAPPHIRE = EnumHelper.addArmorMaterial("SAPPHIRE", 50, new int[] {3, 8, 6, 3}, 15);
public static EnumArmorMaterial EMERALD = EnumHelper.addArmorMaterial("EMERALD", 50, new int[] {3, 8, 6, 3}, 15);
public static EnumArmorMaterial ONYX = EnumHelper.addArmorMaterial("ONYX", 75, new int[] {5, 10, 8, 5}, 30);
//Bronze
public static Item HelmetBronze;
public static Item PlateBronze;
public static Item LegsBronze;
public static Item BootsBronze;
public static int HelmetBronzeID;
public static int PlateBronzeID;
public static int LegsBronzeID;
public static int BootsBronzeID;
//Obsidian
public static Item HelmetObsidian;
public static Item PlateObsidian;
public static Item LegsObsidian;
public static Item BootsObsidian;
public static int HelmetObsidianID;
public static int PlateObsidianID;
public static int LegsObsidianID;
public static int BootsObsidianID;
//Ruby
public static Item HelmetRuby;
public static Item PlateRuby;
public static Item LegsRuby;
public static Item BootsRuby;
public static int HelmetRubyID;
public static int PlateRubyID;
public static int LegsRubyID;
public static int BootsRubyID;
//Sapphire
public static Item HelmetSapphire;
public static Item PlateSapphire;
public static Item LegsSapphire;
public static Item BootsSapphire;
public static int HelmetSapphireID;
public static int PlateSapphireID;
public static int LegsSapphireID;
public static int BootsSapphireID;
//Emerald
public static Item HelmetEmerald;
public static Item PlateEmerald;
public static Item LegsEmerald;
public static Item BootsEmerald;
public static int HelmetEmeraldID;
public static int PlateEmeraldID;
public static int LegsEmeraldID;
public static int BootsEmeraldID;
//Onyx
public static Item HelmetOnyx;
public static Item PlateOnyx;
public static Item LegsOnyx;
public static Item BootsOnyx;
public static int HelmetOnyxID;
public static int PlateOnyxID;
public static int LegsOnyxID;
public static int BootsOnyxID;
//Tools
public static EnumToolMaterial BRONZE1 = EnumHelper.addToolMaterial("BRONZE", 2, 190, 5F, 1, 15);
public static EnumToolMaterial OBSIDIAN1 = EnumHelper.addToolMaterial("OBSIDIAN", 3, 1750, 10F, 4, 10);
public static EnumToolMaterial RUBY1 = EnumHelper.addToolMaterial("RUBY", 3, 2000, 12F, 6, 10);
public static EnumToolMaterial SAPPHIRE1 = EnumHelper.addToolMaterial("SAPPHIRE", 3, 2000, 12F, 6, 10);
public static EnumToolMaterial EMERALD1 = EnumHelper.addToolMaterial("EMERALD", 3, 2000, 12F, 6, 10);
public static EnumToolMaterial ONYX1 = EnumHelper.addToolMaterial("ONYX", 3, 2500, 15F, 8, 10);
//Bronze
public static Item SwordBronze;
public static Item ShovelBronze;
public static Item PickaxeBronze;
public static Item AxeBronze;
public static Item HoeBronze;
public static int SwordBronzeID;
public static int ShovelBronzeID;
public static int PickaxeBronzeID;
public static int AxeBronzeID;
public static int HoeBronzeID;
//Obsidian
public static Item SwordObsidian;
public static Item ShovelObsidian;
public static Item PickaxeObsidian;
public static Item AxeObsidian;
public static Item HoeObsidian;
public static int SwordObsidianID;
public static int ShovelObsidianID;
public static int PickaxeObsidianID;
public static int AxeObsidianID;
public static int HoeObsidianID;
//Ruby
public static Item SwordRuby;
public static Item ShovelRuby;
public static Item PickaxeRuby;
public static Item AxeRuby;
public static Item HoeRuby;
public static int SwordRubyID;
public static int ShovelRubyID;
public static int PickaxeRubyID;
public static int AxeRubyID;
public static int HoeRubyID;
//Sapphire
public static Item SwordSapphire;
public static Item ShovelSapphire;
public static Item PickaxeSapphire;
public static Item AxeSapphire;
public static Item HoeSapphire;
public static int SwordSapphireID;
public static int ShovelSapphireID;
public static int PickaxeSapphireID;
public static int AxeSapphireID;
public static int HoeSapphireID;
//Emerald
public static Item SwordEmerald;
public static Item ShovelEmerald;
public static Item PickaxeEmerald;
public static Item AxeEmerald;
public static Item HoeEmerald;
public static int SwordEmeraldID;
public static int ShovelEmeraldID;
public static int PickaxeEmeraldID;
public static int AxeEmeraldID;
public static int HoeEmeraldID;
//Onyx
public static Item SwordOnyx;
public static Item ShovelOnyx;
public static Item PickaxeOnyx;
public static Item AxeOnyx;
public static Item HoeOnyx;
public static int SwordOnyxID;
public static int ShovelOnyxID;
public static int PickaxeOnyxID;
public static int AxeOnyxID;
public static int HoeOnyxID;
//Weapons
//CrossBow
public static Item CrossbowWooden;
public static int CrossbowWoodenID;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@PreInit
public void Load(FMLInitializationEvent event)
{
//Ore Drops
Ruby = (new modItem(RubyID).setIconCoord(0,0).setItemName("Ruby"));
Sapphire = (new modItem(SapphireID).setIconCoord(1,0).setItemName("Sapphire"));
Onyx = (new modItem(OnyxID).setIconCoord(2,0).setItemName("Onyx"));
//Ore Combinations
BronzeChunk = (new modItem(BronzeChunkID).setIconCoord(3,0).setItemName("Chunk of Bronze"));
ObsidianChunk = (new modItem(ObsidianChunkID).setIconCoord(4, 0).setItemName("Chunk of Obsidian"));
//Ingot
IngotCopper = (new modItem(IngotCopperID).setIconCoord(5,0).setItemName("Copper Ingot"));
IngotTin = (new modItem(IngotTinID).setIconCoord(6,0).setItemName("Tin Ingot"));
IngotBronze = (new modItem(IngotBronzeID).setIconCoord(7,0).setItemName("Bronze Ingot"));
IngotObsidian = (new modItem(IngotObsidianID).setIconCoord(8, 0).setItemName("Obsidian Ingot"));
//Armour
//Bronze
HelmetBronze = (new modArmor(HelmetBronzeID, BRONZE, ModLoader.addArmor("Bronze"),0).setIconCoord(9,0).setItemName("Bronze Helmat"));
PlateBronze = (new modArmor(PlateBronzeID, BRONZE, ModLoader.addArmor("Bronze"),1).setIconCoord(10, 0).setItemName("Bronze ChestPlate"));
LegsBronze = (new modArmor(LegsBronzeID, BRONZE, ModLoader.addArmor("Bronze"),2).setIconCoord(11, 0).setItemName("Bronze Leggings"));
BootsBronze = (new modArmor(BootsBronzeID, BRONZE, ModLoader.addArmor("Bronze"),3).setIconCoord(12, 0).setItemName("Bronze Boots"));
//Obsidian
HelmetObsidian = (new modArmor(HelmetObsidianID, OBSIDIAN, ModLoader.addArmor("Obsidian"),0).setIconCoord(13,0).setItemName("Obsidian Helmat"));
PlateObsidian = (new modArmor(PlateObsidianID, OBSIDIAN, ModLoader.addArmor("Obsidian"),1).setIconCoord(14, 0).setItemName("Obsidian ChestPlate"));
LegsObsidian = (new modArmor(LegsObsidianID, OBSIDIAN, ModLoader.addArmor("Obsidian"),2).setIconCoord(15, 0).setItemName("Obsidian Leggings"));
BootsObsidian = (new modArmor(BootsObsidianID, OBSIDIAN, ModLoader.addArmor("Obsidian"),3).setIconCoord(0, 1).setItemName("Obsidian Boots"));
//Ruby
HelmetRuby = (new modArmor(HelmetRubyID, RUBY, ModLoader.addArmor("Ruby"),0).setIconCoord(1,1).setItemName("Ruby Helmat"));
PlateRuby = (new modArmor(PlateRubyID, RUBY, ModLoader.addArmor("Ruby"),1).setIconCoord(2, 1).setItemName("Ruby ChestPlate"));
LegsRuby = (new modArmor(LegsRubyID, RUBY, ModLoader.addArmor("Ruby"),2).setIconCoord(3, 1).setItemName("Ruby Leggings"));
BootsRuby = (new modArmor(BootsRubyID, RUBY, ModLoader.addArmor("Ruby"),3).setIconCoord(4, 1).setItemName("Ruby Boots"));
//Sapphire
HelmetSapphire = (new modArmor(HelmetSapphireID, SAPPHIRE, ModLoader.addArmor("Sapphire"),0).setIconCoord(5,1).setItemName("Sapphire Helmat"));
PlateSapphire = (new modArmor(PlateSapphireID, SAPPHIRE, ModLoader.addArmor("Sapphire"),1).setIconCoord(6, 1).setItemName("Sapphire ChestPlate"));
LegsSapphire = (new modArmor(LegsSapphireID, SAPPHIRE, ModLoader.addArmor("Sapphire"),2).setIconCoord(7, 1).setItemName("Sapphire Leggings"));
BootsSapphire = (new modArmor(BootsSapphireID, SAPPHIRE, ModLoader.addArmor("Sapphire"),3).setIconCoord(8, 1).setItemName("Sapphire Boots"));
//Emerald
HelmetEmerald = (new modArmor(HelmetEmeraldID, EMERALD, ModLoader.addArmor("Emerald"),0).setIconCoord(9,1).setItemName("Emerald Helmat"));
PlateEmerald = (new modArmor(PlateEmeraldID, EMERALD, ModLoader.addArmor("Emerald"),1).setIconCoord(10, 1).setItemName("Emerald ChestPlate"));
LegsEmerald = (new modArmor(LegsEmeraldID, EMERALD, ModLoader.addArmor("Emerald"),2).setIconCoord(11, 1).setItemName("Emerald Leggings"));
BootsEmerald = (new modArmor(BootsEmeraldID, EMERALD, ModLoader.addArmor("Emerald"),3).setIconCoord(12, 1).setItemName("Emerald Boots"));
//Onyx
HelmetOnyx = (new modArmor(HelmetOnyxID, ONYX, ModLoader.addArmor("Onyx"),0).setIconCoord(13,1).setItemName("Onyx Helmat"));
PlateOnyx = (new modArmor(PlateOnyxID, ONYX, ModLoader.addArmor("Onyx"),1).setIconCoord(14, 1).setItemName("Onyx ChestPlate"));
LegsOnyx = (new modArmor(LegsOnyxID, ONYX, ModLoader.addArmor("Onyx"),2).setIconCoord(15, 1).setItemName("Onyx Leggings"));
BootsOnyx = (new modArmor(BootsOnyxID, ONYX, ModLoader.addArmor("Onyx"),3).setIconCoord(0, 2).setItemName("Onyx Boots"));
//Tools
//Bronze
SwordBronze = (new modSword(SwordBronzeID, BRONZE1).setIconCoord(1, 2).setItemName("Bronze Sword"));
ShovelBronze = (new modSpade(ShovelBronzeID, BRONZE1).setIconCoord(2, 2).setItemName("Bronze Shovel"));
PickaxeBronze = (new modPickaxe(PickaxeBronzeID, BRONZE1).setIconCoord(3, 2).setItemName("Bronze Pickaxe"));
AxeBronze = (new modAxe(AxeBronzeID, BRONZE1).setIconCoord(4, 2).setItemName("Bronze Axe"));
HoeBronze = (new modHoe(HoeBronzeID, BRONZE1).setIconCoord(5, 2).setItemName("Bronze Hoe"));
//Obsidian
SwordObsidian = (new modSword(SwordObsidianID, OBSIDIAN1).setIconCoord(6, 2).setItemName("Obsidian Sword"));
ShovelObsidian = (new modSpade(ShovelObsidianID, OBSIDIAN1).setIconCoord(7, 2).setItemName("Obsidian Shovel"));
PickaxeObsidian = (new modPickaxe(PickaxeObsidianID, OBSIDIAN1).setIconCoord(8, 2).setItemName("Obsidian Pickaxe"));
AxeObsidian = (new modAxe(AxeObsidianID, OBSIDIAN1).setIconCoord(9, 2).setItemName("Obsidian Axe"));
HoeObsidian = (new modHoe(HoeObsidianID, OBSIDIAN1).setIconCoord(10, 2).setItemName("Obsidian Hoe"));
//Ruby
SwordRuby = (new modSword(SwordRubyID, RUBY1).setIconCoord(11, 2).setItemName("Ruby Sword"));
ShovelRuby = (new modSpade(ShovelRubyID, RUBY1).setIconCoord(12, 2).setItemName("Ruby Shovel"));
PickaxeRuby = (new modPickaxe(PickaxeRubyID, RUBY1).setIconCoord(13, 2).setItemName("Ruby Pickaxe"));
AxeRuby = (new modAxe(AxeRubyID, RUBY1).setIconCoord(14, 2).setItemName("Ruby Axe"));
HoeRuby = (new modHoe(HoeRubyID, RUBY1).setIconCoord(15, 2).setItemName("Ruby Hoe"));
//Sapphire
SwordSapphire = (new modSword(SwordSapphireID, SAPPHIRE1).setIconCoord(0, 3).setItemName("Sapphire Sword"));
ShovelSapphire = (new modSpade(ShovelSapphireID, SAPPHIRE1).setIconCoord(1, 3).setItemName("Sapphire Shovel"));
PickaxeSapphire = (new modPickaxe(PickaxeSapphireID, SAPPHIRE1).setIconCoord(2, 3).setItemName("Sapphire Pickaxe"));
AxeSapphire = (new modAxe(AxeSapphireID, SAPPHIRE1).setIconCoord(3, 3).setItemName("Sapphire Axe"));
HoeSapphire = (new modHoe(HoeSapphireID, SAPPHIRE1).setIconCoord(4, 3).setItemName("Sapphire Hoe"));
//Emerald
SwordEmerald = (new modSword(SwordEmeraldID, EMERALD1).setIconCoord(5, 3).setItemName("Emerald Sword"));
ShovelEmerald = (new modSpade(ShovelEmeraldID, EMERALD1).setIconCoord(6, 3).setItemName("Emerald Shovel"));
PickaxeEmerald = (new modPickaxe(PickaxeEmeraldID, EMERALD1).setIconCoord(7, 3).setItemName("Emerald Pickaxe"));
AxeEmerald = (new modAxe(AxeEmeraldID, EMERALD1).setIconCoord(8, 3).setItemName("Emerald Axe"));
HoeEmerald = (new modHoe(HoeEmeraldID, EMERALD1).setIconCoord(9, 3).setItemName("Emerald Hoe"));
//Onyx
SwordOnyx = (new modSword(SwordOnyxID, ONYX1).setIconCoord(10, 3).setItemName("Onyx Sword"));
ShovelOnyx = (new modSpade(ShovelOnyxID, ONYX1).setIconCoord(11, 3).setItemName("Onyx Shovel"));
PickaxeOnyx= (new modPickaxe(PickaxeOnyxID, ONYX1).setIconCoord(12, 3).setItemName("Onyx Pickaxe"));
AxeOnyx = (new modAxe(AxeOnyxID, ONYX1).setIconCoord(13, 3).setItemName("Onyx Axe"));
HoeOnyx = (new modHoe(HoeOnyxID, ONYX1).setIconCoord(14, 3).setItemName("Onyx Hoe"));
//Weapons
//CrossBow
CrossbowWooden = (new modCrossbowWooden(CrossbowWoodenID).setIconCoord(15, 3).setItemName("Wooden Crossbow"));
itemNames();
}
@PreInit
public void initConfig(FMLPreInitializationEvent evt)
{
Configuration cfg = new Configuration(evt.getSuggestedConfigurationFile());
try
{
//Ore Drops
RubyID = cfg.getItem("Ruby", 2000).getInt();
SapphireID = cfg.getItem("sapphire", 2001).getInt();
OnyxID = cfg.getItem("Onyx", 2002).getInt();
//Ore Combination
BronzeChunkID = cfg.getItem("Chunk of Bronze", 2003).getInt();
ObsidianChunkID = cfg.getItem("Chunk of Obsidian", 2004).getInt();
//Ingot
IngotCopperID = cfg.getItem("Copper Ingot", 2005).getInt();
IngotTinID = cfg.getItem("Tin Ingot", 2006).getInt();
IngotBronzeID = cfg.getItem("Bronze Ingot", 2007).getInt();
IngotObsidianID = cfg.getItem("Obsidian Ignot", 2008).getInt();
//Armor
//Bronze
HelmetBronzeID = cfg.getItem("Bronze Helmate", 2009).getInt();
PlateBronzeID = cfg.getItem("Bronze Chest Plate", 2010).getInt();
LegsBronzeID = cfg.getItem("Bronze Leggings", 2011).getInt();
BootsBronzeID = cfg.getItem("Bronze Boots", 2012).getInt();
//Obsidian
HelmetObsidianID = cfg.getItem("Obsidian Helmate", 2013).getInt();
PlateObsidianID = cfg.getItem("Obsidian Chest Plate", 2014).getInt();
LegsObsidianID = cfg.getItem("Obsidian Leggings", 2015).getInt();
BootsObsidianID = cfg.getItem("Obsidian Boots", 2016).getInt();
//Ruby
HelmetRubyID = cfg.getItem("Ruby Helmate", 2017).getInt();
PlateRubyID = cfg.getItem("Ruby Chest Plate", 2018).getInt();
LegsRubyID = cfg.getItem("Ruby Leggings", 2019).getInt();
BootsRubyID = cfg.getItem("Ruby Boots", 2020).getInt();
//Sapphire
HelmetSapphireID = cfg.getItem("Sapphire Helmate", 2021).getInt();
PlateSapphireID = cfg.getItem("Sapphire Chest Plate", 2022).getInt();
LegsSapphireID = cfg.getItem("Sapphire Leggings", 2023).getInt();
BootsSapphireID = cfg.getItem("Sapphire Boots", 2024).getInt();
//Emerald
HelmetEmeraldID = cfg.getItem("Emerald Helmate", 2025).getInt();
PlateEmeraldID = cfg.getItem("Emerald Chest Plate", 2026).getInt();
LegsEmeraldID = cfg.getItem("Emerald Leggings", 2027).getInt();
BootsEmeraldID = cfg.getItem("Emerald Boots", 2028).getInt();
//Onyx
HelmetOnyxID = cfg.getItem("Onyx Helmate", 2029).getInt();
PlateOnyxID = cfg.getItem("Onyx Chest Plate", 2030).getInt();
LegsOnyxID = cfg.getItem("Onyx Leggings", 2031).getInt();
BootsOnyxID = cfg.getItem("Onyx Boots", 2032).getInt();
//Tools
//Bronze
SwordBronzeID = cfg.getItem("Bronze Sword", 2022).getInt();
ShovelBronzeID = cfg.getItem("Bronze Shovel", 2034).getInt();
PickaxeBronzeID = cfg.getItem("Bronze PickAxe", 2035).getInt();
AxeBronzeID = cfg.getItem("Bronze Axe", 2036).getInt();
HoeBronzeID = cfg.getItem("Bronze Hoe", 2037).getInt();
//Obsidian
SwordObsidianID = cfg.getItem("Obsidian Sword", 2038).getInt();
ShovelObsidianID = cfg.getItem("Obsidian Shovel", 2039).getInt();
PickaxeObsidianID = cfg.getItem("Obsidian PickAxe", 2040).getInt();
AxeObsidianID = cfg.getItem("Obsidian Axe", 2041).getInt();
HoeObsidianID = cfg.getItem("Obsidian Hoe", 2042).getInt();
//Ruby
SwordRubyID = cfg.getItem("Ruby Sword", 2043).getInt();
ShovelRubyID = cfg.getItem("Ruby Shovel", 2044).getInt();
PickaxeRubyID = cfg.getItem("Ruby PickAxe", 2045).getInt();
AxeRubyID = cfg.getItem("Ruby Axe", 2046).getInt();
HoeRubyID = cfg.getItem("Ruby Hoe", 2047).getInt();
//Sapphire
SwordSapphireID = cfg.getItem("Sapphire Sword", 2048).getInt();
ShovelSapphireID = cfg.getItem("Sapphire Shovel", 2049).getInt();
PickaxeSapphireID = cfg.getItem("Sapphire PickAxe", 2050).getInt();
AxeSapphireID = cfg.getItem("Sapphire Axe", 2051).getInt();
HoeSapphireID = cfg.getItem("Sapphire Hoe", 2052).getInt();
//Emerald
SwordEmeraldID = cfg.getItem("Emerald Sword", 2053).getInt();
ShovelEmeraldID = cfg.getItem("Emerald Shovel", 2054).getInt();
PickaxeEmeraldID = cfg.getItem("Emerald PickAxe", 2055).getInt();
AxeEmeraldID = cfg.getItem("Emerald Axe", 2056).getInt();
HoeEmeraldID = cfg.getItem("Emerald Hoe", 2057).getInt();
//Onyx
SwordOnyxID = cfg.getItem("Onyx Sword", 2058).getInt();
ShovelOnyxID = cfg.getItem("Onyx Shovel", 2059).getInt();
PickaxeOnyxID = cfg.getItem("Onyx PickAxe", 2060).getInt();
AxeOnyxID = cfg.getItem("Onyx Axe", 2061).getInt();
HoeOnyxID = cfg.getItem("Onyx Hoe", 2062).getInt();
//Weapons
//CrossBow
CrossbowWoodenID = cfg.getItem("Wooden Crossbow", 2063).getInt();
}
catch (Exception e)
{
FMLLog.log(Level.SEVERE, e, "Rpg Expansion has a problems trying to load the config file!! Cheak your Config");
}
finally
{
cfg.save();
}
}
public void itemNames()
{
//Items
//Ore Drops
LanguageRegistry.addName(Ruby, "Ruby");
LanguageRegistry.addName(Sapphire, "Sapphire");
LanguageRegistry.addName(Onyx, "Onyx");
//Ore Combinations
LanguageRegistry.addName(BronzeChunk, "Chunk of Bronze");
LanguageRegistry.addName(ObsidianChunk, "Chunk of Obsidian");
//Ingot
LanguageRegistry.addName(IngotCopper, "Copper Ingot");
LanguageRegistry.addName(IngotTin, "Tin Ingot");
LanguageRegistry.addName(IngotBronze, "Bronze Ingot");
LanguageRegistry.addName(IngotObsidian, "Obsidian Ingot");
//Armor
//Bronze
LanguageRegistry.addName(HelmetBronze, "Bronze Helmet");
LanguageRegistry.addName(PlateBronze, "Bronze ChestPlate");
LanguageRegistry.addName(LegsBronze, "Bronze Leggings");
LanguageRegistry.addName(BootsBronze, "Bronze Boots");
//Obsidian
LanguageRegistry.addName(HelmetObsidian, "Obsidian Helmet");
LanguageRegistry.addName(PlateObsidian, "Obsidian ChestPlate");
LanguageRegistry.addName(LegsObsidian, "Obsidian Leggings");
LanguageRegistry.addName(BootsObsidian, "Obsidian Boots");
//Ruby
LanguageRegistry.addName(HelmetRuby, "Ruby Helmet");
LanguageRegistry.addName(PlateRuby, "Ruby ChestPlate");
LanguageRegistry.addName(LegsRuby, "Ruby Leggings");
LanguageRegistry.addName(BootsRuby, "Ruby Boots");
//Sapphire
LanguageRegistry.addName(HelmetSapphire, "Sapphire Helmet");
LanguageRegistry.addName(PlateSapphire, "Sapphire ChestPlate");
LanguageRegistry.addName(LegsSapphire, "Sapphire Leggings");
LanguageRegistry.addName(BootsSapphire, "Sapphire Boots");
//Emerald
LanguageRegistry.addName(HelmetEmerald, "Emerald Helmet");
LanguageRegistry.addName(PlateEmerald, "Emerald ChestPlate");
LanguageRegistry.addName(LegsEmerald, "Emerald Leggings");
LanguageRegistry.addName(BootsEmerald, "Emerald Boots");
//Onyx
LanguageRegistry.addName(HelmetOnyx, "Onyx Helmet");
LanguageRegistry.addName(PlateOnyx, "Onyx ChestPlate");
LanguageRegistry.addName(LegsOnyx, "Onyx Leggings");
LanguageRegistry.addName(BootsOnyx, "Onyx Boots");
//Tools
//Bronze
LanguageRegistry.addName(SwordBronze, "Bronze Sword");
LanguageRegistry.addName(ShovelBronze, "Bronze Shovel");
LanguageRegistry.addName(PickaxeBronze, "Bronze Pickaxe");
LanguageRegistry.addName(AxeBronze, "Bronze Axe");
LanguageRegistry.addName(HoeBronze, "Bronze Hoe");
//Obsidian
LanguageRegistry.addName(SwordObsidian, "Obsidian Sword");
LanguageRegistry.addName(ShovelObsidian, "Obsidian Shovel");
LanguageRegistry.addName(PickaxeObsidian, "Obsidian Pickaxe");
LanguageRegistry.addName(AxeObsidian, "Obsidian Axe");
LanguageRegistry.addName(HoeObsidian, "Obsidian Hoe");
//Ruby
LanguageRegistry.addName(SwordRuby, "Ruby Sword");
LanguageRegistry.addName(ShovelRuby, "Ruby Shovel");
LanguageRegistry.addName(PickaxeRuby, "Ruby Pickaxe");
LanguageRegistry.addName(AxeRuby, "Ruby Axe");
LanguageRegistry.addName(HoeRuby, "Ruby Hoe");
//Sapphire
LanguageRegistry.addName(SwordSapphire, "Sapphire Sword");
LanguageRegistry.addName(ShovelSapphire, "Sapphire Shovel");
LanguageRegistry.addName(PickaxeSapphire, "Sapphire Pickaxe");
LanguageRegistry.addName(AxeSapphire, "Sapphire Axe");
LanguageRegistry.addName(HoeSapphire, "Sapphire Hoe");
//Emerald
LanguageRegistry.addName(SwordEmerald, "Emerald Sword");
LanguageRegistry.addName(ShovelEmerald, "Emerald Shovel");
LanguageRegistry.addName(PickaxeEmerald, "Emerald Pickaxe");
LanguageRegistry.addName(AxeEmerald, "Emerald Axe");
LanguageRegistry.addName(HoeEmerald, "Emerald Hoe");
//Onyx
LanguageRegistry.addName(SwordOnyx, "Onyx Sword");
LanguageRegistry.addName(ShovelOnyx, "Onyx Shovel");
LanguageRegistry.addName(PickaxeOnyx, "Onyx Pickaxe");
LanguageRegistry.addName(AxeOnyx, "Onyx Axe");
LanguageRegistry.addName(HoeOnyx, "Onyx Hoe");
//Weapons
//Crossbow
LanguageRegistry.addName(CrossbowWooden, "Wooden Crossbow");
}
}
CoreModRecipies
package RpgExpansion;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
public class CoreModRecipies
{
public void load(FMLInitializationEvent event)
{
recipes();
smelting();
}
public void recipes()
{
//Blocks
//OreBlocks
GameRegistry.addRecipe(new ItemStack(CoreModBlocks.BlockCopper,1),
"XXX","XXX","XXX",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotCopper));
GameRegistry.addRecipe(new ItemStack(CoreModBlocks.BlockTin,1),
"XXX","XXX","XXX",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotTin));
GameRegistry.addRecipe(new ItemStack(CoreModBlocks.BlockRuby,1),
"XXX","XXX","XXX",
Character.valueOf('X'), new ItemStack(CoreModItems.Ruby));
GameRegistry.addRecipe(new ItemStack(CoreModBlocks.BlockSapphire,1),
"XXX","XXX","XXX",
Character.valueOf('X'), new ItemStack(CoreModItems.Sapphire));
GameRegistry.addRecipe(new ItemStack(CoreModBlocks.BlockOnyx,1),
"XXX","XXX","XXX",
Character.valueOf('X'), new ItemStack(CoreModItems.Onyx));
GameRegistry.addRecipe(new ItemStack(CoreModBlocks.BlockBronze,1),
"XXX","XXX","XXX",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotBronze));
GameRegistry.addRecipe(new ItemStack(CoreModBlocks.BlockObsidian, 1),
"XXX", "XXX", "XXX",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotObsidian));
//Flowers
//Items
//Ore Combinations
GameRegistry.addShapelessRecipe(new ItemStack(CoreModItems.BronzeChunk, 1), new ItemStack(CoreModBlocks.OreTin,1), new ItemStack(CoreModBlocks.OreCopper,1), new ItemStack(CoreModBlocks.OreCopper,1), new ItemStack(CoreModBlocks.OreCopper,1));
GameRegistry.addShapelessRecipe(new ItemStack(CoreModItems.ObsidianChunk, 1), Block.obsidian, Item.redstone);
//Armor
//Bronze
GameRegistry.addRecipe(new ItemStack(CoreModItems.HelmetBronze,1),
"XXX","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotBronze));
GameRegistry.addRecipe(new ItemStack(CoreModItems.PlateBronze,1),
"X X","XXX","XXX",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotBronze));
GameRegistry.addRecipe(new ItemStack(CoreModItems.LegsBronze,1),
"XXX","X X","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotBronze));
GameRegistry.addRecipe(new ItemStack(CoreModItems.BootsBronze,1),
"X X","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotBronze));
//Obsidian
GameRegistry.addRecipe(new ItemStack(CoreModItems.HelmetObsidian,1),
"XXX","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotObsidian));
GameRegistry.addRecipe(new ItemStack(CoreModItems.PlateObsidian,1),
"X X","XXX","XXX",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotObsidian));
GameRegistry.addRecipe(new ItemStack(CoreModItems.LegsObsidian,1),
"XXX","X X","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotObsidian));
GameRegistry.addRecipe(new ItemStack(CoreModItems.BootsObsidian,1),
"X X","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotObsidian));
//Ruby
GameRegistry.addRecipe(new ItemStack(CoreModItems.HelmetRuby,1),
"XXX","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.Ruby));
GameRegistry.addRecipe(new ItemStack(CoreModItems.PlateRuby,1),
"X X","XXX","XXX",
Character.valueOf('X'), new ItemStack(CoreModItems.Ruby));
GameRegistry.addRecipe(new ItemStack(CoreModItems.LegsRuby,1),
"XXX","X X","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.Ruby));
GameRegistry.addRecipe(new ItemStack(CoreModItems.BootsRuby,1),
"X X","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.Ruby));
//Sapphire
GameRegistry.addRecipe(new ItemStack(CoreModItems.HelmetSapphire,1),
"XXX","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.Sapphire));
GameRegistry.addRecipe(new ItemStack(CoreModItems.PlateSapphire,1),
"X X","XXX","XXX",
Character.valueOf('X'), new ItemStack(CoreModItems.Sapphire));
GameRegistry.addRecipe(new ItemStack(CoreModItems.LegsSapphire,1),
"XXX","X X","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.Sapphire));
GameRegistry.addRecipe(new ItemStack(CoreModItems.BootsSapphire,1),
"X X","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.Sapphire));
//Emerald
GameRegistry.addRecipe(new ItemStack(CoreModItems.HelmetEmerald,1),
"XXX","X X",
Character.valueOf('X'), new ItemStack(Item.emerald));
GameRegistry.addRecipe(new ItemStack(CoreModItems.PlateEmerald,1),
"X X","XXX","XXX",
Character.valueOf('X'), new ItemStack(Item.emerald));
GameRegistry.addRecipe(new ItemStack(CoreModItems.LegsEmerald,1),
"XXX","X X","X X",
Character.valueOf('X'), new ItemStack(Item.emerald));
GameRegistry.addRecipe(new ItemStack(CoreModItems.BootsEmerald,1),
"X X","X X",
Character.valueOf('X'), new ItemStack(Item.emerald));
//Onyx
GameRegistry.addRecipe(new ItemStack(CoreModItems.HelmetOnyx,1),
"XXX","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.Onyx));
GameRegistry.addRecipe(new ItemStack(CoreModItems.PlateOnyx,1),
"X X","XXX","XXX",
Character.valueOf('X'), new ItemStack(CoreModItems.Onyx));
GameRegistry.addRecipe(new ItemStack(CoreModItems.LegsOnyx,1),
"XXX","X X","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.Onyx));
GameRegistry.addRecipe(new ItemStack(CoreModItems.BootsOnyx,1),
"X X","X X",
Character.valueOf('X'), new ItemStack(CoreModItems.Onyx));
//Tools
//Bronze
GameRegistry.addRecipe(new ItemStack(CoreModItems.SwordBronze,1),
"X","X","Y",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotBronze),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.ShovelBronze,1),
"X","Y","Y",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotBronze),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.PickaxeBronze,1),
"XXX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotBronze),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.AxeBronze,1),
"XX ","XY "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotBronze),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.AxeBronze,1),
" XX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotBronze),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.HoeBronze,1),
"XX "," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotBronze),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.HoeBronze,1),
" XX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotBronze),
Character.valueOf('Y'), new ItemStack(Item.stick));
//Obsidian
GameRegistry.addRecipe(new ItemStack(CoreModItems.SwordObsidian,1),
"X","X","Y",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotObsidian),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.ShovelObsidian,1),
"X","Y","Y",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotObsidian),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.PickaxeObsidian,1),
"XXX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotObsidian),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.AxeObsidian,1),
"XX ","XY "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotObsidian),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.AxeObsidian,1),
" XX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotObsidian),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.HoeObsidian,1),
"XX "," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotObsidian),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.HoeObsidian,1),
" XX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.IngotObsidian),
Character.valueOf('Y'), new ItemStack(Item.stick));
//Ruby
GameRegistry.addRecipe(new ItemStack(CoreModItems.SwordRuby,1),
"X","X","Y",
Character.valueOf('X'), new ItemStack(CoreModItems.Ruby),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.ShovelRuby,1),
"X","Y","Y",
Character.valueOf('X'), new ItemStack(CoreModItems.Ruby),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.PickaxeRuby,1),
"XXX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Ruby),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.AxeRuby,1),
"XX ","XY "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Ruby),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.AxeRuby,1),
" XX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Ruby),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.HoeRuby,1),
"XX "," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Ruby),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.HoeRuby,1),
" XX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Ruby),
Character.valueOf('Y'), new ItemStack(Item.stick));
//Sapphire
GameRegistry.addRecipe(new ItemStack(CoreModItems.SwordSapphire,1),
"X","X","Y",
Character.valueOf('X'), new ItemStack(CoreModItems.Sapphire),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.ShovelSapphire,1),
"X","Y","Y",
Character.valueOf('X'), new ItemStack(CoreModItems.Sapphire),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.PickaxeSapphire,1),
"XXX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Sapphire),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.AxeSapphire,1),
"XX ","XY "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Sapphire),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.AxeSapphire,1),
" XX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Sapphire),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.HoeSapphire,1),
"XX "," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Sapphire),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.HoeSapphire,1),
" XX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Sapphire),
Character.valueOf('Y'), new ItemStack(Item.stick));
//Emerald
GameRegistry.addRecipe(new ItemStack(CoreModItems.SwordEmerald,1),
"X","X","Y",
Character.valueOf('X'), new ItemStack(Item.emerald),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.ShovelEmerald,1),
"X","Y","Y",
Character.valueOf('X'), new ItemStack(Item.emerald),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.PickaxeEmerald,1),
"XXX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(Item.emerald),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.AxeEmerald,1),
"XX ","XY "," Y ",
Character.valueOf('X'), new ItemStack(Item.emerald),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.AxeEmerald,1),
" XX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(Item.emerald),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.HoeEmerald,1),
"XX "," Y "," Y ",
Character.valueOf('X'), new ItemStack(Item.emerald),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.HoeEmerald,1),
" XX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(Item.emerald),
Character.valueOf('Y'), new ItemStack(Item.stick));
//Onyx
GameRegistry.addRecipe(new ItemStack(CoreModItems.SwordOnyx,1),
"X","X","Y",
Character.valueOf('X'), new ItemStack(CoreModItems.Onyx),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.ShovelOnyx,1),
"X","Y","Y",
Character.valueOf('X'), new ItemStack(CoreModItems.Onyx),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.PickaxeOnyx,1),
"XXX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Onyx),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.AxeOnyx,1),
"XX ","XY "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Onyx),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.AxeOnyx,1),
" XX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Onyx),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.HoeOnyx,1),
"XX "," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Onyx),
Character.valueOf('Y'), new ItemStack(Item.stick));
GameRegistry.addRecipe(new ItemStack(CoreModItems.HoeOnyx,1),
" XX"," Y "," Y ",
Character.valueOf('X'), new ItemStack(CoreModItems.Onyx),
Character.valueOf('Y'), new ItemStack(Item.stick));
//Weapons
//Crossbow
GameRegistry.addRecipe(new ItemStack(CoreModItems.CrossbowWooden,1),
"XA ","AZY"," YY",
Character.valueOf('X'), new ItemStack(Item.bow),
Character.valueOf('Y'), new ItemStack(Item.stick),
Character.valueOf('Z'), new ItemStack(Block.planks),
Character.valueOf('A'), new ItemStack(Item.ingotIron));
GameRegistry.addRecipe(new ItemStack(CoreModItems.CrossbowWooden,1),
" AX","YZA","YY ",
Character.valueOf('X'), new ItemStack(Item.bow),
Character.valueOf('Y'), new ItemStack(Item.stick),
Character.valueOf('Z'), new ItemStack(Block.planks),
Character.valueOf('A'), new ItemStack(Item.ingotIron));
}
public void smelting()
{
//Blocks
//Items
//Ore
GameRegistry.addSmelting(CoreModBlocks.OreTin.blockID, new ItemStack(CoreModItems.IngotTin, 1), 2);
GameRegistry.addSmelting(CoreModBlocks.OreCopper.blockID, new ItemStack(CoreModItems.IngotCopper, 1), 4);
GameRegistry.addSmelting(CoreModItems.BronzeChunk.itemID, new ItemStack(CoreModItems.IngotBronze, 1), 5);
GameRegistry.addSmelting(CoreModItems.ObsidianChunk.itemID, new ItemStack(CoreModItems.IngotObsidian, 1), 10);
}
}
When you get the id of onyx to get the textures, you get a null pointer exception. Try simply using the onyx id field or an if statement.
there isnt a problem with the creative tab i know that for sure it has to do with the blocks and items , when i go into the game and search them by name i cannot find them
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Crash Report
CoreModRpgExpansion
CoreModBlocks
CoreModItems
CoreModRecipies
modArmor
modAxe
modBlock
modCreativeTab
modCrossbowWooden
modHoe
modItem
modPickaxe
modSpade
modSword
modTool
modWorldGenerator
Just so you guys know i did copy-right my mod
there isnt a problem with the creative tab i know that for sure it has to do with the blocks and items , when i go into the game and search them by name i cannot find them
which is an NPE, like I said. The items not showing up is another problem.
i know that there is a problem some where in the classes that wont let the items come into the game
i just did but i wanted it to be cleaner
Multiple files isn't cleaner.
together they are powerful beyond imagination."
not to you man but it looked better when i seperated them