Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[CREATING MODS] HELFULL'S TUTORIALS [1.2.5][FORGE]

Featured Replies

Posted

hey everyone,

 

Tutorials Twitter: @helfullsTutoria

 

i am going to show and explainyou how to create mods with MinecraftForge.

 

You need to get MCP and MinecraftForge. Installinstructions u can find here:

 

 

MCP

MinecraftForge

 

Once you got Forge you are able to create mods with it since Forge has his own ModLoader.

 

Your base file is the mod_XXX.java file normal it should look like this:

package net.minecraft.src;
import net.minecraft.src.forge.MinecraftForge;
public class mod_XXX extends BaseMod {
@Override
public String getVersion() {
return "YOUR MOD VERSION";
}

@Override
public void load() {

}
}

 

All sourcecodes can be found here: https://github.com/Helfull/MinecraftForge-Modding-Tutorial/

 

Difficulty

  :)Easy

  ;)Medium

  ???Hard

  :oAdvanced

List of Contents

:)Creating porperties file

:)Creating a Block

;)Creating a Block with metedata

:)Creating a Item - ​includes ITextureProvider

:)Creating Recipes

:)Creating a Tool

;)Creating item which takes damage when used in recipe //Coming coon

;) Creatinga Tree //Coming soon

 

 

topic at minecraftforum.net (always up to date)

 

greetz

helfull

Developing CocktailsMod :)

Ooo. I might learn a little something beyond ModLoader with these. It couldn't hurt to give these a whirl as I waiting for my next semester. I'll be sure to keep these pages bookmarked along with my other tutorials. :)

Check out my

Texture Packs Thread here on the Forge Forum. :)

Currently in the process of adding some mod support for JohnSmith Texture Pack.

width=105 height=12https://www.sugarsync.com/piv/D8135159_67366891_21351[/img]

 

width=209 height=19https://www.sugarsync.com/piv/D8135159_67366891_772852[/img]

  • Author

i add it when i understand the whole tree class from minecraft, because i dont want to add things i dont understand.

Developing CocktailsMod :)

Um, you should add these to the wiki. They're really good.

So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

  • Author

i will add it when i am done with the most, because i rewrite them for the wiki

Developing CocktailsMod :)

If it would be okay for me to make a request, I have been dealing with gui's and such, and have been having a hard time grasping how TileEntities work, containers, and all that jazz.  Would it be possible to come out with a tutorial on that?  I have the basics of dealing with them down, however it would be nice to have a clear tutorial on how they work and such.

 

Shout out to hotrods20 :P

  • 2 weeks later...

Hey, i tried your block tutorial and i did everything correctly but this pops up:

 

java.lang.IllegalArgumentException: Illegal object for naming null

at cpw.mods.fml.client.FMLClientHandler.getObjectName(FMLClientHandler.java:817)

at cpw.mods.fml.common.FMLCommonHandler.addNameForObject(FMLCommonHandler.java:469)

at net.minecraft.src.ModLoader.addName(ModLoader.java:142)

at net.minecraft.src.ModLoader.addName(ModLoader.java:130)

at net.minecraft.src.tutorial.mod_mymod.addNames(mod_mymod.java:28)

at net.minecraft.src.tutorial.mod_mymod.load(mod_mymod.java:19)

at cpw.mods.fml.common.modloader.ModLoaderModContainer.init(ModLoaderModContainer.java:356)

at cpw.mods.fml.common.Loader.modInit(Loader.java:273)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:628)

at cpw.mods.fml.client.FMLClientHandler.onLoadComplete(FMLClientHandler.java:223)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:429)

at net.minecraft.client.Minecraft.run(Minecraft.java:738)

at java.lang.Thread.run(Thread.java:680)

I did everything you di and made my own stuff and that didnt work, so i just copied everything you wrote into eclipse and then just edited names to my block names and it still didnt work. PLease Help, Im getting really frustrated because ive been all around the internet and this is the first legit one i saw but yea please help!!!!

That error means that in your mod_mymod.java file, on line 28, you are trying to assign a name to something that is null.  Make sure it is not null first.

  • Author

as OvermindDL1 already said, there is a NULL object where u try to name, it would be nice to see the code u used, it could be a rename misstake taht u misspelld it

Developing CocktailsMod :)

That would be nice. Then my plan for harvesting the power of lighting would work. (It's a kite launcher)

So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.