赞助商
我与 Apex Hosting 达成了合作!根据我的经验,他们的服务器延迟极低、易于管理且质量上乘。请在这里查看:
RandomConfigs 是一款实用模组,允许你设置默认配置、游戏规则、难度和世界边界。安装在客户端时,它与原版服务器完全兼容;安装在服务器上时,它与原版客户端完全兼容。这也意味着客户端可以连接与服务器不同版本的模组。
1.13 Rift 版本需要 Rift。
1.13.2 Rift 版本需要 Chocohead 的 Rift fork,可在此 下载。
Fabric 版本可在此处找到。
默认配置
RandomConfigs 从 config/randomconfigs/defaultconfigs.json 读取一个由对象组成的数组,其格式如下:
[
{
"source": String,
"destination": String,
"side": ConfigSide,
"version": int
}
]
"source" 指的是 config/randomconfigs/defaultconfigs 中的任意文件。
"destination" 指的是 Minecraft 目录中的任意文件。
"side" 可以是 "client"(客户端)、"server"(服务端)或 "both"(两者)。
如果“destination”不存在,则会将“source”所指的文件复制到“destination”。
“version”可以是任意整数值。如果“version”发生变化,配置文件将被强制更新。如果您已经随整合包分发了一个默认配置文件并希望强制进行更改,这将非常有用。
RandomConfigs 的默认配置功能比 More Default Options 更早加载,这意味着它与更多模组兼容。RandomConfigs 仅支持服务端运行。
默认游戏规则
RandomConfigs 可以根据游戏模式和世界类型设置默认游戏规则。它还可以设置默认的世界边界大小和难度,并强制设定游戏规则以防止被更改。默认游戏规则存储在 config/randomconfigs/defaultgamerules.json 中,示例可在 此处 查看。需要注意的是,在 1.16 版本中,仅支持 "default"(默认)和 "flat"(平坦)两种世界类型。
攻击速度
RandomConfigs 允许为特定物品设置不同的攻击速度。此外,可以在攻击冷却期间禁用攻击。攻击速度配置存储在 config/randomconfigs/attackspeeds.json 中,示例可在 此处 查看。
攻击速度控制着冷却时间的长度。所需时间为 1 / 攻击速度 * 20 刻。工具拥有各自的攻击速度修正系数,这意味着根据手持工具的不同,实际攻击速度会有所差异。默认攻击速度为 4.0,这意味着空手需要四分之一秒才能达到最大伤害。剑会减少 2.4 的攻击速度,而斧头则会根据材质不同在 3 到 3.2 之间。例如,如果剑的攻击速度设置为低于 2.4,实际攻击速度将为负值。
可以使用 /asreload 和 /asreloadclient 命令重新加载攻击速度配置,尽管在 Rift 或 Forge 1.13 中不存在 /asreloadclient 命令。目前该命令在 Forge 1.14 及更高版本中也不存在。
注意:RandomConfigs 使用 Jankson 处理 JSON,可修复缺少逗号、省略引号等异常问题。
Sponsor
I've partnered with Apex Hosting! In my experience, their servers are lag-free, easy to manage, and of high quality. Check them out here:
RandomConfigs is a utility mod that allows you to set default configurations, gamerules, difficulties, world borders. When installed on the client, it is completely compatible with vanilla servers, and when installed on a server, it is completely compatible with vanilla clients. This also means that the client can connect with a different version of the mod to the one on the server.
The 1.13 Rift version requires Rift.
The 1.13.2 Rift version requires Chocohead's fork of Rift, which can be downloaded here.
The Fabric version can be found here.
Default configs
RandomConfigs reads an array of objects from config/randomconfigs/defaultconfigs.json, written in the following format:
[
{
"source": String,
"destination": String,
"side": ConfigSide,
"version": int
}
]
"source" refers to any file in config/randomconfigs/defaultconfigs.
"destination" refers to any file within the Minecraft directory.
"side" can be one of "client", "server", and "both".
The file referred to by "source" is copied to "destination" if "destination" does not exist.
"version" is just any integer value. If "version" changes, the config is forcibly updated. This is useful if you have already shipped a default config with your modpack and want to force a change.
RandomConfigs' default configs feature loads earlier than More Default Options' version, which means it is compatible with more mods. RandomConfigs also works server-side only.
Default gamerules
RandomConfigs can set default gamerules depending on game mode and world type. It can also set the default world border size and difficulty and forcibly set gamerules so they cannot be changed. Default gamerules are stored in config/randomconfigs/defaultgamerules.json and an example can be found here. It should be noted that on 1.16, only the "default" and "flat" world types are supported.
Attack speeds
RandomConfigs allows different attack speeds to be set for specific items. Additionally, attacks can be disabled during the attack cooldown. The attack speed configuration is stored in config/randomconfigs/attackspeeds.json and an example can be found here.
The attack speed controls the length of the cooldown time. The time taken is 1 / attack speed * 20 ticks. Tools have their own attack speed modifiers, which means that depending on the tool being held, the attack speed will differ. By default, the attack speed is 4.0, which means that an empty hand will take a quarter of a second to reach maximum damage. Swords take 2.4 from the attack speed, and axes take between 3 and 3.2 depending on the material. For example, if the attack speed for swords is set to below 2.4, the actual attack speed will be negative.
The attack speed configuration can be reloaded using the /asreload and /asreloadclient commands, although the /asreloadclient command does not exist on Rift or Forge 1.13. It also currently does not exist for Forge 1.14 and higher.
NOTE: RandomConfigs uses Jankson for JSON processing, which fixes quirks such as missing commas and omitted quotes.
下载 RandomConfigs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RandomConfigs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RandomConfigs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RandomConfigs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RandomConfigs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RandomConfigs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RandomConfigs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RandomConfigs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RandomConfigs
下载 RandomConfigs
初始 1.16.2 移植版本。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
? 使用命令保存和加载玩家或他人的背包/套装。
模组
一个基于构建器的 Minecraft 配置库!
模组
一款轻量级模组,允许服务器管理员对抗透视作弊者。
模组
通过图形界面控制模组加载。适用于需要可选功能的整合包和服务器,也适合不想手动操作文件而希望直接管理模组的极客用户。
模组
一个完整经济模组:玩家余额、动态定价商店、玩家市场、买入订单、货币物品以及网页仪表盘。
模组
? 这是 Serilum 发布的一个自定义模组整合包,请设置你的模组包实例!
评论 0
登录后参与评分
还没有评论,来抢沙发吧