-
Notifications
You must be signed in to change notification settings - Fork 54
Dev Notes
This page is for info about the build environment configuration, specifically Gradle and Eclipse details.
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.
Open a command window in the minecraft-roguelike directory
type gradlew setupDevWorkspace eclipse
- Run eclipse, and switch to your workspace (the directory containing minecraft-roguelike)
- file -> import...
- general / existing projects into workspace
- browse to the minecraft-roguelike directory and hit OK
- Hit finish
You should now see minecraft-roguelike in your package explorer
- Run -> Run Configurations...
- Double click Java Application
- 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
- Hit Apply
- Double click Java Application again
- Add the following info
- Name:
- Server (optional)
- Project:
- minecraft-roguelike
- Main Class:
- cpw.mods.fml.relauncher.ServerLaunchWrapper
- Hit Apply
You should now be able to run the project using the run button. Either client or server version.
Open a command window in minecraft-roguelike and type:
gradlew build
The mod jar file should be in build/libs
Build environment demonstration video