This section assumes that you have Git and JDK installed, and you're using the command-line version of Git.
- Open up your command line.
- Navigate to a place where you want to download Schematica's source (eg
C:\Development\Github\Minecraft\
) by executingcd [folder location]
. This location is known asmcdev
from now on. - Execute
git clone https://github.com/Theyoungster/Schematica.git
. This will download Schematica's source intomcdev
. - Right now, you should have a directory that looks something like:
mcdev
\-Schematica
\-Schematica's files (should have build.gradle)
- Execute
gradlew setupDevWorkspace
. This sets up Forge and downloads the necessary libraries to build Schematica. This might take some time, be patient.- You will generally only have to do this once until the Forge version in
gradle.properties
changes.
- You will generally only have to do this once until the Forge version in
- Execute
gradlew build
. If you did everything right,BUILD SUCCESSFUL
will be displayed after it finishes. This should be relatively quick.- If you see
BUILD FAILED
, check the error output (it should be right aroundBUILD FAILED
), fix everything (if possible), and try again.
- If you see
- Go to
mcdev\Schematica\build\libs
.- You should see a
.jar
file namedSchematica-#.#.#-#.#.#.#-universal.jar
.
- You should see a
- Copy the jar into your Minecraft mods folder, and you are done!
In order to get the most up-to-date builds, you'll have to periodically update your local repository.
- Open up your command line.
- Navigate to
mcdev
in the console. - Make sure you have not made any changes to the local repository, or else there might be issues with Git.
- If you have, try reverting them to the status that they were when you last updated your repository.
- Execute
git pull master
. This pulls all commits from the official repository that do not yet exist on your local repository and updates it.
Shamelessly based this README off pahimar's version.