Posted January 17, 20169 yr I keep getting this error with my mod im making The object net.minecraft.item.Item@760e8cc0 has been registered twice for the same name mofood:red_flavorings Please help me!
January 17, 20169 yr Author Here is the full log [18:11:35] [main/INFO] [GradleStart]: Extra: [] [18:11:35] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --accessToken, {REDACTED}, --assetIndex, 1.8, --assetsDir, C:/Users/Evan/.gradle/caches/minecraft/assets, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [18:11:35] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [18:11:35] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [18:11:35] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [18:11:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [18:11:35] [main/INFO] [FML]: Forge Mod Loader version 8.99.205.1502 for Minecraft 1.8 loading [18:11:35] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_79, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jdk1.7.0_79\jre [18:11:35] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [18:11:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [18:11:35] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [18:11:35] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [18:11:35] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [18:11:35] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [18:11:35] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [18:11:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [18:11:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [18:11:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [18:11:36] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [18:11:41] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [18:11:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [18:11:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [18:11:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [18:11:42] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [18:11:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [18:11:42] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [18:11:44] [Client thread/INFO]: Setting user: Player609 [18:11:49] [Client thread/INFO]: LWJGL Version: 2.9.1 [18:11:50] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:235]: ---- Minecraft Crash Report ---- // There are four lights! Time: 1/17/16 6:11 PM Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.7.0_79, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 735837416 bytes (701 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 10.18.15.4256' Renderer: 'Intel® HD Graphics 4200' [18:11:50] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [18:11:50] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1502 Initialized [18:11:50] [Client thread/INFO] [FML]: Replaced 204 ore recipies [18:11:50] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [18:11:51] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [18:11:51] [Client thread/INFO] [FML]: Searching C:\Users\Evan\Desktop\food plus2\eclipse\mods for mods [18:11:54] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [18:11:55] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mofood] at CLIENT [18:11:55] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mofood] at SERVER [18:11:55] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mo Food Mod [18:11:56] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [18:11:56] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [18:11:56] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [18:11:56] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [18:11:56] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [18:11:56] [Client thread/INFO] [FML]: Applying holder lookups [18:11:56] [Client thread/INFO] [FML]: Holder lookups applied [18:11:56] [Client thread/INFO] [FML]: Injecting itemstacks [18:11:56] [Client thread/INFO] [FML]: Itemstack injection complete [18:11:56] [sound Library Loader/INFO]: Starting up SoundSystem... [18:11:57] [Thread-9/INFO]: Initializing LWJGL OpenAL [18:11:57] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:11:57] [Thread-9/INFO]: OpenAL initialized. [18:11:57] [sound Library Loader/INFO]: Sound engine started [18:12:03] [Client thread/INFO] [FML]: Max texture size: 8192 [18:12:03] [Client thread/INFO]: Created: 16x16 textures-atlas [18:12:05] [Client thread/WARN] [FML]: **************************************** [18:12:05] [Client thread/WARN] [FML]: * The object net.minecraft.item.Item@760e8cc0 has been registered twice for the same name mofood:red_flavorings. [18:12:05] [Client thread/WARN] [FML]: * at net.minecraftforge.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:429) [18:12:05] [Client thread/WARN] [FML]: * at net.minecraftforge.fml.common.registry.GameData.registerItem(GameData.java:782) [18:12:05] [Client thread/WARN] [FML]: * at net.minecraftforge.fml.common.registry.GameData.registerItem(GameData.java:745) [18:12:05] [Client thread/WARN] [FML]: * at net.minecraftforge.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149) [18:12:05] [Client thread/WARN] [FML]: * at net.minecraftforge.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137) [18:12:05] [Client thread/WARN] [FML]: * at com.chevy.MoFood.init.ModItems.register(ModItems.java:20)... [18:12:05] [Client thread/WARN] [FML]: **************************************** [18:12:05] [Client thread/INFO] [FML]: Injecting itemstacks [18:12:05] [Client thread/INFO] [FML]: Itemstack injection complete [18:12:05] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [18:12:05] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mo Food Mod [18:12:05] [Client thread/INFO]: SoundSystem shutting down... [18:12:05] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [18:12:05] [sound Library Loader/INFO]: Starting up SoundSystem... [18:12:05] [Thread-11/INFO]: Initializing LWJGL OpenAL [18:12:05] [Thread-11/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:12:05] [Thread-11/INFO]: OpenAL initialized. [18:12:06] [sound Library Loader/INFO]: Sound engine started [18:12:09] [Client thread/INFO] [FML]: Max texture size: 8192 [18:12:10] [Client thread/INFO]: Created: 512x512 textures-atlas [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found. [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: ================================================== [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: DOMAIN minecraft [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------------------------------- [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: domain minecraft is missing 1 texture [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: domain minecraft has 3 locations: [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: mod FML resources at C:\Users\Evan\.gradle\caches\minecraft\net\minecraftforge\forge\1.8-11.14.3.1502\snapshot\20141130\forgeSrc-1.8-11.14.3.1502.jar [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: mod Forge resources at C:\Users\Evan\.gradle\caches\minecraft\net\minecraftforge\forge\1.8-11.14.3.1502\snapshot\20141130\forgeSrc-1.8-11.14.3.1502.jar [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: ------------------------- [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: The missing resources for domain minecraft are: [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/red_flavoring.png [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: ------------------------- [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: No other errors exist for domain minecraft [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: ================================================== [18:12:11] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
January 18, 20169 yr The error says you registered it twice. So figure out where your registration and see where that code is called from. It should be easy to find out when it is getting registered twice. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
January 18, 20169 yr Author MoFoodMod.java package com.chevy.MoFood; import com.chevy.MoFood.init.ModItems; import com.chevy.MoFood.proxy.CommonProxy; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION) public class MoFoodMod { @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { ModItems.Init(); ModItems.register(); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRenders(); } @EventHandler public void postInt(FMLPostInitializationEvent event) { } } CommonProxy.java package com.chevy.MoFood.proxy; public class CommonProxy { public void registerRenders() { } } ClientProxy.java package com.chevy.MoFood.proxy; import com.chevy.MoFood.init.ModItems; public class ClientProxy extends CommonProxy{ @Override public void registerRenders() { ModItems.register(); } } Reference.java package com.chevy.MoFood; public class Reference { public static final String MOD_ID = "mofood"; public static final String MOD_NAME = "Mo Food Mod"; public static final String VERSION = "1.0"; public static final String CLIENT_PROXY_CLASS = "com.chevy.MoFood.proxy.ClientProxy"; public static final String SERVER_PROXY_CLASS = "com.chevy.MoFood.proxy.CommonProxy"; } ModItems.java package com.chevy.MoFood.init; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.fml.common.registry.GameRegistry; import com.chevy.MoFood.Reference; public class ModItems { public static Item red_flavoring; public static void Init() { red_flavoring = new Item().setUnlocalizedName("red_flavoring"); } public static void register() { GameRegistry.registerItem(red_flavoring, red_flavoring.getUnlocalizedName().substring(5)); } public static void registerRenders() { registerRenders(red_flavoring); } public static void registerRenders(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory")); } }
January 18, 20169 yr Author red_flavoring.json { "parent": "builtin/generated", "textures": { "layer0": "items/red_flavoring" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } }
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.