Jump to content

IDE Setup


KaedenCraft

Recommended Posts

Going to take the plunge and get into modding myself. Never done Java, but I have some coding experience in other similar languages. I want to develop for 1.15.2. But upon following an (admittedly outdated) 1.12.2 setup video for Eclipse, things aren't quite working right. Is there a link somebody could provide to a good setup guide for Eclipse and the Forge gradle script? I'm 95% sure the issue was with my gradle execution, as it's the one bit that I was 0% familiar with, and the videos mostly say "do this, do this" and never explain why, so no context to know where I went wrong. Please and thank you.

Link to comment
Share on other sites

5 minutes ago, KaedenCraft said:

I ran the eclipse task, but it doesn't seem to like the Mod() bit in the Main class of my mod, it's not sure which package to import. Again, this may simply be a difference between 1.15.2 and 1.12.2, but I wouldn't know.

net.minecraftforge.fml.common.Mod;

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.

Link to comment
Share on other sites

Nothing adds imports automatically, unless you're copying code from a place where it's already imported.

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.

Link to comment
Share on other sites

I apologize for being imprecise. In the tutorial video I watched, when the Main class didn't have the Mod package, it had a right click saying: "Do you want to import package net.minecraftforge.fml.common.Mod?" Mine never gave that option. It just asks to create a new package.

 

Here's what I see:

 

errors.png

 

Says it doesn't recognize the package "net".

Edited by KaedenCraft
Link to comment
Share on other sites

Well the @Mod annotation changed and no longer takes all those parameters.

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.

Link to comment
Share on other sites

44 minutes ago, KaedenCraft said:

How did you guys figure out the parameters for Mod changed?

We use our IDE and read the source code regarding the Mod annotation.

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.

 

 

Link to comment
Share on other sites

33 minutes ago, KaedenCraft said:

As somebody brand new to [...] Java generally,


Don't use modding to learn Java.

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.

Link to comment
Share on other sites

3 hours ago, KaedenCraft said:

Okay, so back to my original question: Is there any link anywhere to something more up-to-date? Text? Video? How did you guys figure out the parameters for Mod changed?

There are videos for 1.15.2 setup. I've tried it a few days with no prior Java experience and things seem working fine. Just go on youtube and search for "minecraft modding tutorial 1.15", you can't miss em. Knowing Eclipse from working with it some ~10 years ago I elected to try IntelliJ and I like it, for now. 

 

1 hour ago, Draco18s said:


Don't use modding to learn Java.

Oof ? Maybe development as a whole, but Java as a language? Why not?

 

1 hour ago, KaedenCraft said:

As somebody brand new to Forge specifically and Java generally, could you expand on that a little bit?

The videos essentially get you through the Getting Started in the documentation. You can also get more information in the README.txt indluded in the mdk.

Such as :

Quote

If you prefer to use IntelliJ:
1. Open IDEA, and import project.
2. Select your build.gradle file and have it import.
3. Run the following command: "gradlew genIntellijRuns" (./gradlew genIntellijRuns if you are on Mac/Linux)
4. Refresh the Gradle Project in IDEA if required.

Admittedly, following those instructions were more natural to me than following the videos.

Link to comment
Share on other sites

3 hours ago, Drumline18 said:

Oof ? Maybe development as a whole, but Java as a language? Why not?

Forge is a rather complicated API and will be unnecessarily confusing for people who are not familiar with Java. Learning Java through making a mod might be slower than the combined time of learning Java properly + making a mod.

 

5 hours ago, KaedenCraft said:

As somebody brand new to Forge specifically and Java generally, could you expand on that a little bit?

On my setup, I can view the source code of a class by pressing cmd and left click on the class name. Hotkeys like this varies depending on your setup, so it is recommended to get familiar with your specific IDE (i.e. read its manual).

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.

 

 

Link to comment
Share on other sites

16 hours ago, KaedenCraft said:

Going to take the plunge and get into modding myself. Never done Java, but I have some coding experience in other similar languages. I want to develop for 1.15.2. But upon following an (admittedly outdated) 1.12.2 setup video for Eclipse, things aren't quite working right. Is there a link somebody could provide to a good setup guide for Eclipse and the Forge gradle script? I'm 95% sure the issue was with my gradle execution, as it's the one bit that I was 0% familiar with, and the videos mostly say "do this, do this" and never explain why, so no context to know where I went wrong. Please and thank you.

https://cadiboo.github.io/tutorials/1.15.1/forge/1.0-gradle-configuration/

https://cadiboo.github.io/tutorials/1.15.1/forge/1.1-importing-project/

New in Modding? == Still learning!

Link to comment
Share on other sites

THANK YOU to those above who actually read my opening post and helped guide me in the right direction. Those who didn't read it, didn't post anything helpful, and basically said "git gud," you all must really be bored during the lockdown.

 

I will check out that documentation on cadiboo. Even a cursory glance at it shows it will likely be very helpful.

  • Like 1
Link to comment
Share on other sites

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.