To run a standalone server with vanilla features, you can use the VanillaServer.main entrypoint. This initializes the Minestom MinecraftServer, hooks the VanillaReimplementation (VRI) into the server process, and starts the server on a specified address and port.
Note that the implementation uses VanillaReimplementation.hook(MinecraftServer.process()) to integrate vanilla logic into the core Minestom lifecycle.
public static void main(String[] args) {
// Use the static server process
MinecraftServer server = MinecraftServer.init();
// Use SETUP logging level since this is a standalone server.
Loading.level(Level.SETUP);
Logger.info("Setting up vri...");
VanillaReimplementation vri = VanillaReimplementation.hook(MinecraftServer.process());
VanillaServer vanillaServer = new VanillaServer(server, vri, args);
Logger.info("Vanilla Reimplementation (%s) is setup.", MinecraftServer.VERSION_NAME);
vanillaServer.start("0.0.0.0", 25565);
}