1.18.1 Lightweight and multi-threaded Minecraft server
Go to file
2021-03-26 19:32:18 -04:00
.github Minestom is not really an alternative to Bukkit 2020-11-25 10:58:09 +01:00
gradle/wrapper Added gradle distribution sha256sum 2021-01-23 09:47:45 +01:00
prismarine-minecraft-data@2b25cb297b Changes to networking 2021-03-25 10:44:02 -04:00
src Add null check to makeClassLoader 2021-03-26 19:32:18 -04:00
.gitignore remove cube batch command 2021-03-05 19:39:43 -05:00
.gitmodules Beginnings of automatic Block code generation 2020-06-19 11:29:09 +02:00
build.gradle Move adventure dependency and exclude checker-qual 2021-03-26 17:34:38 +00:00
gradle.properties switch to properties-based dep alignment for adventure 2021-03-26 17:34:38 +00:00
gradlew Update Gradle & Kotlin version 2021-01-23 09:32:18 +01:00
gradlew.bat Update Gradle & Kotlin version 2021-01-23 09:32:18 +01:00
jitpack.yml Use JDK 11 to build on Jitpack 2020-04-28 01:24:15 +02:00
LICENSE Added license 2020-04-25 23:38:09 +02:00
minestom_checks.xml Revert "allow non-standard import sorting, allow javadoc <p> to exist alone." 2021-03-05 19:39:43 -05:00
settings.gradle Initial commit 2019-08-03 15:25:24 +02:00

Minestom

banner

license standard-readme compliant
discord-banner

Minestom is a complete rewrite of Minecraft server software, open-source and without any code from Mojang.

The main difference compared to it is that our implementation of the Notchian server does not contain any features by default! However, we have a complete API which allows you to make anything possible with current spigot plugins.

This is a developer API not meant to be used by the end-users. Replacing Spigot/Paper with this will not work since we do not implement the Bukkit API.

Table of contents

Install

Minestom is similar to Bukkit in the fact that it is not a standlone program, it must be expanded upon. It is the base for interfacing between the server and client. Our own expanded version for Vanilla can be found here.

This means you need to add Minestom as a dependency, add your code and compile by yourself.

Usage

An example of how to use the Minestom library is available here. Alternatively you can check the official wiki here.

Why Minestom?

Minecraft evolved a lot since its release, most of the servers today do not take advantage of vanilla features and even have to struggle because of them. Our target audience is those who want to make a completely different server compared to default Minecraft gamemode such as survival or creative building. The goal is to offer more performance for those who need it, Minecraft being single-threaded is the most important problem for them.

In other words, it makes sense to use Minestom when it takes less time to implement everything you want than removing everything you don't need.

Advantages and Disadvantages

Minestom isn't perfect, our choices make it much better for some cases, worse for some others.

Advantages

  • Remove the overhead of vanilla features
  • Multi-threaded
  • Instance system which is much more scalable than worlds
  • Open-source
  • Modern API
  • No more disgusting NMS

Disadvantages

  • Does not work with Bukkit/Spigot plugins
  • Does not work with older clients (using a proxy with ViaBackwards is possible)
  • Bad for those who want a vanilla experience
  • Longer to develop something playable
  • Multi-threaded environments are prone to complications

API

Even if we do not include anything by default in the game, we simplify the way you add them, here is a preview.

Instances

It is our major concept, worlds are great for survival with friends, but when it scales up it can become unmanageable. The best examples can be found in Skyblock or minigames, not being able to separate each part properly and being forced to save everything in files, not to say the overhead caused by unnecessary data contained in them. Instances are a lightweight solution to it, being able to have every chunk in memory only, copying and sending it to another player in no time, making your serializer and much more...

Being able to create instances directly on the go is a must-have, according to us it can push many more projects forward.

Instances also come with performance benefits, unlike some others which will be fully single-threaded or maybe using one thread per world we are using a set number of threads (pool) to manage all chunks independently from instances, meaning using more CPU power.

Blocks

Minestom by default does not know what is a chest, you will have to tell him that it opens an inventory. Every "special blocks" (which aren't only visual) have to be registered, then they can be placed anywhere simply.

However, all blocks are visually there, they just won't have interaction by default.

Entities

The terms "passive" or "aggressive" monsters do not exist, nobody forbid you from making a flying chicken rushing into any players coming too close, doing so with NMS is a real mess because of obfuscation and the large inheritance.

Inventories

It is a field where Minecraft evolved a lot, inventories are now used a lot as client<->server interface with clickable items and callback, we support it natively without the need of programming your solution.

Commands

Commands are the simplest way of communication between clients and server. Since 1.13 Minecraft has incorporated a new library denominated "Brigadier", we then integrated an API meant to use the full potential of args types.

Credits

Contributing

See the contributing file!
All planned features are listed on Trello

License

This project is licensed under the Apache License Version 2.0.