An alternative Minecraft server implementation built from scratch.
Go to file
Panagiotis Vasilopoulos 0d5760ce1f
Adhered to Markdown standards.
2019-05-11 16:00:54 +03:00
1_12-data Add 1.12 data 2018-01-14 19:26:44 -08:00
data migrate joinServer, update 2019-04-17 06:04:44 -07:00
include/basin remove protocol_version from player 2019-05-05 02:54:58 -07:00
src revert deleting network.c 2019-05-05 16:15:18 -07:00
.gitignore Fixed missing header file. 2019-05-05 02:54:58 -07:00
CMakeLists.txt more refactoring 2019-04-18 08:59:54 -07:00
LICENSE Initial commit 2016-06-23 15:12:55 -07:00
README.md Adhered to Markdown standards. 2019-05-11 16:00:54 +03:00

README.md

Basin

A high performance Minecraft server implementation written in C.

Status

Currently, version Minecraft 1.11.2 and 1.10.2 is supported. As of April 2019, this project is being refactored to meet higher standards of quality and stability. Feature development will resume afterwards, with Minecraft 1.14 support coming concurrently.

Features

  • Low memory footprint (13 MB for a 400-chunk spawn and one player on a 64-bit system)
  • Block placing/breaking
  • Survival mode
  • Creative mode
  • Inventories
  • Players, Chat, and Tab menu
  • Item entities
  • Chests, Furnaces, Crafting
  • PvP
  • Fall damage
  • Block physics & updates
  • C plugin system
  • Block & sky lighting
  • Anvil world loading

Work In Progress

  • Mob AI
  • Spigot-mirrored Java plugin system
  • Command system
  • World generation
  • Anticheat

Planned

  • Protocol generator/export Minecraft protocol as a shared library for various versions
  • Natural mob spawning
  • Lua plugin system
  • Permission system
  • World saving

Getting Started

Prerequisites

Basin uses cmake to build, install, and package.

Dependencies

  • avuna-util
  • OpenSSL
  • JNI (if Java plugin support is enabled)

Compilation

  • Clone this project.
git clone https://github.com/basinserver/basin.git
  • Make a folder called "build" in the Basin directory.
mkdir build
  • Open a terminal inside of the build directory.
cd build
  • Run CMake and target the root directory.
cmake ..
  • Use make.
make -j 16

Cleaning

In order to get rid of the compiled executables, you will have to clean your directory with the following command:

make clean

Installation

In order to install Basin, you will have to execute the following command after compiling the project:

sudo make install

Package

In order to package Basin, you will have to execute the following command:

cpack --config ./CPackConfig.cmake

Running Basin

To run Basin, simply invoke the binary ./basin. Ensure that the binary is located with the relevant data files (the JSONs).

Goals

  • Pure performance: minimum resource usage for a full Minecraft server implementation
  • Drop-in replacement: compatible with Spigot API plugins via JNI, standard Minecraft world format (Anvil)
  • Extensibility: ease of modification, large plugin API
  • Stability: use good C programming standards to prevent server-breaking bugs

Perhaps, one day.

  • Allow server-side reimplementation of Java forge mods in C via an analog Forge API
  • Allow several versions of the game without a third party tool via a protocol compatibility layer
  • Reverse proxy dimension/world sourcing

Discord Server

Are you a developer who's keen on Basin, or perhaps just a simple onlooker?

Either way, feel free to join the official Basin Discord server here!