如果你希望以零 effort 为几乎任何整合包配置服务器,请通过 BisectHosting 获取服务器,并在新用户注册时使用代码 kreezxil 享受首月 25% 的折扣。
立即加入我们的 Discord!至少加入 我们中的一员吧!
来自一个听起来非常熟悉的 GPLv3 许可页面。
Desired Servers
这是一个模组,它消除了需要发送覆盖玩家添加的服务器的 servers.dat 文件的需求。
停止发送该文件并添加 Desired Servers!你可以使用简单的 json 格式添加多个服务器。
首次运行时,如果不存在 desiredservers.json 文件,模组将生成包含以下内容的 desiredservers.json:
[
{
"serverName": "Desired Server",
"serverIP": "127.0.0.1"
},
{
"serverName": "Another Desired Server!",
"serverIP": "192.168.1.1"
}
]
添加服务器就像添加另一个带有详细信息的 json 块一样简单。
在加载时,服务器会被添加到服务器列表中,如果已经存在则会被忽略。
服务器列表 JSON
多人游戏屏幕中的服务器
The TidBit
Featured Servers/ 文件夹现在位于 config 文件夹中。The What and How
Forge 不喜欢模组的布局方式,并希望它更像默认示例。所以我为此添加了一些内容。此外,模组在报告方面捕获了太多东西,所以我在绝对必要的地方解包了添加的 try/catch 子句。
Other Info
* 与原始 GPLv3 相同的许可证,参见-
移植到 1.16.1
-
源代码现已可用
-
仅限客户端
If you want a server setup for nearly any mod pack with zero effort, get a server with BisectHosting and receive 25% off your first month as a new customer using the code kreezxil
Join atleast of us on Discord right now!
From a page that is GPLv3 licensed that sounds very familiar to this.
Desired Servers
This is a mod that removes the need to ship a servers.dat file that overwrites player-added servers.
Stop shipping that file and add Desired Servers! You can add multiple servers with a simple json format.
On first run, the mod will generate a desiredservers.json with the following content if one isn't present:
[
{
"serverName": "Desired Server",
"serverIP": "127.0.0.1"
},
{
"serverName": "Another Desired Server!",
"serverIP": "192.168.1.1"
}
]
Adding a server is as simple as adding another json block with the details.
The server is added to the server list on load, if it is already there it will be ignored.
Server list JSON
Servers in the multiplayer screen
The TidBit
The Featured Servers/ folder now lives in the config folder.The What and How
Forge didn't like how the mod was laid out and wanted it to be more like the default example. So I added in some stuff for that. Also the mod was catching way too much stuff with reporting, so I unwrapped that added try/catch clauses where it was absolutely necessary.
Other Info
* Same license as the original GPLv3 at-
ported to 1.16.1
-
source now available
-
client only
下载 Desired Servers
下载 Desired Servers
下载 Desired Servers
下载 Desired Servers
下载 Desired Servers
下载 Desired Servers
下载 Desired Servers
下载 Desired Servers
下载 Desired Servers
下载 Desired Servers
如果你想以零配置的方式为 Desired Servers 模组搭建服务器,可以购买 BisectHosting 的服务器,并使用优惠码 kreezxil 作为新用户首月立减 25%。
更新日志
• 移植至 NeoForge(版本 26.3.0.103)上的 Minecraft 26.3,使用 ModDevGradle 和 Java 25 构建。此版本仅支持 NeoForge。
• 新增游戏内编辑器:在模组列表中点击“Config”按钮会打开一个界面,列出 desiredservers.json 中的所有条目,并允许你添加、编辑(名称、地址、资源包开关)以及删除这些条目,同时提供保存和取消选项。
• 保存时会检查每个条目是否都有名称和地址,且确保没有重复的条目;将 desiredservers.json 写入为一个格式清晰的纯文本数组,并立即将新服务器添加到多人游戏列表中。保存完成后会显示已添加的服务器数量。
• 在编辑器中移除或重命名某个条目,绝不会删除已经存在于你多人游戏列表中的服务器。
• 如果无法读取 desiredservers.json,编辑器将以只读模式打开,并在保存时提示有多少个无效条目将被丢弃。
• 编辑器的文本框遵循 Minecraft 自身的固定限制:服务器名称最多 32 个字符,服务器地址最多 128 个字符。desiredservers.json 中原本更长的条目不会被截断。
• 全新安装现在会创建一个空的 desiredservers.json([]),而不是包含两个占位符服务器,因此在你手动列出服务器之前不会自动添加任何内容。现有文件不受影响。
• 新增 desiredservers.json.example 文件,其中包含警告不要将其重命名。你可以将其全部内容粘贴到 desiredservers.json 中:“servers”列表会被读取,而诸如 _WARNING 之类的键会被忽略。
• 条目逐条进行检查:缺少 serverName 或 serverIP 的条目会被跳过,并记录一条警告日志,而不会导致整个列表失效。forceResourcePack 接受 true/false 布尔值以及旧的 "true"/"false" 字符串形式。文件以 UTF-8 编码读取。
• 日志现在会说明未添加服务器的原因:当 desiredservers.json 被拒绝时记录错误,当文件中未列出任何服务器时记录警告,并输出一行显示读取到的条目数量。
• 如果 servers.dat 存在但无法读取,则永远不会写入服务器列表,从而避免擦除玩家的服务器数据。
• 配置文件文件夹通过加载器的 config 目录解析(默认仍为 config/desiredservers/)。
• 添加了模组图标(512x512),在 NeoForge 模组列表中显示为图标,并作为横幅展示;同时在模组元数据中注明 Jake Evans 的 Featured Servers 模组使用的 GPLv3 许可。依赖项声明为客户端侧。
• 所有编辑器文本均已支持翻译(en_us.json)。
• 为服务器列表处理和编辑器的保存逻辑添加了单元测试,并重写了 README 和 CurseForge 描述页面,使其与模组的实际功能保持一致。
如果你想零 effort 使用 Desired Servers 搭建服务器,可以在 BisectHosting 购买服务器,并在新用户注册时使用代码 kreezxil 享受首月 25% 的折扣。
更新内容
• 移植至 1.21.1
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。





评论 0
登录后参与评分
还没有评论,来抢沙发吧