Hello. I am having trouble creating myself an item. I have looked at multiple tutorials, and I am pretty much lost. When I open Minecraft, it does not appear in the food tab. I try to spawn it using /give [PLAYERNAME] [ITEMID] 1, but I receive an error. I probably made a stupid mistake somewhere, so I am going to post my code here...
I did that with SlimesExtended.class, so I didn't think that would be necessary for SlimesExtendedItems.class. Thanks.
I moved the code for the Slime Jelly into SlimesExtended.class, and now I crash when I attempt to playtest. Apparently, it has to do withlines of code not matching up to a certain line in Items.class.
I did that with SlimesExtended.class, so I didn't think that would be necessary for SlimesExtendedItems.class. Thanks.
I moved the code for the Slime Jelly into SlimesExtended.class, and now I crash when I attempt to playtest. Apparently, it has to do withlines of code not matching up to a certain line in Items.class.
Hello. I am having trouble creating myself an item. I have looked at multiple tutorials, and I am pretty much lost. When I open Minecraft, it does not appear in the food tab. I try to spawn it using /give [PLAYERNAME] [ITEMID] 1, but I receive an error. I probably made a stupid mistake somewhere, so I am going to post my code here...
Oh, and I have no errors. Please help me out.
Thanks, Pikadex.
The above has been solved. I now have a NEW problem...
I did that with SlimesExtended.class, so I didn't think that would be necessary for SlimesExtendedItems.class. Thanks.
I moved the code for the Slime Jelly into SlimesExtended.class, and now I crash when I attempt to playtest. Apparently, it has to do with lines of code not matching up to a certain line in Items.class.
These apparently don't match up to ^^that^^:
ItemJelly.class
SlimesExtended.class
Looks like I need help again. ._.
EDIT: Strangely, I don't have a crash report for it.
Everything is solved!
http://www.minecraftforge.net/wiki/Basic_Modding
I did that with SlimesExtended.class, so I didn't think that would be necessary for SlimesExtendedItems.class. Thanks.
I moved the code for the Slime Jelly into SlimesExtended.class, and now I crash when I attempt to playtest. Apparently, it has to do with lines of code not matching up to a certain line in Items.class.
These apparently don't match up to ^^that^^:
ItemJelly.class
SlimesExtended.class
Looks like I need help again. ._.
That can't be. The ID 81470 is used by no other item.
Well, I don't get a crash report. All I have is the Console...
2013-03-22 11:51:36 [INFO] [ForgeModLoader] Forge Mod Loader version 5.0.24.582 for Minecraft 1.5 loading
2013-03-22 11:51:36 [INFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2013-03-22 11:51:47 [INFO] [STDOUT] 229 recipes
2013-03-22 11:51:47 [INFO] [STDOUT] 27 achievements
2013-03-22 11:51:47 [INFO] [Minecraft-Client] Setting user: Player707
2013-03-22 11:51:47 [INFO] [STDOUT] (Session ID is -)
2013-03-22 11:51:47 [INFO] [STDERR] Client asked for parameter: server
2013-03-22 11:51:47 [INFO] [Minecraft-Client] LWJGL Version: 2.4.2
2013-03-22 11:51:49 [INFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-03-22 11:51:49 [INFO] [STDOUT] MinecraftForge v7.7.0.582 Initialized
2013-03-22 11:51:49 [INFO] [ForgeModLoader] MinecraftForge v7.7.0.582 Initialized
2013-03-22 11:51:49 [INFO] [STDOUT] Replaced 85 ore recipies
2013-03-22 11:51:49 [INFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-03-22 11:51:49 [INFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Windows\Desktop\Modding\Modding_Slime\jars\config\logging.properties
2013-03-22 11:51:49 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-03-22 11:51:49 [INFO] [ForgeModLoader] Searching C:\Users\Windows\Desktop\Modding\Modding_Slime\jars\mods for mods
2013-03-22 11:51:54 [INFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-03-22 11:51:54 [INFO] [mcp] Activating mod mcp
2013-03-22 11:51:54 [INFO] [FML] Activating mod FML
2013-03-22 11:51:54 [INFO] [Forge] Activating mod Forge
2013-03-22 11:51:54 [INFO] [SlimesExtended] Activating mod SlimesExtended
2013-03-22 11:51:54 [INFO] [STDERR] Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
2013-03-22 11:51:54 [INFO] [STDERR] at java.lang.Class.forName0(Native Method)
2013-03-22 11:51:54 [INFO] [STDERR] at java.lang.Class.forName(Unknown Source)
2013-03-22 11:51:54 [INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:446)
2013-03-22 11:51:54 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-03-22 11:51:54 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-03-22 11:51:54 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-03-22 11:51:54 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2013-03-22 11:51:54 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-03-22 11:51:54 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-03-22 11:51:54 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-03-22 11:51:54 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-03-22 11:51:54 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-03-22 11:51:54 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
2013-03-22 11:51:54 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-03-22 11:51:54 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-03-22 11:51:54 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-03-22 11:51:54 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2013-03-22 11:51:54 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-03-22 11:51:54 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-03-22 11:51:54 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-03-22 11:51:54 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-03-22 11:51:54 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-03-22 11:51:54 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
2013-03-22 11:51:54 [INFO] [STDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:494)
2013-03-22 11:51:54 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)
2013-03-22 11:51:54 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:406)
2013-03-22 11:51:54 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-03-22 11:51:54 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:728)
2013-03-22 11:51:54 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
2013-03-22 11:51:54 [INFO] [STDERR] Caused by: java.lang.ArrayIndexOutOfBoundsException: 81726
2013-03-22 11:51:54 [INFO] [STDERR] at net.minecraft.item.Item.<init>(Item.java:251)
2013-03-22 11:51:54 [INFO] [STDERR] at slimesextended.item.ItemJelly.<init>(ItemJelly.java:17)
2013-03-22 11:51:54 [INFO] [STDERR] at slimesextended.SlimesExtended.<clinit>(SlimesExtended.java:25)
2013-03-22 11:51:54 [INFO] [STDERR] ... 29 more
Your item id is too high
EDIT: Yep, that was it. Thanks for the help!