Weird error unlocalized name for custom item food

8 posts / 0 new
Last post
Offline
Last seen: 23 hours 52 min ago
Joined: 02/13/2016 - 00:47
Gems: 32
Weird error unlocalized name for custom item food

Ok i have this really odd error i cant figure out. Heres the log: 

---- Minecraft Crash Report ----
// There are four lights!
 
Time: 8/11/17 12:31 PM
Description: There was a severe problem during mod loading that has caused the game to fail
 
net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from testenvironmentmod (testenvironmentmod)
Caused by: java.lang.NoSuchMethodError: mod.mcreator.mcreator_corn$CustomItemFood.setUnlocalizedName(Ljava/lang/String;)Lnet/minecraft/item/Item;
at mod.mcreator.mcreator_corn$CustomItemFood.<init>(mcreator_corn.java:63)
at mod.mcreator.mcreator_corn.<clinit>(mcreator_corn.java:53)
at mod.mcreator.TestEnvironmentMod.<init>(TestEnvironmentMod.java:39)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at java.lang.Class.newInstance(Class.java:438)
at net.minecraftforge.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:193)
at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:612)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:252)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:230)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:147)
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:582)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:233)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:440)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:352)
at net.minecraft.client.main.Main.main(SourceFile:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
 
 
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
 
-- System Details --
Details:
Minecraft Version: 1.11.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 51663424 bytes (49 MB) / 268271616 bytes (255 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.38 Powered by Forge 13.20.0.2312 6 mods loaded, 6 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UC minecraft{1.11.2} [Minecraft] (minecraft.jar) 
UC mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
UC FML{8.0.99.99} [Forge Mod Loader] (forge-1.11.2-13.20.0.2312.jar) 
UC forge{13.20.0.2312} [Minecraft Forge] (forge-1.11.2-13.20.0.2312.jar) 
UC mercurius_updater{1.0} [mercurius_updater] (MercuriusUpdater-1.11.2.jar) 
UE testenvironmentmod{1.0} [testenvironmentmod] (Corn Mod.jar) 
Loaded coremods (and transformers): 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.2.12422 Compatibility Profile Context 13.152.0.0' Renderer: 'AMD Radeon HD 8370D'


MineCraftCreator14's picture
Offline
Last seen: 2 hours 42 min ago
Joined: 06/16/2017 - 21:03
Gems: 118
Caused by: java.lang

Caused by: java.lang.NoSuchMethodError: mod.mcreator.mcreator_corn$CustomItemFood.setUnlocalizedName​

​Try removing and adding it and see if that works. Did you code it?

Offline
Last seen: 23 hours 52 min ago
Joined: 02/13/2016 - 00:47
Gems: 32
I didnt code it but i'll try

I didnt code it but i'll try removing it and adding it. thanks!

Offline
Last seen: 23 hours 52 min ago
Joined: 02/13/2016 - 00:47
Gems: 32
It worked! Thanks so much!

It worked! Thanks so much!

Offline
Last seen: 23 hours 52 min ago
Joined: 02/13/2016 - 00:47
Gems: 32
But now the items in my

But now the items in my inventory all are pink/black squares.

Offline
Last seen: 4 hours 59 min ago
Joined: 08/02/2017 - 19:23
Gems: 65
RE:But now the items in my

@TheGoldenMinion Did you add textures to them?

Did you remove the texture from the resources ist?

Offline
Last seen: 4 hours 59 min ago
Joined: 08/02/2017 - 19:23
Gems: 65
list*

list*

Offline
Last seen: 23 hours 52 min ago
Joined: 02/13/2016 - 00:47
Gems: 32
Well after a alot of errors,

Well after a alot of errors, the log said "error: texture missing" or something like that and I reapplied the textures and it worked. Thanks anyway!