🚀 Getting Started
Prerequisites
Before starting, make sure you have the following prerequisites:
-
Install Rust
Rust can be installed via
rustup
, the Rust toolchain installer. Open a terminal and run:Terminal window curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shFollow the on-screen instructions to complete the installation. Once installed, reload your shell:
Terminal window source $HOME/.cargo/envVerify the installation:
Terminal window rustc --versioncargo --version -
Install Git
On Debian/Ubuntu-based distributions:
Terminal window sudo apt updatesudo apt install gitOn Fedora-based distributions:
Terminal window sudo dnf install gitVerify the installation:
Terminal window git --version
-
Install Rust
Rust can be installed via
rustup
, the Rust toolchain installer. Open a terminal and run:Terminal window curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shFollow the on-screen instructions to complete the installation. Once installed, reload your shell:
Terminal window source $HOME/.cargo/envVerify the installation:
Terminal window rustc --versioncargo --version -
Install Git
If you have Homebrew installed, you can easily install Git:
Terminal window brew install gitVerify the installation:
Terminal window git --version
-
Install Rust
- Download the
rustup-init.exe
installer from rust-lang.org. - Run the installer and follow the prompts. Choose the default installation unless you need specific settings.
After installation, open a new Command Prompt or PowerShell window and verify Rust installation:
Terminal window rustc --versioncargo --version - Download the
-
Install Git
Download and install Git from git-scm.com. Follow the installer steps, choosing default options unless you need specific configurations.
Verify the Git installation:
Terminal window git --version
Installation
Option 1: Download Binary
-
Head over to FerrumC’s Github Actions page.
-
Open the latest successful workflow (indicated by a green checkmark).
-
Download the correct pre-compiled zip for your OS (Windows, Linux or macOS).
-
Unarchive this zipfile and run the binary available inside - See the Run Section.
Option 2: Build
-
Clone the Repository: Begin by cloning the FerrumC repository to your local machine:
Terminal window git clone https://github.com/ferrumc-rs/ferrumccd ferrumc -
Build FerrumC: Use Cargo (Rust’s package manager and build system) to build FerrumC:
Terminal window cargo build --release
This will create a ferrumc
executable in the target/release
directory.
Pre-Run
-
Move the FerrumC binary to your desired server directory
-
Select the latest successful workflow
-
Optional Generate a config file
Terminal window ./ferrumc --setupTerminal window ./ferrumc --setupTerminal window .\ferrumc.exe --setup -
Import an existing world
Copy the world’s files into the
import
directory in the FerrumC directory. This should leave you with some folders such as “region”, “data” and “entities” directly inside theimport
directory.Terminal window ./ferrumc --importTerminal window ./ferrumc --importTerminal window .\ferrumc.exe --importThe location of these files in minecraft is explained here
Run
You can change logging level by using --log=<level>
:
./ferrumc --log=info #for info level logging
./ferrumc --log=info #for info level logging
.\ferrumc.exe --log=info #for info level logging
Logging values:
- trace (Extremely verbose)
- debug (Default, Slightly verbose, used for debugging)
- info (Recommended, useful information)
- warn (Only warnings)
- error (Only errors)