MultiFabricServer 图标

MultiFabricServer

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 velocity-1.0.0-beta.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/multifabricserver
资源信息

Minecraft 版本: 26.1

平台: velocity

标签: management technology utility

资源介绍

MultiFabricServer

Experimental Fabric server-side mod for running multiple lazy-loaded Minecraft server instances, called clusters, inside one JVM.

Players use /cluster travel <target> or /cluster tp <target> to move between the host and cluster nodes. Nodes start on demand and stop after they have been empty for the configured idle delay. Player list, player count, chat, join/leave messages, advancement messages, and command feedback are shared across running clusters.

Velocity And Standalone Modes

The mod can run without Velocity. In standalone mode, use Minecraft transfer packets and, for a public server, the built-in gateway:

{
  "enabled": true,
  "gatewayEnabled": true,
  "transferHost": "play.example.com",
  "gatewayBindHost": "0.0.0.0",
  "gatewayBindPort": 25565,
  "nodeIdleStopSeconds": 300,
  "nodes": [
    {
      "id": "creative",
      "worldName": "creativeworld",
      "enabled": true
    }
  ]
}

With this setup, the gateway listens on gatewayBindPort and forwards players to the host or their target lazy cluster. The host Minecraft server must listen on a different port, for example 25566, because the gateway owns the public port.

Velocity can still be used for extended behavior such as preserving chat UI/history during switches. Install the companion Velocity plugin built by this repo and Velocity only needs the host server in velocity.toml.

When seamlessProxySwitchEnabled is enabled, the Fabric mod sends the companion plugin a dynamic backend registration immediately before it sends Velocity's normal Connect plugin message. That lets newly-created clusters work without manually adding each cluster to velocity.toml.

Without the companion Velocity plugin, seamlessProxySwitchEnabled still requires each target cluster name to be registered in Velocity. If Velocity only has the host server configured and you do not want the companion plugin, disable seamlessProxySwitchEnabled and use the transfer/gateway path instead.

Config File

On first server start, this file is generated in the active world root:

multifabricserver-cluster.json

Default content is disabled and safe to edit:

{
  "enabled": false,
  "gatewayEnabled": false,
  "seamlessProxySwitchEnabled": false,
  "proxyHostServerName": "host",
  "transferHost": "127.0.0.1",
  "gatewayBindHost": "0.0.0.0",
  "gatewayBindPort": 25565,
  "nodeIdleStopSeconds": 300,
  "nodes": [
    {
      "id": "creative",
      "worldName": "creativeworld",
      "enabled": true
    }
  ]
}

proxyServerName is optional per node. If omitted, seamless Velocity mode falls back to the node id as the Velocity server name.

Velocity Companion Plugin

Build both the Fabric mod and Velocity companion plugin:

./gradlew clean build

Install:

build/libs/multifabricserver-mc26.1-1.0.0.jar -> Fabric server mods/
velocity/build/libs/multifabricserver-velocity-1.0.0.jar -> Velocity plugins/

Then keep only the host backend in velocity.toml, for example:

[servers]
host = "127.0.0.1:25566"
try = ["host"]

Cluster nodes can omit proxyServerName; the node id becomes the dynamic Velocity server name.

Commands

  • /cluster status
  • /cluster players
  • /cluster reload
  • /cluster enable
  • /cluster enable <node>
  • /cluster disable
  • /cluster disable <node>
  • /cluster start <node>
  • /cluster stop <node>
  • /cluster remove <node>
  • /cluster travel <host|node>
  • /cluster tp <host|node>

Admin commands require command-level GAMEMASTERS.

Development

Build:

./gradlew clean build

Current local test loop:

./gradlew clean build && cp build/libs/multifabricserver-mc26.1-1.0.0.jar server-test/mods/ && cp velocity/build/libs/multifabricserver-velocity-1.0.0.jar server-test/velocity/plugins/ && docker compose -f server-test/docker-compose.yml down && docker compose -f server-test/docker-compose.yml up
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
VamPan - Pulp Faction

价格:0 墨喵币
下载量:0

查看详情
Goat Mod

价格:0 墨喵币
下载量:0

查看详情
Map Void Fix

价格:0 墨喵币
下载量:0

查看详情
VelShout

价格:0 墨喵币
下载量:0

查看详情