Jump to content

One set of Armor overwrites the rest...


Bobblacksmith

Recommended Posts

I have developed in a legacy 1.6.4 forge environment until recently when I updated to the latest recommended build. Since I have updated I am having trouble getting multiple custom armor sets to load. The only one that does load is the last one defined, it gives me a conflict error in the console, but as far as I know it should not be conflicting with something. Here is where I defined the three armor sets I am making...

 

	        	emeraldHelmet = (new EmeraldHelmet(ItemID.emeraldHID, emeraldA, 7, 0)).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("emeraldHelmet");
    		emeraldChestplate = (new EmeraldChestplate(ItemID.emeraldCID, emeraldA, 7, 1)).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("emeraldChestplate");
    		emeraldLeggings = (new EmeraldLeggings(ItemID.emeraldLID, emeraldA, 7, 2)).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("emeraldLeggings");
    		emeraldBoots = (new EmeraldBoots(ItemID.emeraldBID, emeraldA, 7, 3)).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("emeraldBoots");
    		
    		copperHelmet = (new CopperHelmet(ItemID.copperHID, copperA, 6, 0)).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("copperHelmet");
    		copperChestplate = (new CopperChestplate(ItemID.copperCID, copperA, 6, 1)).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("copperChestplate");
    		copperLeggings = (new CopperLeggings(ItemID.copperLID, copperA, 6, 2)).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("copperLeggings");
    		copperBoots = (new CopperBoots(ItemID.copperBID, copperA, 6, 3)).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("copperBoots");
    		
    		rubyHelmet = (new RubyHelmet(ItemID.rubyHID, rubyA, 5, 0)).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("rubyHelmet");
    		rubyChestplate = (new RubyChestplate(ItemID.rubyCID, rubyA, 5, 1)).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("rubyChestplate");
    		rubyLeggings = (new RubyLeggings(ItemID.rubyLID, rubyA, 5, 2)).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("rubyLeggings");
    		rubyBoots = (new RubyBoots(ItemID.rubyBID, rubyA, 5, 3)).setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("rubyBoots");

 

The item id's are defined in a separate class, I started with emerald helmet at 16000 and went by ones from there for the rest of the armor.

 

Thanks in advance!

I am Bobblacksmith and I approve this message!

Link to comment
Share on other sites

Here is the console error I get...

 

