Dev Notes - fnar/minecraft-roguelike GitHub Wiki
This page is for info about the build environment configuration, specifically Gradle and Eclipse details.
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/fnar/minecraft-roguelike
You'll wind up with a directory called "minecraft-roguelike" in your current working directory at this point.
Gradle setup
Open a command window in the minecraft-roguelike directory
type gradlew setupDecompWorkspace eclipse
Import project
- 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 Configurations
- Run -> Run Configurations...
- Click minecraft-roguelike_Client
- Click "Run"
The "run" button will now do this by default.
Build
Open a command window in minecraft-roguelike and type:
gradlew build
The mod jar file should be in build/libs
External Links
[TUTORIAL] Getting Started with ForgeGradle
Lex's Video regarding gradle