Skip to content

Working with HEXCraft source

CelesTek edited this page Dec 7, 2015 · 3 revisions

Working with HEXCraft Source

You'll have to setup your development environment with forge, this is written for InteliJ IDEA, since that's what we're using.

There are plenty of guides for Eclipse as well floating around.

You'll have to grab a copy of Forge Mod Loader source, either one of the following versions will work.

  • forge-1.7.10-10.13.2.1291
  • forge-1.7.10-10.13.3.1420

Setting up Forge Mod Loader and InteliJ

  1. Extract the archive somewhere and open command line in that directory and run gradlew setupDecompWorkspace --refresh-dependencies

  2. Open InteliJ IDEA and import forge as a project and close the IDE (using build.gradle file)

  3. Run gradlew genIntellijRuns in the command line

Now you have Forge Mod Loader and InteliJ set up.

Cloning the repo

  1. Delete everything inside the src/ folder and clone the git repo inside it git clone https://github.com/CelesTek-Team/HexCraft.git . (don't forget the '.' at the end)

  2. Create a libs directory and put all the libraries needed there, they're listed in the README

  3. Open InteliJ, open build.gradle and add the following to the end of the file:

    idea {
            module {
                    inheritOutputDirs = true
            }
    }
    
  4. Open the terminal tab inside InteliJ and execute gradlew setupDecompWorkspace idea --refresh-dependencies


Missing startup configurations

Minecraft Client

  1. Run > Edit Configurations
  2. On the left side green + icon
  3. Application
  4. Set the following parameters
    • Name: Minecraft Client
    • Main Class: GradleStart
    • VM options: -Xincgc -Xmx1024M -Xms1024M
    • Working Directory: [Project Directory]\eclipse

Minecraft Server

  1. Run > Edit Configurations
  2. On the left side green + icon
  3. Application
  4. Set the following parameters
    • Name: Minecraft Server
    • Main Class: GradleStart
    • VM options:-Xincgc -Dfml.ignoreInvalidMinecraftCertificates=true
    • Working Directory: [Project Directory]\eclipse