Jump to content

Where can I learn how to make mods for minecraft with Forge?


Debels

Recommended Posts

Hi,

I know Java and tried searching on google and in the forums how to create a minecraft mod with forge and such, but I didn't have any luck :/

 

So what I want to ask is:

 

Where did you learn how to make mods for minecraft with forge?

 

Thanks for reading and waiting for your reply,

 

Debels.

Link to comment
Share on other sites

To add enchantments to tools, for example, is the same as it was in 1.3.2 I think. Here's the code:

 

    
public int getItemEnchantability()
    {
        return this.toolMaterial.getEnchantability();
    }

 

Quoting from the ItemTool.class: Return the enchantability factor of the item, most of the time is based on material.

 

I find Wuppy's tutorials very helpful: http://wuppy29.blogspot.nl/2012/10/forge-modding-142.html

He's re-writing all the tutorials to 1.4.5 at the moment.

 

With forge, its more of a guessing and experiment game. You have to look in the minecraft files to see how to code certain things, for example, if I want to add features to my custom grass block, I'd look in the BlockGrass.class

You will spend a lot of time huffing and puffing and getting frustrating when something doesn't work and you can't find a tutorial. Useful classes are:

 

GameRegistry.class

LanguageRegistry.class

 

They contain the code that goes in the main mod class. Hope this helps :)

 

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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