Jump to content

Recommended Posts

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

Posted

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.

  • Like 1

I'm the CEO of breaking things 

Posted

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

Posted

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

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