Weird error unlocalized name for custom item food

Started by TheGoldenMinion on

Topic category: Troubleshooting, bugs, and solutions

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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'
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Caused by: java.lang
Fri, 08/11/2017 - 17:57

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?

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I didnt code it but i'll try
Sat, 08/12/2017 - 13:01

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

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It worked! Thanks so much!
Sat, 08/12/2017 - 13:08

It worked! Thanks so much!

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But now the items in my
Sat, 08/12/2017 - 13:09

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

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:But now the items in my
Sat, 08/12/2017 - 18:02

@#4 Did you add textures to them?

Did you remove the texture from the resources ist?

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well after a alot of errors,
Sat, 08/12/2017 - 18:09

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!