Minecraft Blogs / Tutorial

How to make a Minecraft mod / Setting up debug enviroment and Gradle/ Ep.2

  • 1,457 views, 1 today
  • 6
  • 2
TeamJaval's Avatar TeamJaval
Level 59 : Grandmaster Programmer
113
Hello and welcome back to the 2nd "How to make a Minecraft mod" tutorial.
In this tutorial we will be looking at 'Setting up the debug enviroment and Gradle'.

Next Tutorial: Click Here
Last Tutorial: Click Here

undefined

After the last tutorial you should have eclipse open and it should look something like this:

Spoiler
undefined

undefined

Now you must click the "Run" tab on the top of the window:

Spoiler
undefined



Now click "Run Configurations"

It is going to ask you whether you want to Run As a Java Applet or a Java Application, choose Java Application.

A window should pop up looking something like this:

Spoiler
undefined



Right click on Java Application and click "New".
Name it "Run Client".
For the Project select the only project that should be there, "Minecraft"
And for the main class paste in this code:





Spoiler
net.minecraft.launchwrapper.Launch



Now click the "Arguments" tab.

For "Program Arguments" paste in this code:


Spoiler
--version 1.6 --tweakClass cpw.mods.fml.common.launcher.FMLTweaker --accessToken test



And for "VM Arguments" put in this code:


Spoiler
-Dfml.ignoreInvalidMinecraftCertificates=true



Now right click on "Java Application" again and then "New", call it "Run Server"

Select the only Project, "Minecraft" for Project and for Main paste in this code:


Spoiler
cpw.mods.fml.relauncher.ServerLaunchWrapper



And there are no arguments!

undefined

Now we need to setup Gradle into eclipse, start off by clicking on the "Help" tab on the top of the window.

Then click "Eclipse Marketplace"

A window should popup looking like this:


Spoiler
undefined



Now search "Gradle" and click "Install" on it.
It should be on the top of the list.



Done, now you can get ready for the actual coding!

undefined




To create these tutorials for you is quite a challenge, If 
you'd like to see more tutorials and more sections covered then please 
donate to our team as generously as you can. Every bit of it helps and 
supports us even more.


undefined

Donators will be able to get private lessons from myself or anyone else from TeamJavalIncluding their name posted on numerous blogs as a big thank you.

undefined

undefined
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome