Jump to content

Recommended Posts

Posted

I am making a mod and when i load a world, it comes up with "ID Mismatch Between World and Game". This is the report.

 

 

Nov 23, 2013 2:04:42 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

Nov 23, 2013 2:04:42 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

Nov 23, 2013 2:04:42 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

2013-11-23 14:04:42 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.4.20.916 for Minecraft 1.6.4 loading

2013-11-23 14:04:42 [iNFO] [ForgeModLoader] Java is Java HotSpot 64-Bit Server VM, version 1.6.0_65, running on Mac OS X:x86_64:10.7.3, installed at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

2013-11-23 14:04:42 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

2013-11-23 14:04:42 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg

2013-11-23 14:04:42 [iNFO] [sTDOUT] Loaded 109 rules from AccessTransformer config file forge_at.cfg

2013-11-23 14:04:42 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!

2013-11-23 14:04:43 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

2013-11-23 14:04:43 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

2013-11-23 14:04:43 [iNFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}

2013-11-23 14:04:44 [iNFO] [Minecraft-Client] Setting user: Player203

2013-11-23 14:04:44 [iNFO] [Minecraft-Client] (Session ID is null)

2013-11-23 14:04:45 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0

2013-11-23 14:04:45 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default

2013-11-23 14:04:46 [iNFO] [sTDOUT]

2013-11-23 14:04:46 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-11-23 14:04:46 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization

2013-11-23 14:04:46 [iNFO] [sTDOUT] MinecraftForge v9.11.1.916 Initialized

2013-11-23 14:04:46 [iNFO] [ForgeModLoader] MinecraftForge v9.11.1.916 Initialized

2013-11-23 14:04:46 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-11-23 14:04:46 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-11-23 14:04:46 [iNFO] [sTDOUT] Replaced 101 ore recipies

2013-11-23 14:04:46 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization

2013-11-23 14:04:46 [iNFO] [ForgeModLoader] Reading custom logging properties from /Users/"Name"/Desktop/forge/mcp/jars/config/logging.properties

2013-11-23 14:04:46 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL

2013-11-23 14:04:46 [iNFO] [sTDOUT] OpenAL initialized.

2013-11-23 14:04:46 [iNFO] [ForgeModLoader] Searching /Users/"Name"/Desktop/forge/mcp/jars/mods for mods

2013-11-23 14:04:46 [iNFO] [sTDOUT]

2013-11-23 14:04:48 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2013-11-23 14:04:48 [iNFO] [mcp] Activating mod mcp

2013-11-23 14:04:48 [iNFO] [FML] Activating mod FML

2013-11-23 14:04:48 [iNFO] [Forge] Activating mod Forge

2013-11-23 14:04:48 [iNFO] [Random_Mod] Activating mod Random_Mod

2013-11-23 14:04:48 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well

2013-11-23 14:04:48 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well

2013-11-23 14:04:48 [WARNING] [Random_Mod] Mod Random_Mod is missing a pack.mcmeta file, things may not work well

2013-11-23 14:04:48 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Random_Mod

2013-11-23 14:04:48 [iNFO] [sTDOUT]

2013-11-23 14:04:48 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-11-23 14:04:48 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-11-23 14:04:48 [iNFO] [sTDOUT]

2013-11-23 14:04:48 [iNFO] [sTDOUT]

2013-11-23 14:04:48 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-11-23 14:04:48 [iNFO] [ForgeModLoader] Registering Forge Packet Handler

2013-11-23 14:04:48 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler

2013-11-23 14:04:48 [sEVERE] [Random_Mod] The mod Random_Mod appears to have an invalid event annotation EventHandler. This annotation can only apply to methods with recognized event arguments - it will not be called

2013-11-23 14:04:48 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

 

*Error starts here*

2013-11-23 14:04:48 [iNFO] [sTDOUT] CONFLICT @ 1039 item slot already occupied by science.Ruby.RubyArmor@695e0163 while adding science.Sapphire.SapphireArmor@4acf7fd0

2013-11-23 14:04:48 [iNFO] [fml.ItemTracker] The mod Random_Mod is overwriting existing item at 1295 (science.Ruby.RubyArmor from Random_Mod) with science.Sapphire.SapphireArmor

2013-11-23 14:04:48 [iNFO] [sTDOUT] CONFLICT @ 1040 item slot already occupied by science.Ruby.RubyArmor@1aad40a0 while adding science.Sapphire.SapphireArmor@7cd0570e

