作者:rebot | 分类:模组
Minecraft 版本: 26.1-snapshot-4 26.1 26.1.1 26.1.2 26.2-rc-1 26.2
平台: fabric
标签: game-mechanics utility
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.
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 be enabled, disabled, or prompt. Case-insensitive.请登录后举报
暂无评论,抢个沙发吧~