Mar 20, 2014 6:48:13 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
Mar 20, 2014 6:48:13 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
Mar 20, 2014 6:48:13 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
2014-03-20 18:48:13 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.4.49.965 for Minecraft 1.6.4 loading
2014-03-20 18:48:13 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_40, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7
2014-03-20 18:48:13 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2014-03-20 18:48:13 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-03-20 18:48:13 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
2014-03-20 18:48:13 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-03-20 18:48:13 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-03-20 18:48:13 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-03-20 18:48:14 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg
2014-03-20 18:48:14 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
2014-03-20 18:48:15 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-03-20 18:48:15 [iNFO] [sTDOUT] Loaded 110 rules from AccessTransformer config file forge_at.cfg
2014-03-20 18:48:15 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
2014-03-20 18:48:15 [iNFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}
2014-03-20 18:48:21 [iNFO] [Minecraft-Client] Setting user: Player359
2014-03-20 18:48:24 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0
2014-03-20 18:48:26 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default
2014-03-20 18:48:32 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2014-03-20 18:48:32 [iNFO] [sTDOUT] MinecraftForge v9.11.1.965 Initialized
2014-03-20 18:48:32 [iNFO] [ForgeModLoader] MinecraftForge v9.11.1.965 Initialized
2014-03-20 18:48:32 [iNFO] [sTDOUT] Replaced 111 ore recipies
2014-03-20 18:48:33 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2014-03-20 18:48:33 [iNFO] [ForgeModLoader] Reading custom logging properties from E:\Da` RPG\forge\mcp\jars\config\logging.properties
2014-03-20 18:48:33 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2014-03-20 18:48:33 [iNFO] [ForgeModLoader] Searching E:\Da` RPG\forge\mcp\jars\mods for mods
2014-03-20 18:48:44 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2014-03-20 18:48:44 [iNFO] [mcp] Activating mod mcp
2014-03-20 18:48:44 [iNFO] [FML] Activating mod FML
2014-03-20 18:48:44 [iNFO] [Forge] Activating mod Forge
2014-03-20 18:48:44 [iNFO] [Da` RPG] Activating mod Da` RPG
2014-03-20 18:48:44 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well
2014-03-20 18:48:44 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well
2014-03-20 18:48:44 [WARNING] [Da` RPG] Mod Da` RPG is missing a pack.mcmeta file, things may not work well
2014-03-20 18:48:44 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Da` RPG
2014-03-20 18:48:44 [iNFO] [ForgeModLoader] Registering Forge Packet Handler
2014-03-20 18:48:44 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler
2014-03-20 18:48:45 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2014-03-20 18:48:45 [iNFO] [sTDOUT] CONFLICT @ 0 item slot already occupied by net.minecraft.item.ItemSpade@48474d6d while adding darpg.armor.EmeraldHelmet@412c542d
2014-03-20 18:48:45 [iNFO] [fml.ItemTracker] The mod Da` RPG is overwriting existing item at 256 (net.minecraft.item.ItemSpade from Minecraft) with darpg.armor.EmeraldHelmet
2014-03-20 18:48:45 [iNFO] [sTDOUT] CONFLICT @ 1 item slot already occupied by net.minecraft.item.ItemPickaxe@7c04c6f9 while adding darpg.armor.EmeraldChestplate@1da3450b
2014-03-20 18:48:45 [iNFO] [fml.ItemTracker] The mod Da` RPG is overwriting existing item at 257 (net.minecraft.item.ItemPickaxe from Minecraft) with darpg.armor.EmeraldChestplate
2014-03-20 18:48:45 [iNFO] [sTDOUT] CONFLICT @ 2 item slot already occupied by net.minecraft.item.ItemAxe@9189c02 while adding darpg.armor.EmeraldLeggings@2eaa4bf8
2014-03-20 18:48:45 [iNFO] [fml.ItemTracker] The mod Da` RPG is overwriting existing item at 258 (net.minecraft.item.ItemAxe from Minecraft) with darpg.armor.EmeraldLeggings
2014-03-20 18:48:45 [iNFO] [sTDOUT] CONFLICT @ 3 item slot already occupied by net.minecraft.item.ItemFlintAndSteel@721d7463 while adding darpg.armor.EmeraldBoots@6bc44a1c
2014-03-20 18:48:45 [iNFO] [fml.ItemTracker] The mod Da` RPG is overwriting existing item at 259 (net.minecraft.item.ItemFlintAndSteel from Minecraft) with darpg.armor.EmeraldBoots
2014-03-20 18:48:45 [iNFO] [sTDOUT] CONFLICT @ 0 item slot already occupied by darpg.armor.EmeraldHelmet@412c542d while adding darpg.armor.CopperHelmet@3cb6737c
2014-03-20 18:48:45 [iNFO] [fml.ItemTracker] The mod Da` RPG is overwriting existing item at 256 (darpg.armor.EmeraldHelmet from Da` RPG) with darpg.armor.CopperHelmet
2014-03-20 18:48:45 [iNFO] [sTDOUT] CONFLICT @ 1 item slot already occupied by darpg.armor.EmeraldChestplate@1da3450b while adding darpg.armor.CopperChestplate@6c48cb34
2014-03-20 18:48:45 [iNFO] [fml.ItemTracker] The mod Da` RPG is overwriting existing item at 257 (darpg.armor.EmeraldChestplate from Da` RPG) with darpg.armor.CopperChestplate
2014-03-20 18:48:45 [iNFO] [sTDOUT] CONFLICT @ 2 item slot already occupied by darpg.armor.EmeraldLeggings@2eaa4bf8 while adding darpg.armor.CopperLeggings@20d6c192
2014-03-20 18:48:45 [iNFO] [fml.ItemTracker] The mod Da` RPG is overwriting existing item at 258 (darpg.armor.EmeraldLeggings from Da` RPG) with darpg.armor.CopperLeggings
2014-03-20 18:48:45 [iNFO] [sTDOUT] CONFLICT @ 3 item slot already occupied by darpg.armor.EmeraldBoots@6bc44a1c while adding darpg.armor.CopperBoots@17de8244
2014-03-20 18:48:45 [iNFO] [fml.ItemTracker] The mod Da` RPG is overwriting existing item at 259 (darpg.armor.EmeraldBoots from Da` RPG) with darpg.armor.CopperBoots
2014-03-20 18:48:45 [iNFO] [sTDOUT] CONFLICT @ 0 item slot already occupied by darpg.armor.CopperHelmet@3cb6737c while adding darpg.armor.RubyHelmet@2395a0d9
2014-03-20 18:48:45 [iNFO] [fml.ItemTracker] The mod Da` RPG is overwriting existing item at 256 (darpg.armor.CopperHelmet from Da` RPG) with darpg.armor.RubyHelmet
2014-03-20 18:48:45 [iNFO] [sTDOUT] CONFLICT @ 1 item slot already occupied by darpg.armor.CopperChestplate@6c48cb34 while adding darpg.armor.RubyChestplate@8751cf1
2014-03-20 18:48:45 [iNFO] [fml.ItemTracker] The mod Da` RPG is overwriting existing item at 257 (darpg.armor.CopperChestplate from Da` RPG) with darpg.armor.RubyChestplate
2014-03-20 18:48:45 [iNFO] [sTDOUT] CONFLICT @ 2 item slot already occupied by darpg.armor.CopperLeggings@20d6c192 while adding darpg.armor.RubyLeggings@61a3e88e
2014-03-20 18:48:45 [iNFO] [fml.ItemTracker] The mod Da` RPG is overwriting existing item at 258 (darpg.armor.CopperLeggings from Da` RPG) with darpg.armor.RubyLeggings
2014-03-20 18:48:45 [iNFO] [sTDOUT] CONFLICT @ 3 item slot already occupied by darpg.armor.CopperBoots@17de8244 while adding darpg.armor.RubyBoots@2fac9a62
2014-03-20 18:48:45 [iNFO] [fml.ItemTracker] The mod Da` RPG is overwriting existing item at 259 (darpg.armor.CopperBoots from Da` RPG) with darpg.armor.RubyBoots
2014-03-20 18:48:45 [sEVERE] [ForgeModLoader] Found anonymous item of class darpg.armor.RubyHelmet with ID 256 owned by mod Da` RPG, this item will NOT survive a 1.7 upgrade!
2014-03-20 18:48:45 [sEVERE] [ForgeModLoader] Found anonymous item of class darpg.armor.RubyChestplate with ID 257 owned by mod Da` RPG, this item will NOT survive a 1.7 upgrade!
2014-03-20 18:48:45 [sEVERE] [ForgeModLoader] Found anonymous item of class darpg.armor.RubyLeggings with ID 258 owned by mod Da` RPG, this item will NOT survive a 1.7 upgrade!
2014-03-20 18:48:45 [sEVERE] [ForgeModLoader] Found anonymous item of class darpg.armor.RubyBoots with ID 259 owned by mod Da` RPG, this item will NOT survive a 1.7 upgrade!
2014-03-20 18:48:45 [sEVERE] [ForgeModLoader] Found anonymous item of class darpg.item.RubySword with ID 859 owned by mod Da` RPG, this item will NOT survive a 1.7 upgrade!
2014-03-20 18:48:45 [sEVERE] [ForgeModLoader] Found anonymous item of class darpg.item.EmeraldTools$EmeraldPickaxe with ID 5256 owned by mod Da` RPG, this item will NOT survive a 1.7 upgrade!
2014-03-20 18:48:45 [sEVERE] [ForgeModLoader] Found anonymous item of class darpg.item.EmeraldTools$EmeraldAxe with ID 5257 owned by mod Da` RPG, this item will NOT survive a 1.7 upgrade!
2014-03-20 18:48:45 [sEVERE] [ForgeModLoader] Found anonymous item of class darpg.item.SilverIngot with ID 5260 owned by mod Da` RPG, this item will NOT survive a 1.7 upgrade!
2014-03-20 18:48:45 [sEVERE] [ForgeModLoader] Found anonymous item of class darpg.item.CopperIngot with ID 5261 owned by mod Da` RPG, this item will NOT survive a 1.7 upgrade!
2014-03-20 18:48:45 [sEVERE] [ForgeModLoader] Found anonymous item of class darpg.item.FoolsEmerald with ID 5262 owned by mod Da` RPG, this item will NOT survive a 1.7 upgrade!
2014-03-20 18:48:46 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/blocks/silver_ore.png
2014-03-20 18:48:47 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/emerald_pickaxe.png
2014-03-20 18:48:47 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/ruby_chestplate.png
2014-03-20 18:48:47 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/ruby_helmet.png
2014-03-20 18:48:47 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/ruby_leggings.png
2014-03-20 18:48:47 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/emerald_axe.png
2014-03-20 18:48:47 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/ruby_boots.png
2014-03-20 18:48:47 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/silver_ingot.png
2014-03-20 18:48:47 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/copper_ingot.png
2014-03-20 18:48:48 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
2014-03-20 18:48:48 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well
2014-03-20 18:48:48 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well
2014-03-20 18:48:48 [WARNING] [Da` RPG] Mod Da` RPG is missing a pack.mcmeta file, things may not work well
2014-03-20 18:48:48 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Da` RPG
2014-03-20 18:48:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/emerald_pickaxe.png
2014-03-20 18:48:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/ruby_chestplate.png
2014-03-20 18:48:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/ruby_helmet.png
2014-03-20 18:48:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/ruby_leggings.png
2014-03-20 18:48:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/emerald_axe.png
2014-03-20 18:48:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/ruby_boots.png
2014-03-20 18:48:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/silver_ingot.png
2014-03-20 18:48:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/items/copper_ingot.png
2014-03-20 18:48:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: main:textures/blocks/silver_ore.png
2014-03-20 18:48:49 [iNFO] [sTDOUT] 
2014-03-20 18:48:49 [iNFO] [sTDOUT] Starting up SoundSystem...
2014-03-20 18:48:49 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2014-03-20 18:48:49 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2014-03-20 18:48:49 [iNFO] [sTDOUT] OpenAL initialized.
2014-03-20 18:48:49 [iNFO] [sTDOUT] 
2014-03-20 18:48:50 [sEVERE] [Minecraft-Client] Realms: Server not available!
2014-03-20 18:48:54 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.4
2014-03-20 18:48:54 [iNFO] [Minecraft-Server] Generating keypair
2014-03-20 18:48:55 [iNFO] [ForgeModLoader] Loading dimension 0 (Medieval Land Fun Time World) (net.minecraft.server.integrated.IntegratedServer@168886d4)
2014-03-20 18:48:55 [iNFO] [ForgeModLoader] Loading dimension 1 (Medieval Land Fun Time World) (net.minecraft.server.integrated.IntegratedServer@168886d4)
2014-03-20 18:48:55 [iNFO] [ForgeModLoader] Loading dimension -1 (Medieval Land Fun Time World) (net.minecraft.server.integrated.IntegratedServer@168886d4)
2014-03-20 18:48:55 [iNFO] [Minecraft-Server] Preparing start region for level 0
2014-03-20 18:48:56 [iNFO] [Minecraft-Server] Preparing spawn area: 8%
2014-03-20 18:48:58 [iNFO] [sTDOUT] loading single player
2014-03-20 18:48:58 [iNFO] [Minecraft-Server] Player359[/127.0.0.1:0] logged in with entity id 320 at (92.36053947632247, 53.06745760878544, 255.2550353204866)
2014-03-20 18:48:58 [iNFO] [Minecraft-Server] Player359 joined the game
2014-03-20 18:48:58 [iNFO] [sTDOUT] Setting up custom skins
2014-03-20 18:49:13 [iNFO] [Minecraft-Server] Saving and pausing game...
2014-03-20 18:49:13 [iNFO] [Minecraft-Server] Saving chunks for level 'Medieval Land Fun Time World'/Overworld
2014-03-20 18:49:13 [iNFO] [Minecraft-Server] Saving chunks for level 'Medieval Land Fun Time World'/Nether
2014-03-20 18:49:13 [iNFO] [Minecraft-Server] Saving chunks for level 'Medieval Land Fun Time World'/The End
2014-03-20 18:49:13 [iNFO] [Minecraft-Server] Player359 lost connection: disconnect.quitting
2014-03-20 18:49:13 [iNFO] [Minecraft-Server] Player359 left the game
2014-03-20 18:49:14 [iNFO] [Minecraft-Server] Stopping singleplayer server as player logged out
2014-03-20 18:49:14 [iNFO] [Minecraft-Server] Stopping server
2014-03-20 18:49:14 [iNFO] [Minecraft-Server] Saving players
2014-03-20 18:49:14 [iNFO] [Minecraft-Server] Saving worlds
2014-03-20 18:49:14 [iNFO] [Minecraft-Server] Saving chunks for level 'Medieval Land Fun Time World'/Overworld
2014-03-20 18:49:14 [iNFO] [Minecraft-Server] Saving chunks for level 'Medieval Land Fun Time World'/Nether
2014-03-20 18:49:14 [iNFO] [Minecraft-Server] Saving chunks for level 'Medieval Land Fun Time World'/The End
2014-03-20 18:49:16 [iNFO] [ForgeModLoader] Unloading dimension 0
2014-03-20 18:49:16 [iNFO] [ForgeModLoader] Unloading dimension -1
2014-03-20 18:49:16 [iNFO] [ForgeModLoader] Unloading dimension 1
2014-03-20 18:49:17 [iNFO] [Minecraft-Client] Stopping!
2014-03-20 18:49:17 [iNFO] [sTDOUT] 
2014-03-20 18:49:17 [iNFO] [sTDOUT] SoundSystem shutting down...
2014-03-20 18:49:17 [iNFO] [sTDOUT]     Author: Paul Lamb, www.paulscode.com
2014-03-20 18:49:17 [iNFO] [sTDOUT] 

I am Bobblacksmith and I approve this message!

Link to comment
Share on other sites

Well, to me it looks like your itemID's did not get set to the proper values, but you didn't include that code. Sorry, I cannot help you without knowing how that codes works (or in this case doesn't work.)

Link to comment
Share on other sites

As coolAlias said, your item IDs are conflicting with vanilla items, As I saw in the console error. You might want to move the IDs up to around 1500 to start off, so then the vanilla items won't override them. (Also, this might just be in legacy, but I didn't see a public static in front of those item statements.)

//Try defining the ItemID in this statement
public static Item ExampleHelmet = new ArmourSetExample(1500, ArmourSetExample, 0,0, "Example").setUnlocalizedName("ExampleHelmet");
Also use public static Item, or block in front.

Link to comment
Share on other sites

Ok, here is the ItemID class...

 

package darpg.item;

public class ItemID {

//Armor ID's

//Emerald

public static final int emeraldHID = 16000; 
public static final int emeraldCID = 16001;
public static final int emeraldLID = 16002;
public static final int emeraldBID = 16003;

//Copper

public static final int copperHID = 16004;
public static final int copperCID = 16005;
public static final int copperLID = 16006;
public static final int copperBID = 16007;

//Ruby

public static final int rubyHID = 16008;
public static final int rubyCID = 16009;
public static final int rubyLID = 16010;
public static final int rubyBID = 16011;

//Tools

//Emerald

public static final int emeraldPAID = 5000;
public static final int emeraldAID = 5001;
public static final int emeraldSID = 5002;
public static final int emeraldHEID = 5003;

//Ruby

public static final int rubySID = 5007;

//Items

public static final int SIID = 5004;
public static final int CIID = 5005;
public static final int FEID = 5006;

}

 

I do have some other items that may also be conflicting, not sure though.

I am Bobblacksmith and I approve this message!

Link to comment
Share on other sites

Is there any reason that you have a separate class for every single piece of armor in every single armor set? If you look at vanilla code or even Millenium3's bit of example code there, you can see that you can have all of your armors and pieces using the exact same class and just change the material...

 

As for your IDs... well, you are certainly creating them, though why you would do it that way is beyond me since you make them all final there is no point; anyway, you are using them when you call your armor constructors, but something is happening in there that is not passing those IDs back to the original Item super constructor.

 

Show us one of your many armor classes, if you wouldn't mind.

Link to comment
Share on other sites

It looks like your code is correct (which is not true, of course). The only guesses I can make is you have more than one ItemID class in different packages, and you import the wrong one.

Link to comment
Share on other sites

 package darpg.armor;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.Entity;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;

public class CopperBoots extends ItemArmor {

public CopperBoots(int par1, EnumArmorMaterial par2EnumArmorMaterial,
		int par3, int par4) {
	super(par4, par2EnumArmorMaterial, par4, par4);

}
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister reg) {
	this.itemIcon = reg.registerIcon("main:copper_boots");
}

public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer){
	return "main:textures/models/armor/copperA_layer_1.png";
}
} 

 

That is my copper boots armor class.

I am Bobblacksmith and I approve this message!

Link to comment
Share on other sites

 package darpg.armor;
public CopperBoots(int par1, EnumArmorMaterial par2EnumArmorMaterial,
		int par3, int par4) {
	super(par4, par2EnumArmorMaterial, par4, par4);

I don't know about you, but to me it looks like you are using par4 twice and ignoring par3 in your super() call here. That might change some important information when the class is constructed. An ID perhaps?

Link to comment
Share on other sites

 package darpg.armor;
public CopperBoots(int par1, EnumArmorMaterial par2EnumArmorMaterial,
		int par3, int par4) {
	super(par4, par2EnumArmorMaterial, par4, par4);

I don't know about you, but to me it looks like you are using par4 twice and ignoring par3 in your super() call here. That might change some important information when the class is constructed. An ID perhaps?

Sequituri is 100% correct here, but it's even worse: you used par4 THREE times, as the ID, the armor type, and the render index. Oops.

 

super(par4, par2EnumArmorMaterial, par4, par4);

// should be (par1, par2EnumArmorMaterial, par3, par4)

Link to comment
Share on other sites

Is there any reason that you have a separate class for every single piece of armor in every single armor set?

 

That has to be the most un OOP code I have ever seen.... Not only can you have a full set of armour inside the file, you can have every piece of armour that you make (not only the one set) inside

Former developer for DivineRPG, Pixelmon and now the maker of Essence of the Gods

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.