2013-11-23 14:04:48 [iNFO] [fml.ItemTracker] The mod Random_Mod is overwriting existing item at 1296 (science.Ruby.RubyArmor from Random_Mod) with science.Sapphire.SapphireArmor

2013-11-23 14:04:48 [iNFO] [sTDOUT] CONFLICT @ 1041 item slot already occupied by science.Ruby.RubyArmor@646dd60e while adding science.Sapphire.SapphireArmor@52039826

2013-11-23 14:04:48 [iNFO] [fml.ItemTracker] The mod Random_Mod is overwriting existing item at 1297 (science.Ruby.RubyArmor from Random_Mod) with science.Sapphire.SapphireArmor

2013-11-23 14:04:48 [iNFO] [sTDOUT] CONFLICT @ 1041 item slot already occupied by science.Sapphire.SapphireArmor@52039826 while adding science.Sapphire.SapphireArmor@69fa10da

2013-11-23 14:04:48 [iNFO] [fml.ItemTracker] The mod Random_Mod is overwriting existing item at 1297 (science.Sapphire.SapphireArmor from Random_Mod) with science.Sapphire.SapphireArmor

*Error ends here*

 

2013-11-23 14:04:48 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-11-23 14:04:48 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-11-23 14:04:48 [iNFO] [sTDOUT] OpenAL initialized.

2013-11-23 14:04:49 [iNFO] [sTDOUT]

2013-11-23 14:04:49 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: random_mod:textures/items/ruby_item.png

2013-11-23 14:04:49 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: random_mod:textures/items/sapphire_item.png

2013-11-23 14:04:49 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods

2013-11-23 14:04:49 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well

2013-11-23 14:04:49 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well

2013-11-23 14:04:49 [WARNING] [Random_Mod] Mod Random_Mod is missing a pack.mcmeta file, things may not work well

2013-11-23 14:04:49 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Random_Mod

2013-11-23 14:04:49 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: random_mod:textures/items/ruby_item.png

2013-11-23 14:04:49 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: random_mod:textures/items/sapphire_item.png

2013-11-23 14:04:50 [iNFO] [sTDOUT]

2013-11-23 14:04:50 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-11-23 14:04:50 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-11-23 14:04:50 [iNFO] [sTDOUT]

2013-11-23 14:04:50 [iNFO] [sTDOUT]

2013-11-23 14:04:50 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-11-23 14:04:50 [sEVERE] [Minecraft-Client] ########## GL ERROR ##########

2013-11-23 14:04:50 [sEVERE] [Minecraft-Client] @ Post startup

2013-11-23 14:04:50 [sEVERE] [Minecraft-Client] 1281: Invalid value

2013-11-23 14:04:50 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-11-23 14:04:50 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-11-23 14:04:50 [iNFO] [sTDOUT] OpenAL initialized.

2013-11-23 14:04:50 [iNFO] [sTDOUT]

2013-11-23 14:04:52 [sEVERE] [Minecraft-Client] Realms: Invalid session id

2013-11-23 14:04:53 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.4

2013-11-23 14:04:53 [iNFO] [Minecraft-Server] Generating keypair

2013-11-23 14:04:54 [iNFO] [ForgeModLoader] Loading dimension 0 (basic) (net.minecraft.server.integrated.IntegratedServer@3864064b)

2013-11-23 14:04:54 [iNFO] [ForgeModLoader] Loading dimension 1 (basic) (net.minecraft.server.integrated.IntegratedServer@3864064b)

2013-11-23 14:04:54 [iNFO] [ForgeModLoader] Loading dimension -1 (basic) (net.minecraft.server.integrated.IntegratedServer@3864064b)

2013-11-23 14:04:54 [iNFO] [Minecraft-Server] Preparing start region for level 0

2013-11-23 14:04:55 [iNFO] [sTDOUT] loading single player

2013-11-23 14:04:55 [iNFO] [Minecraft-Server] Player203[/127.0.0.1:0] logged in with entity id 177 at (98.89004457201958, 65.875, 224.5041198980983)

2013-11-23 14:04:55 [iNFO] [Minecraft-Server] Player203 joined the game

2013-11-23 14:04:55 [iNFO] [sTDOUT] Setting up custom skins

 

 

The rubyArmor doesn't have anything to do with the sapphire armor but the report sais it does?

 

If you need my code for the main class (Random_Mod) just ask :)

Posted

Main Class (Random_Mod) Code

 

 

