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've been coding Spigot plugins for years and am now trying out modding with forge. The problem is : the only official documentation I could find is https://docs.minecraftforge.net/ which clearly doesn't describe every class and every function. Couldn't find JavaDoc to import either, so how do I know how I should use constructors or methods when the parameter names are p_11425_ or stuff like that ? I know there are lots of tutorials online but that's not how I learn my way into coding in general, and especially in Minecraft. Plus these people making the tutorials must've learnt the methods somewhere.

 

As I said, I'm new to this, so I'm sorry if there are obvious answers which I didn't see, but trust me I've searched the Internet (the wrong way perhaps).

These are some good resources:

https://www.mcjty.eu/docs/intro
https://forge.gemwire.uk/wiki/Main_Page

Mostly people learn by looking at vanilla code, I think. The parameter names are a bit weird, but they're usually accompanied by a type - e.g., int p_282557_ (so we know this parameter is an integer) - when you trace the parameter back to where it is first declared in a method/class.

I'm the CEO of breaking things 

  • Author

So for example if I look at the vanilla code for the HUDs (which is roughly what I want to do), I'll be able to create one myself ? (With the help of the wiki and the forge documentation for the mod, of course) ?

in theory, yes, you might be able to.

in reality, if you don't start with a simple mod first, you will give up completely.

you have a vision. i get it. i'm not saying forget it - just shelve it. write your plan in a text document and shelve it for a few days. now come up with something you can do in a few hours (it will take no less than a day for a first one but never mind that).

isn't there something small that you wanted to change? some tweak? for example detect a cow being hit and make all nearby cows freak out, not just that one. or detect a sheep being killed and if the perpetrator is a wolf, remove meat from the list of drops... whatever. something simple.

do not make big things until you make one tiny 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.