This is the official GitHub page for Refined Relocation!
###Compiling Refined Relocation
####Setup Java The Java JDK is used to compile Refined Relocation.
- Download and install the Java JDK.
- Windows/Mac download link. Scroll down, accept the
Oracle Binary Code License Agreement for Java SE, and download it (if you have a 64-bit OS, please download the 64-bit version). - Linux: Installation methods for certain popular flavors of Linux are listed below. If your distribution is not listed, follow the instructions specific to your package manager or install it manually here.
- Gentoo:
emerge dev-java/oracle-jdk-bin - Archlinux:
pacman -S jdk7-openjdk - Ubuntu/Debian:
apt-get install openjdk-7-jdk - Fedora:
yum install java-1.7.0-openjdk
- Gentoo:
- Windows/Mac download link. Scroll down, accept the
- Windows: Set environment variables for the JDK.
- Go to
Control Panel\System and Security\System, and click onAdvanced System Settingson the left-hand side. - Click on
Environment Variables. - Under
System Variables, clickNew. - For
Variable Name, inputJAVA_HOME. - For
Variable Value, input something similar toC:\Program Files\Java\jdk1.7.0_51(or wherever your Java JDK installation is), and clickOk. - Scroll down to a variable named
Path, and double-click on it. - Append
;%JAVA_HOME%\binEXACTLY AS SHOWN and clickOk. Make sure the location is correct; double-check just to make sure.
- Go to
- Open up your command line and run
javac. If it spews out a bunch of possible options and the usage, then you're good to go. If not, try the steps again and make sure yourPathvariable is correct.
####Setup Git Git is used to clone Refined Relocation and update your local copy.
- Download and install Git here.
- Optional: Download and install a Git GUI client, such as Github for Windows/Mac, SmartGitHg, TortoiseGit, etc. A nice list is available here.
####Setup ForgeGradle ForgeGradle allows Gradle to know what it needs to do. This section assumes you know how to operate the command line.
- Open up your command line.
- Navigate to a place where you want to download ForgeGradle's source (eg
C:\Github\ForgeGradle\) by executingmkdir [folder location]and thencd [folder location]. This location is known asmcdevfrom now on. - Execute
git clone https://github.com/MinecraftForge/ForgeGradle.git. This will download Block Extender's source intomcdev. - Right now, you should have a directory structure that looks like:
mcdev
\-gradle
\-src
|-Other misc ForgeGradle files (should include `build.gradle`)
####Setup Refined Relocation This allows ForgeGradle to know what it's compiling.
- Clone Refined Relocation just like you did with ForgeGradle. All you have to change are the folder locations and
git clonecommand. - Copy the
javaandresourcesfolders from the Refined Relocation source tomcdev\src\main(delete the folders that are already there). - Create a folder called
libsinmcdevand put BuildCraft, Iron Chests, Industrial Craft 2, ComputerCraft, CoFHCore, Universal Electricity and Waila in it.- Note: As Refined Relocation is currently only for 1.6.4, please download 1.6.4 versions of the above mods.
- Your directory structure should now look like:
mcdev
\-gradle
\-src
\-main
\-java
\-resources
\-libs
\-Mods that you just downloaded
|-Other misc ForgeGradle files (should include `build.gradle`)
5. Add this to build.gradle below the closing bracket of minecraft:
dependencies {
compile fileTree(dir: 'libs')
}
6. Open a command line in your ForgeGradle folder and execute gradlew build or gradlew.bat build if using Windows.
* Note: If you have Gradle installed, use gradle instead.
7. Find your fresh copy of Refined Relocation in mcdev/build/libs!
###Contributing ####Submitting a Pull Request
- If you haven't already, create a Github account.
- Click the
Forkicon at the top-right of this page (below your username). - Make the changes that you want to.
- Click
Pull Requestat the right-hand side of the gray bar directly below your fork's name. - Click
Click to create a pull request for this comparison, enter your PR's title, and make a description of what's changed. - Click
Send pull request, and you're done!
####Creating an issue
- Go to the issues page.
- Click
New Issueright belowStarandFork. - Enter your Issue's title (something that summarizes your issue), and then create a detailed description.
- Click
Submit new issue, and you're done!