• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

CleanstoneMC/Cleanstone: Springboot based Minecraft Server

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

CleanstoneMC/Cleanstone

开源软件地址(OpenSource Url):

https://github.com/CleanstoneMC/Cleanstone

开源编程语言(OpenSource Language):

Java 98.6%

开源软件介绍(OpenSource Introduction):

Current State

Please checkout Minestom since this Project is currently not maintained

Cleanstone

Coverage Lines of Code Maintainability Rating Build Status Join our Discord

What is Cleanstone?

The plan is to properly build a scalable Minecraft Server from scratch without the outdated code and single-threaded nature that Minecraft was created with.

We dont just copy the vanilla server structure and refactor it. Instead we write it completely from scratch in our own way in which we focus on doing it right instead of keeping it close and similar to Vanilla Minecraft.

Scalable: It should be expandable e.g. you can use multiple servers for a single Minecraft world and split the load over them.

Maintainable: A proper event-driven code style with dependency injection and lots of useful abstraction e.g. the protocol (built-in multi-client-version support similar to ViaVersion/ViaBackwards)

Multi-Threading

Cleanstone is multi-threaded by design since we are using multiple thread pools that balance the load of chunk loading, IO, etc. In the future we want to add the possibility to balance it across multiple servers as well. This is possible because we don't have a global tick loop that synchronizes all server actions but instead we outsource the work as modular services that can work asynchronously and are therefore scalable.

Features

Implemented

  • Multiple Network Protocols
    • Minecraft Java Edition
      • 1.12.2
      • 1.13
      • 1.13.1
      • 1.13.2
      • 1.14
    • Minecraft Pocket Edtition
      • Basic serverlist ping support
  • Async world loading and saving in LevelDB
  • Online mode login
  • Async chunk loading
  • Breaking and placing blocks (without item drops)
  • Seeing other players move around (entity tracking)
  • Command system with nice sub-command and parameter abstraction
  • Online admin panel to execute console commands

TODO

  • Seeing non-player entities (Missing entity metadata protocol)
  • World conversion (Missing NBT Support)
  • Item drops
  • Special block behavior (e.g. beds)
  • Spreading load over multiple servers
  • Network packet encapsulation (Events for Packets)
  • Chunk/Region behavior (Physics and AI)

Installation

Requirements

  • Java 11

Instructions

git clone git@github.com:CleanstoneMC/Cleanstone.git
cd Cleanstone
./gradlew assemble
java -jar build/libs/Cleanstone-0.3.1.jar

No global Tick Loop?

We will probably not be able to avoid a tick loop completely when we get to redstone, gravity, etc. since too many other systems directly depend on it and it would cause too many race conditions and delays to synchronize it all. Our trick here is to divide the world into independent regions that manage their entities and work by themselves using their own worker threads and their own independent tick loops or worker servers independent of other regions. However, tasks like pathfinding and entity movement can be completely asynchronous nonetheless since nothing else depends on them.

API?

Currently we aren't supporting Bukkit or Sponge since we simply need more features and fundamentals first but in the future we will add support for Bukkit and probably Sponge as well, however we wont integrate it into our code but keep it separate and map it to our own API.

Discord

We have a Discord! Join us here: https://discord.gg/Jx5kk3u

Livedemo

Connect to "demo.cleanstone.rocks" with Minecraft 1.12.2 - 1.14. The Server restarts from time to time with the latest changes.

Sponsors

YourKit

We are proudly using the YourKit Java Profiler to improve the performance and find high memory usage. Thank you for this amazing tool and we can fully recommend it to all Java developers!

YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.

Banner created using JetBrains' amazing jb-rpd-splash code art generator (CC BY 4.0, https://creativecommons.org/licenses/by/4.0/)




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap