Welcome! This guide will help you install your own private The BlockHeads server on a Linux system. This enhanced installer not only sets up the server but also includes a Mod Loader, Security Patches, and a Rank Manager. The process is automated to be as simple as possible.
Before you begin, make sure you have:
- Linux Server (OS): Recommended: Ubuntu 22.04+ or any modern system based on Debian or Arch.
- Root/Sudo Access: Required to install programs.
curlCommand: The installer needs this to download itself.- Hardware:
- At least 2GB of RAM (4GB+ recommended if running mods).
- 25GB of disk space.
Follow these 6 steps to get your server running.
If your server is remote (like a VPS), connect to it using SSH.
ssh your_user@SERVER_IP_ADDRESSMost systems already have it. Check with:
curl --versionIf you don't see a version, install it (example for Debian/Ubuntu):
sudo apt update
sudo apt install curl -yThis is the main command. It will download the script, compile the necessary patches/mods from source code (.c), and set up the environment.
curl -sSL https://raw.githubusercontent.com/noxthewildshadow/The-Blockheads-Server-BETA/main/installer.sh | sudo bashThe script will automatically:
- Install dependencies (
clang,make,screen, etc.). - Download the server binary and fix library incompatibilities.
- Compile Mods & Patches: It will turn the raw C code into loadable modules (
.so). - Organize files into
patches/critical,patches/optional, andpatches/mods.
Once the installation is finished, create your world using the binary tool:
./blockheads_server171 -nFollow the on-screen instructions to name and configure your world. When finished, press CTRL+C to exit and return to the terminal.
To see a list of the worlds you've created, use: ./blockheads_server171 -l
Now, use the server manager to start your world. This version is interactive.
./server_manager.sh start YourWorldID 12153- Replace
YourWorldIDwith the name of the world you created. 12153is the default port.
During startup, the script will ask you:
- Start Rank Manager (Security & Ranks)? (y/N):
- Type
yto enable the password/rank system. - Type
nto run a vanilla server without the external rank manager.
- Type
- Enable patches/mods:
- It will list every available mod (e.g.,
chest_dupe,mob_spawner) and ask if you want to load it for this session. - Note: Critical security patches (like
name_exploit) are loaded automatically.
- It will list every available mod (e.g.,
You're all set! Open The BlockHeads on your phone or PC and connect using:
- IP: Your server's IP address.
- Port:
12153(or the port you chose).
Your server now supports custom C-based mods and patches. These are stored in the patches/ folder.
name_exploit: Prevents players from joining with invalid names, empty names, or spoofed exploit strings.
You can choose to enable these when starting the server:
ban_all_new_drops: Prevents newly spawned items from dropping on the ground (lag reduction/anti-grief).chest_dupe_plus_any_item: Allows specific chest interaction mechanics or duplication features.fill_chest_with_any_id: Admin tool to fill chests with specific item IDs.mob_spawner: Adds mechanics to spawn mobs.pause_server_world: Can freeze the world state.place_banned_blocks: Allows admins to place blocks that are usually restricted.spawn_any_tree: Custom tree generation tools.freight_car_patch/portal_chest_patch: Fixes or modifies behavior for specific items to prevent crashes/exploits.
Use the server_manager.sh script to control your server.
./server_manager.sh start YourWorldID 12153This stops the server, the rank manager, and cleans up the ports.
./server_manager.sh stop 12153To stop ALL running servers: ./server_manager.sh stop
Shows if servers are RUNNING or STOPPED, and if the Rank Manager is active.
./server_manager.sh status 12153To see the live server console:
screen -r blockheads_server_12153To exit the console without stopping the server, press: CTRL+A then D.
If you chose "Yes" to the Rank Manager prompt during startup, the rank_manager.sh script is running in the background.
- Player Authentication: Verifies IP addresses. If an IP changes, the player must verify with their password.
- Password Protection: Players must create a password (
!psw) to play. - Auto-Kick: Unverified players are kicked after a grace period.
!psw YOUR_PASSWORD YOUR_PASSWORD(Register your password).!change_psw OLD_PASSWORD NEW_PASSWORD(Change password).!ip_change YOUR_PASSWORD(Verify identity after IP change).
-
"Port already in use"
- Use
./server_manager.sh stop PORTto free it, or choose a different port (e.g., 12154).
- Use
-
"Permission denied"
- Run:
chmod +x server_manager.sh rank_manager.sh installer.sh
- Run:
-
Mods not working / Compilation errors
- The installer tries to compile
.cfiles to.so. If this failed, run./server_manager.sh install-depsto ensure you haveclangandmake. - Check
patches/to ensure.sofiles exist.
- The installer tries to compile
Oficial discord for updates:
https://discord.gg/TTNCvguEmV