I just spent all day looking for a tutorial, HOW TO MAKE A CUSTOM HUNGER BAR!!!!!
How would I make this.... I made the CustomhungerStats class and the CustomfoodtypeitemClass
the foodtypeitem is what fills the new hungerLevel. the customhungerStats is what replaces and manages the logic of the new meter.
I dont have them 100 percent done though, considering I dont know where to addStats.... without modifying the player class
then there is GUI stuff like rendering the new bar which is a whole other mess...
You change the texture indicator or texture map numbers in the block class for the furnace to your textures and add the string for your texture sheet....
Hey everyone sorry for not replying I forgot to subscribe/follow this thread and as a result it was not sending me email notifications. As far as tutorials go I have several tutorials I plan to release over the course of the next few days.
The first tutorial is making mobs drop custom Items. The second tutorials is basic items and then from there I will be doing the complete toolset. After that I will be adding a music record tutorial. I am also working on a bigger mod project so I will likely be documenting a lot of the methods I use and turn them into tutorials for everyone. I will also be documenting how to use certain effects. Some examples of these effects can be seen in my more swords mod such as setting entities on fire, edible tools, potion effect applied to mob when hit, Potion effect applied to self when blocking. How to make things shoot fireballs, How to make items place blocks And also how to make items send mobs flying up into the air. As I said there is a lot I would like to do.
Keep in mind that the tutorials are being written by microjunk asyncronous and jcm so they will also be writing some tutorials. The tutorials mentioned above are my own goals for this month. Also if enough people ask I will make a tutorial on my Configuration system and how it works.
Since I haven't found any tutorials on this by far, I'm wondering if you could make a tutorial on it. I have 2 requests of what I want to do. First, I want to create a multi-block structure (Like the Infusion Altar in Thaumcraft 3). Second, I want to know how to create a model for the item you are holding (Ex: The Portal Gun/Gravity Gun). Thank You for your time and I hope you can do these tutorials.
Rollback Post to RevisionRollBack
A double resolution texture pack that stays faithful to the original Minecraft textures.
Since I haven't found any tutorials on this by far, I'm wondering if you could make a tutorial on it. I have 2 requests of what I want to do. First, I want to create a multi-block structure (Like the Infusion Altar in Thaumcraft 3). Second, I want to know how to create a model for the item you are holding (Ex: The Portal Gun/Gravity Gun). Thank You for your time and I hope you can do these tutorials.
Hey DarkHax, I've seen your face all over the MC Forums, and I was wondering if you could help me with something. As you know, in 1.4.6, the package system was revamped, with everything now having its own package. Uuuhhhh, so, I made a Forge mod, and one of the classes I made was using the FML, and since net.minecraft.item.Item.java had some methods set to protected, I decided to just move that class to the net.minecraft.item package. Now that I've reobfuscated, I'm getting tons of errors; where do I put it?? Please reply quickly.
Hey DarkHax, I've seen your face all over the MC Forums, and I was wondering if you could help me with something. As you know, in 1.4.6, the package system was revamped, with everything now having its own package. Uuuhhhh, so, I made a Forge mod, and one of the classes I made was using the FML, and since net.minecraft.item.Item.java had some methods set to protected, I decided to just move that class to the net.minecraft.item package. Now that I've reobfuscated, I'm getting tons of errors; where do I put it?? Please reply quickly.
P.S. Please excuse me for my noobness...
1, it would help if you included those errors.
2, You don't need to edit base classes for anything. Forge offers a billion ways to work around base class edits.
1, it would help if you included those errors.
2, You don't need to edit base classes for anything. Forge offers a billion ways to work around base class edits.
I didn't edit any base classes, I just put the mod_MPARecords inside the item package...
Here's the crash log.
---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3
Time: 3/11/13 9:23 PM
Description: Failed to start game
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: net.minecraft.item.mod_MPARecords
at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:485)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161)
at net.minecraft.client.Minecraft.a(Minecraft.java:410)
at asq.a(SourceFile:56)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: net.minecraft.item.mod_MPARecords
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:185)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadBaseModClass(ModClassLoader.java:87)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:489)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:479)
... 5 more
Caused by: java.lang.NullPointerException
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:174)
... 33 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.7
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 359015712 bytes (342 MB) / 514523136 bytes (490 MB) up to 954466304 bytes (910 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.26 FML v4.7.4.520 Minecraft Forge 6.6.0.497 5 mods loaded, 5 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge [Minecraft Forge] (coremods) Unloaded->Constructed
Infinite [Infinite] (minecraft.jar) Unloaded->Constructed
mod_MPARecords [mod_MPARecords] (minecraft.jar) Unloaded->Errored
LWJGL: 2.4.2
OpenGL: RADEON X850 Series GL version 2.1.8545 Release, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
You see, I put the mod_MPARecords.class stright into the minecraft.jar, no folders/subdirectories...
I didn't edit any base classes, I just put the mod_MPARecords inside the item package...
Here's the crash log.
---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3
Time: 3/11/13 9:23 PM
Description: Failed to start game
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: net.minecraft.item.mod_MPARecords
at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:485)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161)
at net.minecraft.client.Minecraft.a(Minecraft.java:410)
at asq.a(SourceFile:56)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: net.minecraft.item.mod_MPARecords
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:185)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadBaseModClass(ModClassLoader.java:87)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:489)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:479)
... 5 more
Caused by: java.lang.NullPointerException
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:174)
... 33 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.7
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 359015712 bytes (342 MB) / 514523136 bytes (490 MB) up to 954466304 bytes (910 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.26 FML v4.7.4.520 Minecraft Forge 6.6.0.497 5 mods loaded, 5 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge [Minecraft Forge] (coremods) Unloaded->Constructed
Infinite [Infinite] (minecraft.jar) Unloaded->Constructed
mod_MPARecords [mod_MPARecords] (minecraft.jar) Unloaded->Errored
LWJGL: 2.4.2
OpenGL: RADEON X850 Series GL version 2.1.8545 Release, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
You see, I put the mod_MPARecords.class stright into the minecraft.jar, no folders/subdirectories...
Ok well, with forge you shouldn't be putting anything inside the pre existing packages and use your own packages (This way you can just drop the zip in the mods folder) Regardless, your mod is looking for the class and it is not finding it. Are you sure it is in the net/minecraft/item folder?
There is no net/minecraft/item folder in the minecraft.jar! D:
P.S. I actually did edit some base classes, but that's irrelevant...
Im going to head off to bed now however I will give you an overview.
This is a stacktrace.
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: net.minecraft.item.mod_MPARecords
at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:485)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161)
at net.minecraft.client.Minecraft.a(Minecraft.java:410)
at asq.a(SourceFile:56)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: net.minecraft.item.mod_MPARecords
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:185)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadBaseModClass(ModClassLoader.java:87)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:489)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:479)
... 5 more
Caused by: java.lang.NullPointerException
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:174)
... 33 more
The stacktrace never lies and shows exactly what is going on. Normally in the first line.
Im going to head off to bed now however I will give you an overview.
This is a stacktrace.
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: net.minecraft.item.mod_MPARecords
at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:485)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161)
at net.minecraft.client.Minecraft.a(Minecraft.java:410)
at asq.a(SourceFile:56)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: net.minecraft.item.mod_MPARecords
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:185)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadBaseModClass(ModClassLoader.java:87)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:489)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:479)
... 5 more
Caused by: java.lang.NullPointerException
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:174)
... 33 more
The stacktrace never lies and shows exactly what is going on. Normally in the first line.
How would I make this.... I made the CustomhungerStats class and the CustomfoodtypeitemClass
the foodtypeitem is what fills the new hungerLevel. the customhungerStats is what replaces and manages the logic of the new meter.
I dont have them 100 percent done though, considering I dont know where to addStats.... without modifying the player class
then there is GUI stuff like rendering the new bar which is a whole other mess...
please help!
Sorry Dark, not stealing your thread.....
Here ya go dude, gui furnace here
Find out how I generate....coolAlias...world structure generation and rotation tool...
thanks for the help youre awesome but by anychance do u know how to give blocks top or sided textures?
Find out how I generate....coolAlias...world structure generation and rotation tool...
The first tutorial is making mobs drop custom Items. The second tutorials is basic items and then from there I will be doing the complete toolset. After that I will be adding a music record tutorial. I am also working on a bigger mod project so I will likely be documenting a lot of the methods I use and turn them into tutorials for everyone. I will also be documenting how to use certain effects. Some examples of these effects can be seen in my more swords mod such as setting entities on fire, edible tools, potion effect applied to mob when hit, Potion effect applied to self when blocking. How to make things shoot fireballs, How to make items place blocks And also how to make items send mobs flying up into the air. As I said there is a lot I would like to do.
Keep in mind that the tutorials are being written by microjunk asyncronous and jcm so they will also be writing some tutorials. The tutorials mentioned above are my own goals for this month. Also if enough people ask I will make a tutorial on my Configuration system and how it works.
Sorry for the random jumble of text above
Farewell everyone o/
A double resolution texture pack that stays faithful to the original Minecraft textures.
I will see what I can do.
Farewell everyone o/
P.S. Please excuse me for my noobness...
1, it would help if you included those errors.
2, You don't need to edit base classes for anything. Forge offers a billion ways to work around base class edits.
Farewell everyone o/
I didn't edit any base classes, I just put the mod_MPARecords inside the item package...
Here's the crash log.
Ok well, with forge you shouldn't be putting anything inside the pre existing packages and use your own packages (This way you can just drop the zip in the mods folder) Regardless, your mod is looking for the class and it is not finding it. Are you sure it is in the net/minecraft/item folder?
Farewell everyone o/
P.S. I actually did edit some base classes, but that's irrelevant...
Im going to head off to bed now however I will give you an overview.
This is a stacktrace.
The stacktrace never lies and shows exactly what is going on. Normally in the first line.
Note that your mod is looking for mod_MPARecords.class(or .java) in net/minecraft/item/
Farewell everyone o/
I saw that from the beginning; I was just wondering how to get it into the package...