Structure DFU Cache
通过在磁盘上缓存升级后的结构模板,加速整合包中的世界加载和 /reload。
许多结构和地牢模组附带 .nbt 结构文件,这些文件是在较旧的 Minecraft 版本中保存的,导致原版 DataFixerUpper (DFU) 每次打开世界或运行 /reload 时都必须重新升级完全相同的模板。Structure DFU Cache 将过时的结构模板一次性升级到本地 cache/structure_dfu_cache/ 文件夹,并在后续启动时直接提供升级后的文件。

为什么使用它
- 一次升级,跳过重复工作:自动检测整合包或数据包的变化;当没有变化时,预热世界加载只需几毫秒即可验证缓存,而不是重新转换数千个结构文件。
- 仅处理过时的模板:已经匹配当前 Minecraft 版本(或超出安全大小限制)的结构文件将被保留原样,不会复制占用磁盘空间。
- 对大型整合包友好内存管理:当客户端或服务器堆内存紧张时(
-Xmx <= 6.8G),会自动限制后台工作线程,防止初始缓存构建期间内存激增。
- 内置状态屏幕、OP 命令及聊天就绪通知:可以从 Mod Menu / Forge / NeoForge 配置屏幕或通过
/structuredfucache status 和 /structuredfucache clear(仅限 OP)检查准备时间、已升级结构数量和缓存磁盘使用情况——或触发完全重建。默认情况下,向加入游戏的 OP 或单人游戏主机发送一条简洁的缓存状态聊天通知(notifyInChat = true;设置为 false 以静音聊天)。
- 随时添加或移除都安全:与 Lithium、ModernFix、FerriteCore、C2ME 和 LazyDFU 协同工作,且永远不会修改你的世界存档。

配置
在游戏中编辑或在 config/structure_dfu_cache.toml 中编辑:
# 主开关。设置为 false 可绕过缓存并直接加载原始的模组/数据包结构。
enabled = true
# 初始/增量缓存构建期间的最大后台线程数(0 = 根据空闲堆内存自动选择 1..4)。
maxWorkers = 0
# 在 INFO 级别记录详细的缓存构建诊断信息。
verboseLogging = false
# 向加入游戏的 OP / 单人游戏主机发送一条简洁的缓存状态聊天通知(默认开启;设置为 false 以静音聊天)。
notifyInChat = true
Structure DFU Cache
Speeds up world loading and /reload in modpacks by caching upgraded structure templates on disk.
Many structure and dungeon mods ship .nbt structure files saved on older Minecraft versions, forcing vanilla DataFixerUpper (DFU) to re-upgrade the exact same templates every time you open a world or run /reload. Structure DFU Cache upgrades outdated structure templates once into a local cache/structure_dfu_cache/ folder and serves the upgraded files directly on future launches.

Why Use It
- Upgrade once, skip repeat work: Automatically detects modpack or datapack changes; when nothing changed, warm world loads validate the cache in a few milliseconds instead of re-converting thousands of structure files.
- Only touches outdated templates: Structure files that already match the current Minecraft version (or exceed safe size limits) are left untouched without duplicating disk space.
- RAM-friendly on heavy packs: Automatically throttles background worker threads when your client or server runs with tight heap headroom (
-Xmx <= 6.8G) so initial cache builds don't spike memory.
- Built-in status screen, OP commands & chat ready notice: Check prepare time, upgraded structure counts, and cache disk usage — or trigger a clean rebuild — from the Mod Menu / Forge / NeoForge config screen or via
/structuredfucache status and /structuredfucache clear (OPs only). Sends a single concise cache status notice in chat to joining OPs or the singleplayer host by default (notifyInChat = true; set false for silent chat).
- Safe to add or remove anytime: Works alongside Lithium, ModernFix, FerriteCore, C2ME, and LazyDFU, and never modifies your world saves.

Configuration
Edit in-game or in config/structure_dfu_cache.toml:
# Master switch. Set false to bypass the cache and load raw mod/datapack structures directly.
enabled = true
# Max background threads during initial/incremental cache builds (0 = automatic 1..4 based on free heap).
maxWorkers = 0
# Log detailed cache build diagnostics at INFO level.
verboseLogging = false
# Send a single concise cache status notice in chat to joining OPs / singleplayer host (on by default; set false for silent chat).
notifyInChat = true
评论 0
登录后参与评分
还没有评论,来抢沙发吧