package science;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.EnumHelper;
import net.minecraftforge.common.MinecraftForge;
import science.Lead.LeadBlock;
import science.Lead.LeadIngot;
import science.Lead.LeadOre;
import science.Lead.LeadOreGeneration;
import science.Quontonium.QuontoniumArmor;
import science.Quontonium.QuontoniumBlock;
import science.Quontonium.QuontoniumIngot;
import science.Quontonium.QuontoniumOre;
import science.Quontonium.QuontoniumOreGeneration;
import science.Rhodium.RhodiumArmor;
import science.Rhodium.RhodiumBlock;
import science.Rhodium.RhodiumIngot;
import science.Rhodium.RhodiumOre;
import science.Rhodium.RhodiumOreGeneration;
import science.Ruby.RubyArmor;
import science.Ruby.RubyBlock;
import science.Ruby.RubyItem;
import science.Ruby.RubyOre;
import science.Ruby.RubyOreGeneration;
import science.Sapphire.SapphireArmor;
import science.Sapphire.SapphireBlock;
import science.Sapphire.SapphireItem;
import science.Sapphire.SapphireOre;
import science.Sapphire.SapphireOreGeneration;
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.FMLLoadEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

@Mod(modid="Random_Mod", name="Random_Mod", version="1.0")
@NetworkMod(clientSideRequired=true, serverSideRequired=false)

public class Random_Mod {

//Block ID Section
int QuontoniumBlockID;
int QuontoniumOreID;
int LeadBlockID;
int LeadOreBlockID;
int RhodiumBlockID;
int RhodiumOreID;
int RubyBlockID;
int RubyOreID;
int SapphireBlockID;
int SapphireOreID;


//Item ID Section
int QuontoniumIngotID;
int LeadIngotID;
int RhodiumIngotID;
int RubyItemID;
int SapphireItemID;

//Armor ID Section
	//Quontonium
int QuontoniumHelmetID;
int QuontoniumChestID;
int QuontoniumLeggingsID;
int QuontoniumBootsID;
	//Lead
int LeadHelmetID;
int LeadChestID;
int LeadLeggingsID;
int LeadBootsID;
	//Rhodium
int RhodiumHelmetID;
int RhodiumChestID;
int RhodiumLeggingsID;
int RhodiumBootsID;
___________________________
	//Ruby
int RubyHelmetID;
int RubyChestID;
int RubyLeggingsID;
int RubyBootsID;

	//Sapphire
int SapphireHelmetID;
int SapphireChestID;
int SapphireLeggingsID;
int SapphireBootsID;
___________________________	

//Tool ID Section


//Block Section
public static Block QuontoniumBlock;
public static Block QuontoniumOre;
public static Block LeadBlock;
public static Block LeadOre;
public static Block RhodiumBlock;
public static Block RhodiumOre;
public static Block RubyBlock;
public static Block RubyOre;
public static Block SapphireBlock;
public static Block SapphireOre;

//Item Section
public static Item QuontoniumIngot;
public static Item LeadIngot;
public static Item RhodiumIngot;
public static Item RubyItem;
public static Item SapphireItem;

//Material Section
public static EnumArmorMaterial QuontoniumArmor = 					  
		EnumHelper.addArmorMaterial("QuontoniumArmor", 1819, new int[] { 3, 8, 7, 3 }, 10);

public static EnumArmorMaterial LeadArmor = 
		EnumHelper.addArmorMaterial("LeadArmor", 1819, new int[]{ 2, 6, 5, 2 }, 15);

public static EnumArmorMaterial RhodiumArmor = 
		EnumHelper.addArmorMaterial("RhodiumArmor", 829, new int[]{ 2, 5, 4, 1 }, 7);

_____________________________________________________________________________
public static EnumArmorMaterial RubyArmor = 
		EnumHelper.addArmorMaterial("RubyArmor", 1819, new int[]{ 3, 6, 5, 2 }, 14);

public static EnumArmorMaterial SapphireArmor = 
		EnumHelper.addArmorMaterial("SapphireArmor", 1819, new int[]{ 2, 8, 6, 3 }, 14);
_____________________________________________________________________________

//Armor Section
	//Quontonium
public static Item QuontoniumHelmet;
public static Item QuontoniumChest;
public static Item QuontoniumLeggings;
public static Item QuontoniumBoots;
	//Lead
public static Item LeadHelmet;
public static Item LeadChest;
public static Item LeadLeggings;
public static Item LeadBoots;
	//Rhodium
public static Item RhodiumHelmet;
public static Item RhodiumChest;
public static Item RhodiumLeggings;
public static Item RhodiumBoots;
___________________________________
	//Ruby
public static Item RubyHelmet;
public static Item RubyChest;
public static Item RubyLeggings;
public static Item RubyBoots;
	//Sapphire
public static Item SapphireHelmet;
public static Item SapphireChest;
public static Item SapphireLeggings;
public static Item SapphireBoots;
___________________________________

//Instance of the mod
	public static Random_Mod instance;

@EventHandler
public void preInit(FMLPreInitializationEvent event) {

	//OreGeneration
	GameRegistry.registerWorldGenerator(new QuontoniumOreGeneration());
	GameRegistry.registerWorldGenerator(new LeadOreGeneration());
	GameRegistry.registerWorldGenerator(new RhodiumOreGeneration());
	GameRegistry.registerWorldGenerator(new RubyOreGeneration());
	GameRegistry.registerWorldGenerator(new SapphireOreGeneration());


	//Configuration Code
	Configuration config = new Configuration(event.getSuggestedConfigurationFile());

	config.load();
//Quontonium
QuontoniumBlockID = config.get("Block IDs", "Quontonium Block ID", 1000).getInt();
QuontoniumOreID = config.get("Block IDs", "Quontonium Ore ID", 1001).getInt();

QuontoniumIngotID = config.get("Material IDs", "Quontonium Ingot ID", 1002).getInt();

QuontoniumHelmetID = config.get("Armor IDs", "Quontonium Helmet ID", 1003).getInt();
QuontoniumChestID = config.get("Armor IDs", "Quontonium Chest ID", 1004).getInt();
QuontoniumLeggingsID = config.get("Armor IDs", "Quontonium Leggings ID", 1005).getInt();
QuontoniumBootsID = config.get("Armor IDs", "Quontonium Boots ID", 1006).getInt();


//Lead
LeadBlockID = config.get("Block IDs", "Lead Block ID", 1012).getInt();
LeadOreBlockID = config.get("Block IDs", "Lead Ore ID", 1013).getInt();

LeadIngotID = config.get("Material IDs", "Lead Ingot ID", 1014).getInt();

LeadHelmetID = config.get("Armor IDs", "Lead Helmet ID", 1015).getInt();
LeadChestID = config.get("Armor IDs", "Lead Chest ID", 1016).getInt();
LeadLeggingsID = config.get("Armor IDs", "Lead Leggings ID", 1017).getInt();
LeadBootsID = config.get("Armor IDs", "Lead Boots ID", 1018).getInt();

//Rhodium
RhodiumBlockID = config.get("Block IDs", "Rhodium Block ID", 1024).getInt();
RhodiumOreID = config.get("Block IDs", "Rhodium Ore ID", 1025).getInt();

RhodiumIngotID = config.get("Material IDs", "Rhodium Ingot ID", 1026).getInt();

RhodiumHelmetID = config.get("Armor IDs", "Rhodium Helmet ID", 1027).getInt();
RhodiumChestID = config.get("Armor IDs", "Rhodium Chest ID", 1028).getInt();
RhodiumLeggingsID = config.get("Armor IDs", "Rhodium Leggings ID", 1029).getInt();
RhodiumBootsID = config.get("Armor IDs", "Rhodium Boots ID", 1030).getInt();

//Ruby
RubyBlockID = config.get("Block IDs", "Ruby Block ID", 13036).getInt();
RubyOreID = config.get("Block IDs", "Ruby Ore ID", 3037).getInt();

RubyItemID = config.get("Material IDs", "Ruby ID", 3038).getInt();


__________________________________________________________________
RubyHelmetID = config.get("Armor IDs", "Ruby Helmet ID", 3039).getInt();
RubyChestID = config.get("Armor IDs", "Ruby Chest ID", 3040).getInt();
RubyLeggingsID = config.get("Armor IDs", "Ruby Leggings ID", 3041).getInt();
RubyBootsID = config.get("Armor IDs", "Ruby Boots ID", 3042).getInt();
__________________________________________________________________



//Sapphire
SapphireBlockID = config.get("Block IDs", "Sapphire Block ID", 3048).getInt();
SapphireOreID = config.get("Block IDs", "Sapphire Ore ID", 3049).getInt();

SapphireItemID = config.get("Material IDs", "Sapphire ID", 3050).getInt();


______________________________________________________________________
SapphireHelmetID = config.get("Armor IDs", "Sapphire Helmet ID", 3051).getInt();
SapphireChestID = config.get("Armor IDs", "Sapphire Chest ID", 3052).getInt();
SapphireLeggingsID = config.get("Armor IDs", "Sapphire Leggings ID", 3053).getInt();
SapphireBootsID = config.get("Armor IDs", "Sapphire Boots ID", 3054).getInt();
______________________________________________________________________


	config.save();

	//Initialise our Blocks
		//Quontonium
	this.QuontoniumBlock = new QuontoniumBlock(QuontoniumBlockID, Material.rock);
	this.QuontoniumOre = new QuontoniumOre(QuontoniumOreID);
	this.LeadBlock = new LeadBlock(LeadBlockID, Material.rock);
	this.LeadOre = new LeadOre(LeadOreBlockID);
	this.RhodiumBlock = new RhodiumBlock(RhodiumBlockID, Material.rock);
	this.RhodiumOre = new RhodiumOre(RhodiumOreID);
	this.RubyBlock = new RubyBlock(RubyBlockID, Material.rock);
	this.RubyOre = new RubyOre(RubyOreID);
	this.SapphireBlock = new SapphireBlock(SapphireBlockID, Material.rock);
	this.SapphireOre = new SapphireOre(SapphireOreID);

	//Initialise our Items
	this.QuontoniumIngot = new QuontoniumIngot(QuontoniumIngotID);
	this.LeadIngot = new LeadIngot(LeadIngotID);
	this.RhodiumIngot = new RhodiumIngot(RhodiumIngotID);
	this.RubyItem = new RubyItem(RubyItemID);
	this.SapphireItem = new SapphireItem(SapphireItemID);

	//Initialise our Armor
		//Quontonium
	QuontoniumHelmet = new QuontoniumArmor(QuontoniumHelmetID,
			QuontoniumArmor, 0, 0, "Quontonium");
	QuontoniumChest = new QuontoniumArmor(QuontoniumChestID,
			QuontoniumArmor, 0, 1, "Quontonium");
	QuontoniumLeggings = new QuontoniumArmor(QuontoniumLeggingsID,
			QuontoniumArmor, 0, 2, "Quontonium");
	QuontoniumBoots = new QuontoniumArmor(QuontoniumBootsID,
			QuontoniumArmor, 0, 3, "Quontonium");

		//Lead
	LeadHelmet = new QuontoniumArmor(LeadHelmetID,
			LeadArmor, 0, 0, "Lead");
	LeadChest = new QuontoniumArmor(LeadChestID,
			LeadArmor, 0, 1, "Lead");
	LeadLeggings = new QuontoniumArmor(LeadLeggingsID,
			LeadArmor, 0, 2, "Lead");
	LeadBoots = new QuontoniumArmor(LeadBootsID,
			LeadArmor, 0, 3, "Lead");

		//Rhodium
	RhodiumHelmet = new RhodiumArmor(RhodiumHelmetID,
			RhodiumArmor, 0, 0, "Rhodium");
	RhodiumChest = new RhodiumArmor(RhodiumChestID,
			RhodiumArmor, 0, 1, "Rhodium");
	RhodiumLeggings = new RhodiumArmor(RhodiumLeggingsID,
			RhodiumArmor, 0, 2, "Rhodium");
	RhodiumBoots = new RhodiumArmor(RhodiumBootsID,
			RhodiumArmor, 0, 3, "Rhodium");

_______________________________________________________
		//Ruby
	RubyHelmet = new RubyArmor(RubyHelmetID,
			RubyArmor, 0, 0, "Ruby");
	RubyChest = new RubyArmor(RubyChestID,
			RubyArmor, 0, 1, "Ruby");
	RubyLeggings = new RubyArmor(RubyLeggingsID,
			RubyArmor, 0, 2, "Ruby");
	RubyBoots = new RubyArmor(RubyBootsID,
			RubyArmor, 0, 3, "Ruby");

		//Sapphire
	SapphireHelmet = new SapphireArmor(SapphireHelmetID,
			SapphireArmor, 0, 0, "Sapphire");
	SapphireChest = new SapphireArmor(SapphireChestID,
			SapphireArmor, 0, 0, "Sapphire");
	SapphireLeggings = new SapphireArmor(SapphireLeggingsID,
			SapphireArmor, 0, 0, "Sapphire");
	SapphireBoots = new SapphireArmor(SapphireLeggingsID,
			SapphireArmor, 0, 0, "Sapphire");
_______________________________________________________		


	//Initalise our Tools


	//Quontonium
	LanguageRegistry.addName(QuontoniumBlock, "Quontonium Block");
	MinecraftForge.setBlockHarvestLevel(QuontoniumBlock, "pickaxe", 2);
	GameRegistry.registerBlock(QuontoniumBlock, "QuontoniumBlock");

	LanguageRegistry.addName(QuontoniumOre, "Quontonium Ore");
	MinecraftForge.setBlockHarvestLevel(QuontoniumOre, "pickaxe", 2);
	GameRegistry.registerBlock(QuontoniumOre, "QuontoniumOre");

	LanguageRegistry.addName(QuontoniumIngot, "Quontonium Ingot");

	LanguageRegistry.addName(QuontoniumHelmet, "Quontonium Helmet");
	LanguageRegistry.addName(QuontoniumChest, "Quontonium Chestplate");
	LanguageRegistry.addName(QuontoniumLeggings, "Quontonium Leggings");
	LanguageRegistry.addName(QuontoniumBoots, "Quontonium Boots");


	//Lead
	LanguageRegistry.addName(LeadBlock, "Lead Block");
	MinecraftForge.setBlockHarvestLevel(LeadBlock, "pickaxe", 1);
	GameRegistry.registerBlock(LeadBlock, "LeadBlock");

	LanguageRegistry.addName(LeadOre, "Lead Ore");
	MinecraftForge.setBlockHarvestLevel(LeadOre, "pickaxe", 1);
	GameRegistry.registerBlock(LeadOre, "LeadOre");

	LanguageRegistry.addName(LeadIngot, "Lead Ingot");

	LanguageRegistry.addName(LeadHelmet, "Lead Helmet");
	LanguageRegistry.addName(LeadChest, "Lead Chestplate");
	LanguageRegistry.addName(LeadLeggings, "Lead Leggings");
	LanguageRegistry.addName(LeadBoots, "Lead Boots");


	//Rhodium
	LanguageRegistry.addName(RhodiumBlock, "Rhodium Block");
	MinecraftForge.setBlockHarvestLevel(RhodiumBlock, "pickaxe", 2);
	GameRegistry.registerBlock(RhodiumBlock, "RhodiumBlock");

	LanguageRegistry.addName(RhodiumOre, "Rhodium Ore");
	MinecraftForge.setBlockHarvestLevel(RhodiumOre, "pickaxe", 2);
	GameRegistry.registerBlock(RhodiumOre, "RhodiumOre");

	LanguageRegistry.addName(RhodiumIngot, "Rhodium Ingot");

	LanguageRegistry.addName(RhodiumHelmet, "Rhodium Helmet");
	LanguageRegistry.addName(RhodiumChest, "Rhodium Chestplate");
	LanguageRegistry.addName(RhodiumLeggings, "Rhodium Leggings");
	LanguageRegistry.addName(RhodiumBoots, "Rhodium Boots");

	//Ruby
	LanguageRegistry.addName(RubyBlock, "Ruby Block");
	MinecraftForge.setBlockHarvestLevel(RubyBlock, "pickaxe", 2);
	GameRegistry.registerBlock(RubyBlock, "RubyBlock");

	LanguageRegistry.addName(RubyOre, "Ruby Ore");
	MinecraftForge.setBlockHarvestLevel(RubyOre, "pickaxe", 2);
	GameRegistry.registerBlock(RubyOre, "RubyOre");

	LanguageRegistry.addName(RubyItem, "Ruby");

________________________________________________________
	LanguageRegistry.addName(RubyHelmet, "Ruby Helmet");
	LanguageRegistry.addName(RubyChest, "Ruby Chestplate");
	LanguageRegistry.addName(RubyLeggings, "Ruby Leggings");
	LanguageRegistry.addName(RubyBoots, "Ruby Boots");
________________________________________________________


	//Sapphire
	LanguageRegistry.addName(SapphireBlock, "Sapphire Block");
	MinecraftForge.setBlockHarvestLevel(SapphireBlock, "pickaxe", 2);
	GameRegistry.registerBlock(SapphireBlock, "Sapphire Block");

	LanguageRegistry.addName(SapphireOre, "Sapphire Ore");
	MinecraftForge.setBlockHarvestLevel(SapphireOre, "pickaxe", 2);
	GameRegistry.registerBlock(SapphireOre, "SapphireOre");

	LanguageRegistry.addName(SapphireItem, "Sapphire");

_____________________________________________________________		
	LanguageRegistry.addName(SapphireHelmet, "Sapphire Helmet");
	LanguageRegistry.addName(SapphireChest, "Sapphire Chestplate");
	LanguageRegistry.addName(SapphireLeggings, "Sapphire Leggings");
	LanguageRegistry.addName(SapphireBoots, "Sapphire Boots");
_____________________________________________________________

	//Smelting Recipes
		//Quontonium
	GameRegistry.addSmelting(QuontoniumOreID, new ItemStack(QuontoniumIngot), 0.7F);
		//Lead
	GameRegistry.addSmelting(LeadOreBlockID, new ItemStack(LeadIngot), 1.1F);
		//Rhodium
	GameRegistry.addSmelting(RhodiumOreID, new ItemStack(RhodiumIngot), 0.9F);


	//Crafting Recipes
		//Quontonium
			//Blocks
	GameRegistry.addRecipe(new ItemStack(QuontoniumBlock), 
			"xxx", "xxx", "xxx",
			'x', QuontoniumIngot);
			//Armor
	GameRegistry.addRecipe(new ItemStack(QuontoniumHelmet), 
			"xxx", "x x",
			'x', QuontoniumIngot);

	GameRegistry.addRecipe(new ItemStack(QuontoniumChest), 
			"x x", "xxx", "xxx",
			'x', QuontoniumIngot);

	GameRegistry.addRecipe(new ItemStack(QuontoniumLeggings), 
			"xxx", "x x", "x x",
			'x', QuontoniumIngot);

	GameRegistry.addRecipe(new ItemStack(QuontoniumBoots), 
			"   ", "x x", "x x",
			'x', QuontoniumIngot);
			//Tools


		//Lead
	GameRegistry.addRecipe(new ItemStack(LeadBlock), 
			"xxx", "xxx", "xxx",
			'x', LeadIngot);

	GameRegistry.addRecipe(new ItemStack(LeadHelmet), 
			"xxx", "x x",
			'x', LeadIngot);

	GameRegistry.addRecipe(new ItemStack(LeadChest), 
			"x x", "xxx", "xxx",
			'x', LeadIngot);

	GameRegistry.addRecipe(new ItemStack(LeadLeggings), 
			"xxx", "x x", "x x",
			'x', LeadIngot);

	GameRegistry.addRecipe(new ItemStack(LeadBoots), 
			"   ", "x x", "x x",
			'x', LeadIngot);


		//Rhodium
	GameRegistry.addRecipe(new ItemStack(RhodiumBlock),
			"xxx", "xxx", "xxx",
			'x', RhodiumIngot);

	GameRegistry.addRecipe(new ItemStack(RhodiumHelmet), 
			"xxx", "x x",
			'x', RhodiumIngot);

	GameRegistry.addRecipe(new ItemStack(RhodiumChest), 
			"x x", "xxx", "xxx",
			'x', RhodiumIngot);

	GameRegistry.addRecipe(new ItemStack(RhodiumLeggings), 
			"xxx", "x x", "x x",
			'x', RhodiumIngot);

	GameRegistry.addRecipe(new ItemStack(RhodiumBoots), 
			"   ", "x x", "x x",
			'x', RhodiumIngot);

		//Ruby
	GameRegistry.addRecipe(new ItemStack(RubyBlock), 
			"xxx", "xxx", "xxx",
			'x', RubyItem);

	GameRegistry.addRecipe(new ItemStack(RubyHelmet), 
			"xxx", "x x",
			'x', RubyItem);

	GameRegistry.addRecipe(new ItemStack(RubyChest), 
			"x x", "xxx", "xxx",
			'x', RubyItem);

	GameRegistry.addRecipe(new ItemStack(RubyLeggings), 
			"xxx", "x x", "x x",
			'x', RubyItem);

	GameRegistry.addRecipe(new ItemStack(RubyBoots), 
			"   ", "x x", "x x",
			'x', RubyItem);

	//Sapphire
	GameRegistry.addRecipe(new ItemStack(SapphireHelmet), 
			"xxx", "x x",
			'x', SapphireItem);

	GameRegistry.addRecipe(new ItemStack(SapphireChest), 
			"x x", "xxx", "xxx",
			'x', SapphireItem);

	GameRegistry.addRecipe(new ItemStack(SapphireLeggings), 
			"xxx", "x x", "x x",
			'x', SapphireItem);

	GameRegistry.addRecipe(new ItemStack(SapphireBoots), 
			"   ", "x x", "x x",
			'x', SapphireItem);

}

@EventHandler
public void load(FMLLoadEvent event) {


}


@EventHandler
public void postInit(FMLInitializationEvent event) {

}


@EventHandler
public void ServerStart(FMLServerStartingEvent event) {


}


}

 

