LootPregenerator 信息
这是一个简单的服务端模组,它异步地从战利品容器中生成战利品,并且仅在主服务器线程上应用更改,这意味着它对游戏性的影响非常小(除非调整配置,我稍后会提到这一点)。
该模组的核心目的是减少或消除在箱子中生成战利品的等待时间。由于某些箱子包含通往远处结构的地图,尝试在生成过程中打开它们会导致你不得不等待,现在不再如此了!
简要概述
-
服务端模组(适用于 1.21.1,Fabric;也可在单人游戏中用于客户端)
-
仅在新生成的区块中异步计算战利品容器的掉落物
-
包含一个可选的数据仪表板,用于监控指标和模组控制(具体取决于配置)
-
兼容使用原版战利品表生成的模组(例如 Deeper and Darker)
-
通过考虑以下变量来镜像 Minecraft 的战利品生成系统:
- 世界种子
- 战利品表键值
- 战利品表种子
- 数据包
- 以及其他一些因素
-
如果检测到服务器负载过高,会自动限制战利品计算和提交的频率(通过 config.json 中 performance.pause-above-average-tick-ms 设置的值触发,默认值为 35ms)
-
提供在游戏内启动/停止模组的功能,仅限 OP 使用(/lootpregen <参数>)
-
大量配置选项,可按你的喜好自定义模组!
命令:
要查看模组当前状态、对其进行控制或应用更改,请使用以下命令。请注意,只有 OP(管理员)才能使用这些命令!
- 使用
/lootpregen status 获取模组的当前状态原始输出
- 使用
/lootpregen metrics 获取模组当前数据和指标的原始输出
- 使用
/lootpregen queue 查看待预生成的区块队列
- 使用
/lootpregen pause 暂停模组及其预生成系统
- 使用
/lootpregen resume 恢复之前已暂停的模组及其预生成系统
- 使用
/lootpregen reload 重新加载模组并应用来自 config.json 的新设置
配置文件
在服务器/客户端目录下的 config\lootpregenerator.json 中访问配置文件。
配置文件中提供了许多选项,让你可以根据自己的喜好调整模组!请注意,某些选项可能会导致服务器负载增加,因此在性能部分进行调整时请谨慎操作!
若要恢复默认设置,请删除配置文件并重启服务器或客户端!
版本信息
本模组已由我在 1.21.1 Fabric 环境下测试过,因此可能与 1.21.x 兼容。
我推荐你自己尝试一下!
其他须知
请记住,一切皆有可能变化!随时可能会有新功能加入!
只要我还能维护,我就会继续支持本模组,并且可能会推出适用于 26.1 Fabric 的版本。Forge 版本目前尚不确定。
LootPregenerator Information
This is a simple, server-sided mod, that generates loot from loot-containers asynchronously and only applies the changes on the main server thread, meaning it has only a very small impact on gameplay (except when tweaking the config, I'll get to that later)
The core reason of this mod is to remove or reduce the waiting time of loot generation in chests. As some chests contain maps to structures far away, attempting to open it while generating makes you wait, not anymore!
Short Overview
- Server sided Mod (for 1.21.1, Fabric; can also be used on client for singleplayer)
- Calculates loot for loot-containers only in new generated chunks asynchronously
- Includes an optional dashboard for metrics and mod controls (depending on configuration)
- Is compatible with mods that use vanilla loottable generation (Such as Deeper and Darker)
- Mirrors Minecraft loot generation system by taking the following variables into account:
-
-
-
-
-
- and a few other things aswell
- Automatically throttles loot calculation and commiting if high server load detected (triggered by set value in config.json under performance.pause-above-average-tick-ms, default is 35ms)
- Commands to start/stop the mod in-game, OP-only (/lootpregen <args>)
- Many config options to customize the mod to your likings!
Commands:
To see what the mod is up to, to control it, or to even apply changes, use these commands below. Only OPs can use these commands though!
- Use /lootpregen status to get a raw dump of the current status of the mod
- Use /lootpregen metrics to get a raw dump of the mods' current data and metrics
- Use /lootpregen queue to view the current queue of the chunks to pregenerate
- Use /lootpregen pause to pause the mod and its pregeneration systems
- Use /lootpregen resume to resume the mod and its pregeneration systems that were previously paused
- Use /lootpregen reload to reload the mod and apply the new settings from the config.json
Config
Access the config in the server/client directory under config\lootpregenerator.json
The config features many options to tweak the mod to your liking! Be aware that some can lead to higher server load, so careful when playing around in the performance section!
To revert to default settings, delete the config file and restart the server or your client!
Version Info
This mod has been tested by me on 1.21.1 Fabric, meaning is may be compatible with 1.21.x
I recommend trying it out yourself!
Miscellaneous
Keep in mind that nothing is final! There can always be new additions!
I will keep mainting this mod as long as I can, and I will probably make a version for 26.1 Fabric. Forge is unknown at this time.
评论 0
登录后参与评分
还没有评论,来抢沙发吧