bashcraft is a minimal Minecraft launcher and updater, written in pure Bash, for use under Linux, Mac OS X and Solaris.
bashcraft.sh [--force-update] [--remove-prefs] [--change-prefs] [--help]
--force-update
: Force an update of Minecraft, overwriting the existing minecraft.jar and associated files--remove-prefs
: Removes the preferences file.--change-prefs
: Prompts for a new username and password and stores it in the preferences file.--help
: Provide a brief help message.
bashcraft.sh
can be placed anywhere, but it will store Minecraft and it's preferences under a set location, determined by platform:
- Linux and Solaris:
~/.minecraft
- Mac OS X:
~/Library/Application Support/minecraft
The preference file, bashcraft-prefs
, is stored in the same directory as the Minecraft installation, which varies by platform (see above).
The preference file is a Bash script, which is sourced at runtime before starting Minecraft.
It can contain any commands you wish to run before Minecraft starts, as well as the following configuration options:
username="..."
: The Minecraft username you wish to usepassword="..."
: The password to the Minecraft account specified inusername
. Not required if you wish to play offline.MCoptions="..."
: Any options you wish to pass to Minecraft can be specified here.
bashcraft is a command-line program, but have a screenshot anyway:
bashcraft is licenced under the Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/.
bashcraft has had contributions from the following people: