macOS Installation Guide
Crafty Requirements
- You will need brew.sh installed in your mac. Get it from https://brew.sh
- This guide assumes you have a decent understanding of the macOS Terminal environment and are comfortable with the command line.
- This guide also assumes you will be installing Crafty into
/var/opt/minecraft/crafty
. - We also assume your server will be at
/var/opt/minecraft/server
. - We also assume the user account running crafty will have full read/write/execute permissions on these folders.
- Finally this guide assumes you have the following software installed and up to date: Git, Python 3.9+.
NOTE: You will need to install Java before starting any Minecraft servers.
Installation
Install host dependancies
Brew.sh
macOS lacks a proper package manager and in order to install a couple of the required software via the command line you will need Brew.sh.
Go to your /Applications/Utilities
and launch Terminal.app
- or -
Press Cmd+Space and type Terminal.app and hit Enter
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)";
The command above runs and you will see the installation progress. It will inform you that the Command Line Tools for Xcode will get installed.
Towards the end you will be asked to enter your account password then the installation will continue.
You will be notified when Brew begins downloading the Command Line Tools for Xcode and depending on your connection the download will take about 5 minutes. Once the tools have downloaded, they will install on your mac and the installation of Brew will be completed. 🎉
Adding brew to path!
Once the download and install are complete brew will list 3 commands you need to enter to add homebrew to PATH
and MANPATH
.
Those commands will look something like this:
⚠️ If you do not complete those steps the rest of this install with be PAINFUL ⚠️Git, Java and Python 3.9+
brew cask
is an extension to brew that allows management of graphical applications through the Cask project.--cask
offers a way to command line manage the installation of graphical applications.
Installing Crafty
Create a directory for Crafty
sudo mkdir -p /var/opt/minecraft/crafty /var/opt/minecraft/server
sudo chown -R <your_username>:admin /var/opt/minecraft #(1)!
- For Example If your username on your mac is Totoro then the
command will be:
sudo chown -R totoro:admin /var/opt/minecraft/crafty
cd /var/opt/minecraft/crafty
Clone the Crafty Repository
Please be sure to be in /var/opt/minecraft/crafty
folder before cloning the repo.
To check type 'pwd' and make sure it says '/var/opt/minecraft/crafty' before you continue.
Create a Virtual Environment
- We prefix a
.
to the name of thevirtual environment
because in a Linux/Unix context it makes that the file or directory hidden, you cannot see it in the file explorer (ls
) unless the-a
flag is provided.
Activate the Virtual Environment
- You know when you're in your virtual environment because your prompt will change to include
(venv)
Install Crafty's package dependancies
Run Crafty
Make sure you're still in your venv
and in the /var/opt/minecraft/crafty/crafty-4
directory.
To check type 'pwd' and make sure it says '/var/opt/minecraft/crafty/crafty-4' before you continue.
Updating Crafty
Make sure to stop Crafty before updating
In your Terminal window press Ctrl+C to stop Crafty
If you experience git telling you to commit or stash local changes and you have not made any changes
In the /var/opt/minecraft/crafty/crafty-4
directory, run the following:
Make sure to run the the following update commands after running this.
Post-Install
Great work, You're ready to proceed to the next step 🎉
How to access the dashboard