Jump to content

Recommended Posts

Posted

Hello everyone, as you all know, a recommended version of Minecraft Forge has came out for Minecraft version 1.7.2! While this is great and all, there is still some people that don't know how to set-up your development environment. The current tutorial that is out is outdated and does not give correct information, a little bit of stuff has changed since that tutorial for Forge Gradle came out. So, let us get started.

 

Requirements:

1. Minecraft Forge for 1.7.2

Find it here: http://www.minecraftforge.net/forum/index.php?action=files

You will also need eclipse, which is quite obvious.

 

Installation:

Windows Users:

1. Once you have downloaded the zip file, extract it into any folder. This will make a whole bunch of files, don't click gradlew.bat.

2. Press SHIFT and RIGHT-CLICK in the folder where you extracted Forge Gradle. Then click "Open Command Window Here".

3. Once you have your command windows open, type the following (Once at a time!):

 

gradlew.bat setupDecompWorkspace

then once that has finished, type:

gradlew.bat eclipse

That's all you need to do for windows!

 

Mac Users:

Run the following in terminal:

./gradlew setupDecompWorkspace

then

./gradlew eclipse

 

Setting up your environment:

1. Now, open Eclipse. Point your project directory to the eclipse folder inside of the forge directory.

Once you have done that, in your Eclipse IDE editor, go to Help > Eclipse Marketplace and search for Gradle and install the second one on the list!

2. After you have installed the Gradle plug-in, go to File > Import > Existing Projects into Workspace and select your root forge directory. (The folder you extracted Forge Gradle into in the beginning.)

3. Make sure the project is selected and then click FINISH!

 

Making It Run:

1. Go to Run > Run Configurations

2. Right Click "Java Application" and click "New".

3. Once you have done those steps, set the name of the first Configuration to "Run Client".

4. Next, type the following -

 

Main Class:

net.minecraft.launchwrapper.Launch

5. Go to the "Arguments" Tab and type the following -

Program Arguements:

--version 1.7.2 --tweakClass cpw.mods.fml.common.launcher.FMLTweaker --accessToken FML

VM Arguments:

-Dfml.ignoreInvalidMinecraftCertificates=true

6. Then Click "Apply" and "Run". (This should start Minecraft 1.7.2)

7. Close Minecraft and make another "Java Application", this time call it "Run Server".

8. This time set the Main Class to:

cpw.mods.fml.relauncher.ServerLaunchWrapper

9. Click "Apply", there is no need to run this. And there are no Arguments needed either!

 

Well, you're done, everything should work fine now, if you get any errors, don't post them here, this is not a help thread!

 

Thanks to:

  • GrygrFlzr (Creating the initial tutorial thread)

 

 

 

Posted

Or, alternatively to the bottom half, use the provided eclipse workspace with no need to download or install extra plugins and pre-configured run configs.

But ya there are like 50 of these tutorials.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

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.