Modpack Shipped Servers
一款简单的模组,允许整合包开发者定义一组默认服务器列表,玩家随后可以自行选择如何使用。 这对于为服务器(或广告)制作的整合包非常有用,因为它们可以轻松提供推荐服务器列表供玩家加入。 当模组首次运行时,它会检查是否已存在服务器数据。如果检测到任何现有数据,则不会执行任何操作。如果没有,则会添加你配置的服务器。
配置
该模组使用一个简单的 JSON 文件来定义服务器。该文件位于 Minecraft 目录下的 config/shipped-servers.json。
以下是一个示例:
{
"servers": [
{
"name": "Example",
"address": "play.example.com",
"resourcePackPolicy": "prompt"
},
{
"name": "Another Example",
"address": "eu.example.com",
"resourcePackPolicy": "enabled"
},
{
"name": "Yet Another Example",
"address": "na.example.com",
"resourcePackPolicy": "disabled"
}
]
}
servers 数组可以包含任意数量的服务器对象,每个对象具有以下属性:
name: 服务器在服务器列表中显示的名称。address: 服务器的地址(IP 或域名)。resourcePackPolicy: 服务器的资源包策略。可以是enabled、disabled或prompt。不区分大小写。
Modpack Shipped Servers
A simple mod that allows modpack developers to define a default set of servers that the player can then choose to do with as they please. This is useful for modpacks made for servers (or advertisement), so that they can easily provide a list of recommended servers for players to join. When the mod first runs, it will check if there is already server data present. If any are detected, it simply does nothing. If not, it adds your servers.
Configuration
The mod uses a simple JSON file to define the servers. The file is located at config/shipped-servers.json in the Minecraft directory.
Below is an example:
{
"servers": [
{
"name": "Example",
"address": "play.example.com",
"resourcePackPolicy": "prompt"
},
{
"name": "Another Example",
"address": "eu.example.com",
"resourcePackPolicy": "enabled"
},
{
"name": "Yet Another Example",
"address": "na.example.com",
"resourcePackPolicy": "disabled"
}
]
}
The servers array can contain any number of server objects, each with the following properties:
name: The name of the server as it will appear in the server list.address: The address of the server (IP or domain).resourcePackPolicy: The resource pack policy for the server. Can beenabled,disabled, orprompt. Case-insensitive.
下载 Modpack Shipped Servers
下载 Modpack Shipped Servers
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Modpack Shipped Servers
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Modpack Shipped Servers
下载 Modpack Shipped Servers
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
1.1.2
更改包名并现代化发布/构建脚本
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