Tutorial 1: Workspace Setup
So you want to start modding Minecraft? Awesome, you've come to the right place! The first thing you will need to do to mod Minecraft is download the Minecraft Forge MDK (Mod Development Kit) and Eclipse (an advanced text editor/Integrated Development Environment in which you can write your code). Let's start!
Cdrive in a place you are comfortable to code in. This will be the folder for your mod.
cmdinto the search bar in the start menu. Once opened, type
cdand then drag the extracted folder from your File Explorer into the command prompt window, which will copy the address in, and then press enter. This will navigate the directory for commands to be executed in, so that it sets our mod up in the correct folder.
gradlew setupDecompWorkspace. This will setup the workspace for us to do our programming in.
BUILD SUCCESSFUL, run the command
gradlew eclipse. This will set up the mod for our IDE of choice - Eclipse.
Fileat the top bar in Eclipse there should be a
Switch Workspacebutton. Hover over that, and then go to
Other...at the bottom of the menu it opens up.
You will open a window, which will have a workspace text box, and a
Browsebutton to the right of it. Click this button, and navigate to the folder where we set up our mod. Select the folder within there by the name of
eclipse. This will be our workspace.
The first setup of our mod is complete! If you try to navigate through the project you should now have in Eclipse, you will find a
Open this by double clicking, and you will be able to run it using the play button in a green circle in Eclipse's tool bar. If you go into the
button on the Minecraft menu after the game has loaded, it should display as
Example Mod. Isn't that great?
Obviously we will want to expand upon this in the future, changing the name, adding blocks, items, dimensions, etc., but this is a start. See you next time!