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

Hello,

 

I wanted to ask if there is a tutorial to create a side mod (or sub mod, or addon or what ever it is called) of an existing mod.

I've searched with the search function of this board and with google but i can't find a tutorial.

I using the minecraft forge version 9.11.1.964 (as well as the mod developer).

 

Greets

Zodiak

You're going to need the decompiled class files and packages of the mod you want, and put them into your projects workspace.  Then you can make references to functions and items and such inside that mod, and it will compile.  After it's compiled, delete the compiled class files for that mod from the JAR.  There's probably a  way to exclude the files you don't need from the compilation, but I don't know it yet.

 

If you're adding support for a mod that you didn't write, say Buildcraft, (as opposed to creating a core mod that all your other mods require) then you're going to want to wrap everything you add that makes reference to Buildcraft in an "if" statement, which checks if Buildcraft is loaded.  Otherwise, Buildcraft will be a dependency, and your mod won't work without it.

  • Author

thanks a lot, that's really helpful.

is there a recommended decompiler?

i tried the decompiler "jd-gui" but it shows weird classes like "yc", "ye" and "ww"

  • 2 weeks later...
  • Author

You need to get the mod in a deobfuscated form (with MCP names) or use BON (Bearded Octo Nemesis, google it)

Seriously.

 

i tried, but it dont work:

java.io.FileNotFoundException: C:\Users\Zodiak\workspace\forge\mcp\conf\joined.srg (Das System kann die angegebene Datei nicht finden)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileReader.<init>(Unknown Source)
    at immibis.bon.mcp.SrgFile.<init>(SrgFile.java:18)
    at immibis.bon.mcp.MappingLoader_MCP.loadSRGMapping(MappingLoader_MCP.java:117)
    at immibis.bon.mcp.MappingLoader_MCP.<init>(MappingLoader_MCP.java:105)
    at immibis.bon.io.MappingFactory.registerMCPInstance(MappingFactory.java:32)
    at immibis.bon.gui.GuiMain$1.run(GuiMain.java:188)

 

i've installed MCP 8.11 as the tutorials says but i have no idea why the file is missing

  • Author

ok, i've found the files but if i deobfuscate the mod there are still weird classes like "yc" instead of "item"

did i something wrong? or did i have the wrong files? do i need the same forge version like the mod?

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.