This will be a very short tutorial.
To create your first mod, go to Eclipse, and click on File -> New… -> Java Project.
Add a name to your project, and then click next. You don’t need to set other settings. After clicking next, new UI will appear. Click on Projects tab up top, select Add…, and add the forge project to your mod dependency.
Now, delete the “src” source folder. You won’t need this, instead add another two: “src/main/java” and “src/main/resources”. The java source folder will be your code location, while the resources folder will be your assets location.
If you want to try and run Minecraft, click on the small black arrow beside the Run button, on the top toolbar, and select “Run Configurations…”. A window will appear, here create a new Configuration, in the Project box put in the project name, and in the Main Class box, put in “GradleStart”. You can now click on run and Minecraft will run!
That’s it, click finish, and you’re done! You can jump to actual coding!
where can i find the code location?
thanks
LikeLike
The minecraft source code location will be in the Forge project > referenced libraries > forgeSrcx.xx.xx.jar
LikeLike
How do I add the forge to my project?
LikeLike
Right click your mod’s project > properties > java build path > projects > add forge project there
LikeLiked by 1 person
Are the two folders that are created Source folders or regular folders?
LikeLike
source folders.
LikeLiked by 1 person
Thank you for the tutorials; very well done. To clarify for those with little or no Java experience, or those unfamiliar with the heinous Eclipse IDE, when you go to Run Configurations, choose ‘Java Application’.
LikeLike
Could you explain more in depth: Now, delete the “src” source folder. You won’t need this, instead add another two: “src/java” and “src/resources”
Where do I get those two folders and do I just delete the src folder that is in my new mod project?
LikeLike
Yes, you just delete the src folder, because you don’t need it.
Then, you click on New > Source Folder to make those two.
LikeLike
Didn’t see my first comment for some reason, sorry for posting twice.
LikeLike
If you post for the first time, it needs to be approved first! Don’t worry I still can read it.
LikeLike