BlauesZebra's Toggle Sneak Minecraft client Mod - Minecraft player can toggle the state of the sneak and sprint keys if activated. The function can be enabled and disabled ingame by pressing another configurable key. The State at startup can be configured using a GUI. ZebrasToggleSprint requires a Forge.
The Java JDK is used to compile ZebrasToggleSneak.
- 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
- Set up the environment.
- Windows: Set environment variables for the JDK.
- Go to
Control Panel\System and Security\System
, and click onAdvanced System Settings
on 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_45
exactly as shown (or wherever your Java JDK installation is), and clickOk
. - Scroll down to a variable named
Path
, and double-click on it. - Append
;%JAVA_HOME%\bin
EXACTLY AS SHOWN and clickOk
. Make sure the location is correct; double-check just to make sure.
- Go to
- Windows: Set environment variables for the JDK.
- 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.
Git is used to clone ZebrasToggleSneak 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.
This section assumes that you're using the command-line version of Git.
- Open up your command line.
- Navigate to a place where you want to download ZebraToggleSneak's source (eg
C:\Development\Github\Minecraft\
) by executingcd [folder location]
. This location is known asmcdev
from now on. - Execute
git clone git@github.com:BlueAnanas/ZebrasToggleSneak.git
. This will download ZebrasToggleSneak's source intomcdev
. - Right now, you should have a directory that looks something like:
mcdev
\-ZebrasToggleSneak
\-ZebrasToggleSneak's files (should have build.gradle)
- Execute
gradlew setupDecompWorkspace
. This sets up Forge and downloads the necessary libraries to build ZebrasToggleSneak. This might take some time, be patient.- You will generally only have to do this once until the Forge version in
build.properties
changes. - Just in case that there are obscure fails execute
gradlew cleanCache setupDecompWorkspace --refresh-dependencies
- If you are using eclipse setup your class mappings with
gradlew eclipse
- 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\ZebrasToggleSneak\build\libs
.You should see- a
.jar
file namedzebrastogglesneak-<mc-version>-<mod-version>.jar
. - a source jar.
- a
- Copy the first jar file into your Minecraft mods/ folder, and you are done!
If you're not on Windows, you'll probably need to use
./gradlew
instead ofgradlew
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\ZebrasToggleSneak
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.
So you found a bug in the code? Think you can make it more efficient? Want to help in general? Great!
- If you haven't already, create a GitHub account.
- Click the
Fork
icon located at the top-right of this page (below your username). - Make the changes that you want to and commit them.
- If you're making changes locally, you'll have to do
git add -A
,git commit
andgit push
in your command line.
- If you're making changes locally, you'll have to do
- Click
Pull Request
at 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 pull request title, and create a detailed description explaining what you changed. - Click
Send pull request
, and wait for feedback!
Crashing? Have a suggestion? Found a bug? Create an issue now!
- Make sure your issue hasn't already been answered or fixed. Also think about whether your issue is a valid one before submitting it.
- Go to the issues page.
- Click
New Issue
right belowStar
andFork
. - Enter your issue title (something that summarizes your issue), and then add a detailed description ("Hey, could you add/change xxx?" or "Hey, found an exploit: stuff").
- If you are reporting a bug, make sure you include the following:
- Version (can be found in the mcmod.info file or in the mod list)
- Logfiles
fml-client-latest.log
andlatest.log
found in the.minecraft/logs
directory (please use gists for large amounts of text!) - Detailed description of the bug
- If you are reporting a bug, make sure you include the following:
- Click
Submit new issue
, and wait for feedback!
This README is based on of bspkrs' cc licensed README.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.