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.

Featured Replies

Posted

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.

The wiki.

 

I'm not the same guy, but is there a section on enchanting? I've searched but can't find anything. iI can't even seem to find stuff in the Javadoc. I mean, I could just modify the base files in Minecraft, but that kinda defeats the purpose of Forge.

I have not found a tutorial about enchantments either. I have no clue how to add them (with forge) either, but I myself don't need them. I can imagine it is annoying when you do need them, though.

In all fairness Forge doesn't have tutorials on EVERYTHING.

 

If you want to add enchanting to your mod, this is what I do and it works well:

 

Search the documentation. It may take awhile but eventually your will get to know forge better

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 :)

 

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.