Jump to content

Recommended Posts

Posted

So I'm basically wondering if theres a site out there or maybe even a post on this site that gives a brief explanation of useful functions in the minecraft code that are helpful when making mods. quite vague I know but its sort of just for a general purpose more than a specific mod

Posted

Most of the methods you will use are documented with Javadoc (comments on the method), so you can get a good idea of how to use them by viewing the comments in the source.

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Posted
37 minutes ago, Shlackson said:

of useful functions in the minecraft code

Most of them. What do you want to do?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted (edited)

I have not found any site that breaks things down for you, here and there you might find mention of class X Y or Z that is fun/useful, tutorials here and there (which MOST of them alllll cover the same stuff, and then most of those are pretty terrible, especially the majority of the video ones)

A lot of the forge stuff is documented/commented, but from what I've seen a vast majority of the vanilla code is not.

Some of it is easy to understand, some of it feels like a spaghetti mess rabbit hole.

Best things to do:

- dig in and just read the code for stuff you're interested in

- google, google, google! And forums search on here

- Post questions when you can't find what you are looking for. This is the trickiest one probably, because you have to pose your question correctly, and sometimes you don't know you're asking the wrong question. Use as much detail as possible to get the best answer you can.

 

I'm not really making a mod, but I love to tinker, so I spend a lot of time messing with concepts as opposed to finish products, which sounds similar to your original question. Bad news is, you can't be lazy on this one, you have to actively mess with stuff/read code/etc, because most people on here are doing their own things, and while we enjoy helping, most appreciate when people at least try to find their own answers :)

Edited by Ugdhar
  • Like 1
Posted
On 4/23/2020 at 11:07 AM, Ugdhar said:

I have not found any site that breaks things down for you, here and there you might find mention of class X Y or Z that is fun/useful, tutorials here and there (which MOST of them alllll cover the same stuff, and then most of those are pretty terrible, especially the majority of the video ones)

A lot of the forge stuff is documented/commented, but from what I've seen a vast majority of the vanilla code is not.

Some of it is easy to understand, some of it feels like a spaghetti mess rabbit hole.

Best things to do:

- dig in and just read the code for stuff you're interested in

- google, google, google! And forums search on here

- Post questions when you can't find what you are looking for. This is the trickiest one probably, because you have to pose your question correctly, and sometimes you don't know you're asking the wrong question. Use as much detail as possible to get the best answer you can.

 

I'm not really making a mod, but I love to tinker, so I spend a lot of time messing with concepts as opposed to finish products, which sounds similar to your original question. Bad news is, you can't be lazy on this one, you have to actively mess with stuff/read code/etc, because most people on here are doing their own things, and while we enjoy helping, most appreciate when people at least try to find their own answers :)

Thanks for the advice man genuinely means alot. I'm going to Uni next year to study computer science and because of that I'm eager to learn java so I'm basically challenging myself to make things that actually can be considered in some way official or useful rather than simply learning how to say "Hello world" aha. So this advice was great! thanks!

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.