Skip to content
Brian Rivas edited this page Jul 12, 2014 · 12 revisions

This page is for info about the build environment configuration, specifically Gradle and Eclipse details.

Setting up workspace

This is the process to get eclipse setup.

Clone to desktop

There's documentation for how to clone to desktop here. https://help.github.com/articles/set-up-git

So far i've been using the git shell over https. so I type: git clone https://github.com/greymerk/minecraft-roguelike

You'll wind up with a directory called "minecraft-roguelike" in your current working directory at this point.

Gradle build

Open a command window in the minecraft-roguelike directory

type gradlew setupDevWorkspace eclipse

Import project

  1. Run eclipse, and switch to your workspace (the directory containing minecraft-roguelike)
  2. file -> import...
  3. general / existing projects into workspace
  4. browse to the minecraft-roguelike directory and hit OK
  5. Hit finish

You should now see minecraft-roguelike in your package explorer

Run Configurations

  1. Run -> Run Configurations...
  2. Double click Java Application
  3. Add the following info
  • Name:
    • Client (optional)
  • Project:
    • minecraft-roguelike
  • Main Class:
    • net.minecraft.launchwrapper.Launch
  • Program Arguments:
    • --version 1.6 --tweakClass cpw.mods.fml.common.launcher.FMLTweaker --username=ForgeDevName --accessToken FML --userProperties={}
  • VM arguments:
    • -Dfml.ignoreInvalidMinecraftCertificates=true
  1. Hit Apply
  2. Double click Java Application again
  3. Add the following info
  • Name:
    • Server (optional)
  • Project:
    • minecraft-roguelike
  • Main Class:
    • cpw.mods.fml.relauncher.ServerLaunchWrapper
  1. Hit Apply

Running

You should now be able to run the project using the run button. Either client or server version.

Build

Open a command window in minecraft-roguelike and type:

gradlew build

The mod jar file should be in build/libs

External Links

Clone this wiki locally