Posted

Sorry about the spoiler thing, No buttons are working for me..

 

Also the IDs are different for the items, but yet i still get the error?

 

Here is the RubyArmor Code

 

 

package science.Ruby;

 

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.Entity;

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.ItemArmor;

import net.minecraft.item.ItemStack;

import net.minecraft.potion.Potion;

import net.minecraft.potion.PotionEffect;

 

public class RubyArmor extends ItemArmor{

 

private String texturePath = "random_mod:";

private String iconPath = "random_mod:";

 

public RubyArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial,

int par3, int par4, String type) {

super(par1, par2EnumArmorMaterial, par3, par4);

 

this.setMaxStackSize(1);

this.setCreativeTab(CreativeTabs.tabCombat);

this.SetArmorType(type.toLowerCase(), par4);

 

}

 

// 0 = Helmet

// 1 = Chest

// 2 = Leggings

// 3 = Boots

private void SetArmorType(String type, int par4)

{

switch(par4)

{

case 0:

this.setUnlocalizedName(type + "helmet");

this.texturePath += type + "_layer_1.png";

this.iconPath +=type + "_helmet";

break;

case 1:

this.setUnlocalizedName(type + "chest");

this.texturePath += type + "_layer_1.png";

this.iconPath +=type + "_chest";

break;

case 2:

this.setUnlocalizedName(type + "leggings");

this.texturePath += type + "_layer_2.png";

this.iconPath +=type + "_leggings";

break;

case 3:

this.setUnlocalizedName(type + "boots");

this.texturePath += type + "_layer_2.png";

this.iconPath +=type + "_boots";

break;

}

 

}

 

@SideOnly(Side.CLIENT)

public void registerIcons(IconRegister reg)

{

this.itemIcon = reg.registerIcon(this.iconPath);

}

 

@SideOnly(Side.CLIENT)

public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer)

{

return this.texturePath;

}

 

}

 

Here is the SapphireArmor Code

 

package science.Sapphire;

 

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.Entity;

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.ItemArmor;

import net.minecraft.item.ItemStack;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

 

public class SapphireArmor extends ItemArmor{

 

private String texturePath = "random_mod:";

private String iconPath = "random_mod:";

 

public SapphireArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial,

int par3, int par4, String type) {

super(par1, par2EnumArmorMaterial, par3, par4);

 

this.setMaxStackSize(1);

this.setCreativeTab(CreativeTabs.tabCombat);

this.SetArmorType(type.toLowerCase(), par4);

 

}

 

// 0 = Helmet

// 1 = Chest

// 2 = Leggings

// 3 = Boots

private void SetArmorType(String type, int par4)

{

switch(par4)

{

case 0:

this.setUnlocalizedName(type + "helmet");

this.texturePath += type + "_layer_1.png";

this.iconPath +=type + "_helmet";

break;

case 1:

this.setUnlocalizedName(type + "chest");

this.texturePath += type + "_layer_1.png";

this.iconPath +=type + "_chest";

break;

case 2:

this.setUnlocalizedName(type + "leggings");

this.texturePath += type + "_layer_2.png";

this.iconPath +=type + "_leggings";

break;

case 3:

this.setUnlocalizedName(type + "boots");

this.texturePath += type + "_layer_2.png";

this.iconPath +=type + "_boots";

break;

}

 

}

 

@SideOnly(Side.CLIENT)

public void registerIcons(IconRegister reg)

{

this.itemIcon = reg.registerIcon(this.iconPath);

}

 

@SideOnly(Side.CLIENT)

public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer)

{

return this.texturePath;

}

 

}

 

If you care aha :P

 

Posted

Config File

 

RubyHelmetID = config.get("Armor IDs", "Ruby Helmet ID", 1039).getInt();

RubyChestID = config.get("Armor IDs", "Ruby Chest ID", 1040).getInt();

RubyLeggingsID = config.get("Armor IDs", "Ruby Leggings ID", 1041).getInt();

RubyBootsID = config.get("Armor IDs", "Ruby Boots ID", 1042).getInt();

 

SapphireHelmetID = config.get("Armor IDs", "Sapphire Helmet ID", 1051).getInt();

SapphireChestID = config.get("Armor IDs", "Sapphire Chest ID", 1052).getInt();

SapphireLeggingsID = config.get("Armor IDs", "Sapphire Leggings ID", 1053).getInt();

SapphireBootsID = config.get("Armor IDs", "Sapphire Boots ID", 1054).getInt();

Posted

The log doesn't say Minecraft is crashing, so if you try to load up a world, it should say something to the effect of "ID Mismatch between world and game, load the world anyway?" and there will be a yes and a no button. Click the yes button, and everything should be good.

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.