MultiYggdrasil

MultiYggdrasil

一个能提供多个Yggdrasil服务器的模组。

工具

MultiYggdrasil

GitHub Release Github License QQ Group

简体中文 | English

简介

MultiYggdrasil 是一个 Forge | Fabric | NeoForge 模组。
它允许你设置多个 Yggdrasil API 源,包括官方及其他外部认证服务器。
配置设计灵感来自 MultiLogin, 部分代码在 AGPL-3.0 许可下借用自 authlib-injector。
缝合怪

部署

与其他模组一样,只需三步:

  1. 从 CurseForge | Modrinth 下载模组
  2. 将其放入 /mods
  3. 启动服务器

配置

一个模板:

# 此配置文件位于 config/multi-yggdrasil.ini
[SomeRandomMirror]                     # 名称,可自由设置,无任何影响。
type = OFFICIAL                        # 类型,目前有 2 种类型:"OFFICIAL" 和 "BLESSING_SKIN"。
authHost = https://a.random.mirror     # |- "OFFICIAL" 类型的具体值。
accountsHost = https://a.random.mirror # |  要求见下文。
sessionHost = https://a.random.mirror  # |
servicesHost = https://a.random.mirror # |
profilesHost = https://a.random.mirror # |
ordinal = 0                            # 序号,决定此源的使用顺序

[MojangOfficial]
type = OFFICIAL                        # 使用 "OFFICIAL" 类型时,可以不填写 host 类属性,
ordinal = 1                            # 此时将使用官方 API。

[LittleSkin]
type = BLESSING_SKIN                   # ↙ "BLESSING_SKIN" 类型的具体值。
apiRoot = https://littleskin.cn/api/yggdrasil/
ordinal = 2

“OFFICIAL” 类型中这些 host 类具体值的要求取决于 MC 版本,见下表:

authlib Minecraft authHost accountsHost sessionHost servicesHost profilesHost
1.5.25~1.6.25 1.14.4~1.16.3 ✅ ✅ ✅ ❌ ❌
2.1.28~4.0.43 1.16.4~1.20.1 ✅ ✅ ✅ ✅ ❌
5.0.47 1.20.2 ❌ ✅ ✅ ✅ ❌
6.0.52~6.0.58 1.20.3~1.21.8 ❌ ❌ ✅ ✅ ❌
7.0.61 1.21.9~1.21.11 ❌ ❌ ✅ ✅ ✅

版本支持

Minecraft Forge Fabric NeoForge
1.14.4- ❌ ❌ ❌
1.14.4~1.20.1 ✅ ✅ ❌
1.20.1~1.20.6 ✅ ✅ ✅
1.21.1~1.21.11 ❌ ✅ ✅