đ Getting Started
Prerequisites
Section titled â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.exeinstaller 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
Section titled âInstallationâOption 1: Download Binary
Section titled â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
Section titled â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
Section titled â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
importdirectory in the FerrumC directory. This should leave you with some folders such as âregionâ, âdataâ and âentitiesâ directly inside theimportdirectory.Terminal window ./ferrumc --importTerminal window ./ferrumc --importTerminal window .\ferrumc.exe --importThe location of these files in minecraft is explained here
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 loggingLogging values:
Section titled âLogging values:â- trace (Extremely verbose)
- debug (Default, Slightly verbose, used for debugging)
- info (Recommended, useful information)
- warn (Only warnings)
- error (Only errors)