MCppServer
by: Noeli14
Fast and super efficient Minecraft Server written in C++
πOverview
Purpose: To provide a high-performance Minecraft server developed in C++ that maintains compatibility with Java clients while optimizing for speed and efficiency.
Overview: MCpp Server is designed to deliver a smooth gaming experience akin to Vanilla Minecraft, featuring robust customization options. It is currently in early development, encouraging community contributions and feedback to enhance functionality.
Key Features:
-
Multi-threaded Architecture: Enables simultaneous handling of several server tasks, enhancing performance and responsiveness.
-
Chunk Loading and Generation: Efficient methods allow for quick loading and generation of game chunks, designed to use minimal memory resources.
-
Configurable Settings: Simple configurable files allow server administrators to customize server behavior at ease, accommodating specific needs.
-
Packet Compression: Optimizes bandwidth by compressing data packets, improving network efficiency.
-
Extensive Supported Features: Includes authentication, chunk loading, server configuration, and player management, with continual updates adding more functionalities.
MCpp Server
Fast and super efficient C++ 1.21.1 Minecraft Server. Compatible with Java Clients. Designed to feel like Vanilla Minecraft, but with the power of C++.
MCpp Server is a high-performance Minecraft server developed entirely in C++. Designed for speed, efficiency, and extensive customization, MCpp Server aims to provide a seamless and enjoyable experience for players while trying to maintain full compatibility with the latest Minecraft features.
β οΈ Important
This project is in early development and may contain bugs and incomplete features, as well as temporary and unoptimized code.
π Progress
Want to see what Iβm working on? Check out the discussion tab under Show and Tell!
π Features
ποΈ Performance
- Multi-threaded Architecture: Leverages multiple threads to handle various server tasks simultaneously.
- Super fast and efficient Chunk Loading and Generation: Uses multiple threads to load and generate chunks with minimal memory usage.
- Optimized Codebase: Written in C++ for maximum efficiency and low latency.
π§ Customization & Extensibility
- Configurable Settings: Easily adjustable configuration files to tailor server behavior to your needs.
- Plugin Support soon: Provides a foundation for developing and integrating custom plugins.
π Networking
- Packet Compression: Reduces bandwidth usage by compressing data packets.
- Server Status & Ping: Provides real-time server status information and latency measurements.
π§© Supported and WIP Features
- Login
- Authentication (online mode)
- Encryption
- Packet Compression
- Server Configuration
- Server Links
- Registries
- Resource Packs (multiple)
- Server Brand
- Cookies
- Server
- Lua Plugin API
- Query
- RCON
- Commands
- Chat
- Translations
- World
- World Joining
- Chunk Loading
- Tablist
- Entity Spawning
- World Loading
- Chunk Generation
- World Border
- World Time
- Bossbar
- Weather
- Scoreboard
- World Saving
- Player
- Player Skins
- Client brand
- Movement
- Inventory
- Equipment
- Item Pickup
- Combat
- Entities
- Players
- Mobs (Animals, Monsters)
- Entity AI
- Boss
- Minecart
- Lightning Bolt
- Physics
- Item Physics
- Falling Blocks
π Use Pre-Generated World
Just put the world folder of your Vanilla Minecraft world in the directory where the server executable is and it will be loaded when the server starts.
β οΈ Important Notes
- Linux Compatibility: The Linux version has not been thoroughly tested. You may encounter issues when running MCpp Server on Linux systems. To still be able to join the server, turn off online mode in the config.json file.
- Ongoing Development: MCpp Server is actively being developed. Contributions and feedback are welcome to help improve the server.
π οΈ Installation & Building
π Prerequisites
- C++20 Compiler: Ensure you have a modern C++ compiler installed (e.g., GCC, Clang). On Windows, MingW is required.
- CMake: Version 3.14 or higher.
- Git: To clone the repository.
π§ Build Instructions
Linux:
git clone https://github.com/Noeli14/MCppServer.git
cd MCppServer
mkdir build
cd build
cmake ..
make
For a Debug build:
cmake -DCMAKE_BUILD_TYPE=Debug ..
make
For a Release build:
cmake -DCMAKE_BUILD_TYPE=Release ..
make
Windows (MingW & Make):
git clone https://github.com/Noeli14/MCppServer.git
cd MCppServer
mkdir build
cd build
cmake .. -G "Unix Makefiles"
make
For Debug build:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
make
For Release build:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make
Windows (MingW & Ninja):
git clone https://github.com/Noeli14/MCppServer.git
cd MCppServer
mkdir build
cd build
cmake .. -G "Ninja"
ninja
For Debug build:
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Debug ..
ninja
For Release build:
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release ..
ninja
π Running the Server
After a successful build, execute the server binary:
./MCppServer
π¦ Data Sources
MCpp Server utilizes data from the PrismarineJS Minecraft Data repository to ensure accurate and up-to-date game mechanics and data.
π€ Contributing
Contributions are welcome! Whether it's reporting bugs, suggesting features, or submitting pull requests, your help is greatly appreciated.
π License
MCpp Server is licensed under the MIT License.
π« Contact
For any questions or support, feel free to open an issue or discussion on the GitHub repository:
https://github.com/Noeli14/MCppServer