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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • My name is SARAH GOLDFISH, and I'm the CEO of a once-thriving tech startup. Today, I want to share a deeply personal story about how Tropical Delight Recovery saved my business and, quite possibly, my life. In the summer of 2023, my company was at its peak. We had just secured a major partnership, our products were flying off the shelves, and our future looked brighter than ever. However, in the midst of this success, I made a decision that nearly led to our downfall.  Like many others, I was drawn to the world of cryptocurrency. The promise of quick and significant returns was enticing, and I saw it as an opportunity to further bolster our financial standing. After some research, I invested a substantial amount of the company’s funds into a new and seemingly promising cryptocurrency. At first, it seemed like a great move. The value of our investment soared, and I was hailed as a visionary. But as quickly as our fortunes rose, they plummeted. The cryptocurrency market is notoriously volatile, and within weeks, the value of our investment tanked. What I had failed to see was that the currency was part of a sophisticated scam. The entire platform vanished overnight, and with it, our hard-earned money. The impact was immediate and devastating. Our financial cushion was obliterated, and we found ourselves unable to meet payroll or fulfill orders. Our partners began to lose faith, and the media caught wind of our predicament, amplifying our troubles. I was overwhelmed with guilt and fear. I had not only jeopardized the company but also the livelihoods of my employees. Despair set in, and I couldn't see a way out. In my darkest hour, a friend recommended Tropical Delight Recovery. Skeptical and with little hope, I reached out to them. From the first contact, their team was professional, understanding, and, most importantly, optimistic about our chances of recovery. They assured me that they had dealt with similar cases and had a strong track record of retrieving lost funds from fraudulent schemes. Tropical Delight Recovery took swift action. They meticulously traced the fraudulent transactions and employed their extensive network and legal expertise to go after the perpetrators. Their process was transparent, and they kept me informed at every step. It was a complex and arduous journey, but their determination never wavered. Weeks turned into months, and just when I was starting to lose hope, Tropical Delight Recovery delivered a miracle. They managed to recover a significant portion of our lost funds. The relief I felt was indescribable. This wasn't just about the money; it was about the restoration of hope and the possibility of a future for my company. With the recovered funds, we were able to stabilize our finances, reassure our partners, and regain the trust of our employees. It wasn't an instant fix, but it gave us the lifeline we needed to rebuild. Slowly but surely, we started to turn things around. Today, our company is back on track, stronger and more resilient than ever. I owe a debt of gratitude to Tropical Delight Recovery. They didn't just save my company; they saved me from a path of despair and hopelessness. Their professionalism, expertise, and unwavering commitment to their clients make them a beacon of hope for anyone caught in the web of financial fraud. If you find yourself in a situation like mine, don't hesitate to reach out to Tropical Delight Recovery. They are more than a recovery company; they are life-savers. You can reach out to them via: Email: tropicaldelightrecoveryhacker @ out look . Com.
Signal: + 16 14568 3873
Telegram: @ tropical delightrecovery hacker Website: h. t. t ps : // dev-tropicaldelightrecovery pantheonsite   .io
    • You have to set the java path in your start script
    • i tried that and i got rid of java to install the new one but it still says i have the old one and i cant get the new one because of the old one  
    • Я создал босса для Майнкрафт и когда он вызывается «Произошла непредвиденная ошибка при попытке выполнить эту команду» и в описании «Не удается вызвать ошибку "net.minecraft.world.entity.ai.attributes.attribute instance.m_22100_ (double)", потому что возвращаемое значение "net.minecraft.world.entity.monster.zombie.m_21051_ (net.minecraft.world.entity.ai.attributes.attribute)" имеет значение null. Я не до конца понимаю, в чем ошибка. Но, похоже, это связано с атрибутами. Помогите пожалуйста разобраться   Вот сам класс босса: package org.mymod.afraid; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.EquipmentSlot; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.ai.goal.*; import net.minecraft.world.entity.ai.goal.target.HurtByTargetGoal; import net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal; import net.minecraft.world.entity.monster.Zombie; import net.minecraft.world.entity.player.Player; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.damagesource.DamageSource; import net.minecraft.world.phys.Vec3; import net.minecraft.core.BlockPos; import net.minecraft.world.level.block.Blocks; import net.minecraft.world.entity.projectile.SmallFireball; import org.jetbrains.annotations.NotNull; public class AfraidBoss extends Zombie { private static final int MAX_HEALTH = 1000; private static final double ATTACK_DAMAGE = 10.0D; private static final double FOLLOW_RANGE = 50.0D; private static final double ATTACK_KNOCKBACK = 1.0D; private static final double MOVEMENT_SPEED = 0.25D; private static final int TELEPORT_RADIUS = 20; private static final int FIREBALL_COOLDOWN = 100; // 5 seconds (20 ticks per second) private static final int FIREBALL_COUNT = 3; private int fireballCooldown = 0; private int fireDashCooldown = 0; public AfraidBoss(EntityType<? extends Zombie> type, Level level) { super(type, level); this.setHealth(MAX_HEALTH); this.setItemSlot(EquipmentSlot.MAINHAND, new ItemStack(Items.DIAMOND_SWORD)); this.setItemSlot(EquipmentSlot.OFFHAND, new ItemStack(Items.DIAMOND_SWORD)); } @Override protected void registerGoals() { this.goalSelector.addGoal(1, new MeleeAttackGoal(this, 1.0, true)); this.goalSelector.addGoal(2, new MoveTowardsTargetGoal(this, 1.0, (float) TELEPORT_RADIUS)); this.goalSelector.addGoal(3, new LookAtPlayerGoal(this, Player.class, 8.0F)); this.goalSelector.addGoal(4, new WaterAvoidingRandomStrollGoal(this, 1.0)); this.goalSelector.addGoal(5, new HurtByTargetGoal(this)); this.targetSelector.addGoal(1, new NearestAttackableTargetGoal<>(this, Player.class, true)); } @Override public void aiStep() { super.aiStep(); if (this.getTarget() instanceof Player) { Player player = (Player) this.getTarget(); double distanceToPlayer = this.distanceToSqr(player); // Fire Dash ability if (distanceToPlayer <= TELEPORT_RADIUS * TELEPORT_RADIUS && fireDashCooldown == 0) { this.fireDash(player); fireDashCooldown = 200; // Cooldown for fire dash (10 seconds) } // Fireball attack if (fireballCooldown == 0) { this.shootFireballs(player); fireballCooldown = FIREBALL_COOLDOWN; // Cooldown for fireball attack (5 seconds) } // Decrement cooldowns if (fireDashCooldown > 0) { fireDashCooldown--; } if (fireballCooldown > 0) { fireballCooldown--; } } } private void fireDash(Player player) { Vec3 direction = player.position().subtract(this.position()).normalize(); Vec3 newPos = this.position().add(direction.scale(10)); this.teleportTo(newPos.x, newPos.y, newPos.z); this.createFireTrail(newPos); player.hurt(DamageSource.mobAttack(this), 20.0F); // Damage the player } private void createFireTrail(Vec3 position) { for (int x = -2; x <= 2; x++) { for (int z = -2; z <= 2; z++) { BlockPos firePos = new BlockPos(position.x + x, position.y, position.z + z); this.level.setBlock(firePos, Blocks.FIRE.defaultBlockState(), 11); } } } private void shootFireballs(Player player) { Vec3 direction = player.position().subtract(this.position()).normalize(); for (int i = 0; i < FIREBALL_COUNT; i++) { SmallFireball fireball = new SmallFireball(this.level, this, direction.x, direction.y, direction.z); fireball.setPos(this.getX() + direction.x, this.getY() + direction.y, this.getZ() + direction.z); this.level.addFreshEntity(fireball); } } public static AttributeSupplier.Builder createAttributes() { return Zombie.createMobAttributes() .add(Attributes.MAX_HEALTH, MAX_HEALTH) .add(Attributes.ATTACK_DAMAGE, ATTACK_DAMAGE) .add(Attributes.FOLLOW_RANGE, FOLLOW_RANGE) .add(Attributes.ATTACK_KNOCKBACK, ATTACK_KNOCKBACK) .add(Attributes.MOVEMENT_SPEED, MOVEMENT_SPEED); } @Override public boolean hurt(@NotNull DamageSource source, float amount) { boolean flag = super.hurt(source, amount); if (flag && source.getEntity() instanceof Player) { Player player = (Player) source.getEntity(); if (this.random.nextInt(10) == 0) { this.teleportAndAttack(player); } } return flag; } private void teleportAndAttack(Player player) { Vec3 randomPos = player.position().add((this.random.nextDouble() - 0.5) * 4, 0, (this.random.nextDouble() - 0.5) * 4); if (this.randomTeleport(randomPos.x, randomPos.y, randomPos.z, true)) { player.hurt(DamageSource.mobAttack(this), 10.0F); // Damage the player } } }  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.