Minecraft Blogs / Tutorial

How to create a minecraft 1.7.2 mod with forge Part 1 - Setup

  • 2,370 views, 1 today
  • 2
  • 0
  • 1
BBBlockyGamer's Avatar BBBlockyGamer
Level 26 : Expert Architect
32
Hello friends :D, if you have ever wondered I wonder how those awesome coder guys make their minecraft mods then you have come to the right place. This blog will cover the basic's of setting up a minecraft 1.7.2 mod and stuff YAY, my next one will cover some basic but very important stuff and also how to create basic blocks.




--JAVA AND INVIROMENT VARIBLES SETUP--

The first thing you want to do is make sure you have the latest Java JDK installed im using jre 7, if no head over to this website and download and install it. 

Allright now that you have got that done we need to fiddle around with some Inviroment Varibles, don't worry aslong as you follow these instructions you will not do any damage to your computer. 

1. Start up a new File Explorer window (im using windows 8 for win 7 users just click on start then right click on computer then properties), right click on properties you should see a window like this: 

undefined

2. Click on Advanced System Settings.

3. A small window should pop up, near the bottom will be a button saying Inviroment Variables, and guess what you click it!
 
4. Under User Varbibles for -your username- you should see a PATH varible, click on it and then click edit, another small window should pop up, scroll right to the end and when you get there your going to want to slap this on the end: ;C:\Program Files\Java\jre7\bin.

5. TESTING YAY! Now we to test whether or not you have followed my steps correctly :D. Press start + r and in the dialog box that opens type in cmd then press enter. IF you see something like this then you have done it correctly:

Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are u
sed
-classpath <path> Specify where to find user class files and annotati
on processors
-cp <path> Specify where to find user class files and annotati
on processors
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-proc:{none,only} Control whether annotation processing and/or compil
ation is done.
-processor <class1>[,<class2>,<class3>...]Names of the annotation processors t
o run; bypasses default discovery process
-processorpath <path> Specify where to find annotation processors
-d <directory> Specify where to place generated class files
-s <directory> Specify where to place generated source files
-implicit:{none,class} Specify whether or not to generate class files for
implicitly referenced files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release

-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-Akey[=value] Options to pass to annotation processors
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system

Are you seeing that, you are, good for you now we can get on with setting up eclipse with all the lovely modding stuff (forge) :D 




                                                  --ECLIPSE SETUP--

Allright now we are getting to the eclipse setup, head over to this website and download the latest Eclipse release. 

Place it anywhere on your computer and unzip it. NOW DON'T TOUCH IT we're going to need it later, but not just yet.

                                                                               --Minecraft Forge Setup--
Finaly we are getting to Minecraft Forge Setup, Minecraft Forge is a Modloader thingy for minecraft, and its what we will be using to make our mods. 

1. Head to the minecraft forge website and download the recomended minecraft forge src for 1.7.2 (when you go to the website the src link is the link called src). 

2. Create a folder anywhere on your computer (Documents, Desktop etc) and drag the newly downloaded .zip file into it, now you are going to need Win-RAR for this next bit, right click on the .zip file and press extract here.

3. Your folder should fill with lots of glorious files and folders.

4. Next hold down shift and right click, then click on Open new Command Prompt here.

5. A new command window should open. 

6. in the newly opened command window type gradlew.bat setupDevWorkspace  --refresh-dependencies eclipse, then press enter. 

7. now you wait.............

6. I think it took about 17 Minutes for me but it may be faster for you depending on you internet speed.

                                                                         --THE MOMENT OF TRUTH--
If you see this message pop up at the bottom of the command prompt window:
BUILD SUCCSESFUL




Total time: some amout of time

Then you have succsesfully installed forge 1.7.2.

The very last part of the setup is to open up eclipse, and change the workspace to: WHERE_EVER_YOU_INSTALLED_FORGE/eclipse. You can find this by: going into where ever you installed forge, opening up the eclipse folder, going to the top of  the exploper window, clicking on the address bar and copying and pasting that text into the eclipse dialog box. 

Then click okay or done I can't rember. 

You should see the eclipse ide and a Minecraft Folder in the package explorer like this (if your Minecraft folder doesn't have a drop down button (a small triangle) next to it then double click on it and it should load, if you get a error involving a missing .project file you probebly forgot to put eclipse at the end of that peice of code used to setup minecraft forge, to fix it follow the forge setup steps again):

undefined

If your screen looks like mine then you have done it, and you are ready to mod. My next blog will cover some actual modding where we get into some progamming :D.

Have Fun



Tags

Create an account or sign in to comment.

tfarcenim2k
07/25/2014 2:19 pm
Level 1 : New Miner
tfarcenim2k's Avatar
where is part two?
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome