Litematica Container Filler (1.20.1 回溯移植版)
这是 Litematica Container Filler 的 Minecraft 1.20.1 Fabric 移植版本,包含性能优化和稳定性改进。
与原版的不同之处
这是将原版模组回溯移植到 Minecraft 1.20.1 Fabric 的版本。相较于上游版本的关键改进:
- 渲染重构 — 将基于 VertexBuffer 的缓存架构替换为即时模式渲染,修复了 1.20.1 上 3D 相机旋转问题
- 分帧高亮扫描 — 高亮扫描现在分散在多个帧(HighlightScanPass)中进行,以消除单帧性能尖峰
- 高亮渲染缓存 — 引入渲染缓存以减少冗余绘制调用;高亮预算可配置
- 异步 PCA 队列 — PCA 同步和区域扫描现已完全异步;移除了 MiniHUD 反射缓存以提升响应速度
- 可配置缓存 TTL — 缓存容量和生存时间现由用户配置,并配有 GUI 缓存状态监视器
- 精确物品路由 — 改进了容器填充的物品运输路径计算
- 预填充方块验证 — 在填充前验证真实方块状态,以防止不匹配
- UI 超时诊断 — 当容器数据请求超时时自动进行诊断,使故障排除更容易
- 可配置交互距离 — 调整玩家交互范围以适应不同的服务器环境
- 分类调试日志 — 结构化调试日志系统,带有性能热点计时
- 排队 PCA 请求 — PCA 请求现排队处理,具有超时和重试冷却机制,以提高稳定性
- PCA 兼容性包装器 — PCA 接收器已包装,以兼容使用 PCA 协议的其他模组
主要功能
结构图容器填充
根据存储在 Litematica 结构图中的容器 NBT 和槽位布局填充真实容器。
- 单次填充:注视目标容器并按下填充热键。
- 工作状态:持续扫描附近的容器,排队有效任务并自动填充。
- 制造机槽位锁定:即使缺少材料,模组仍优先处理所需的槽位锁定。
- 将双箱视为一个连接的容器处理。
- 支持 Carpet
largeBarrels(必须在配置中手动启用)。
- 可配置填充半径、动作延迟、安全延迟和状态保护。
容器状态高亮
直接在 3D 世界中渲染容器状态:
- 未填充 / 部分填充 / 满足 / 过度填充
- 错误物品 / 未知数据 / 未放置容器
- 手动完成 / 手动需要填充
渲染器使用半透明主体、顶板和动画 3D 任务标记。正在填充的容器、排队中的容器和缺料事件各有独立的动画标记。
高亮颜色、不透明度、任务标记、动画 FPS 限制、渲染半径和每状态切换均可配置。默认禁用 X 射线高亮。
物品替换
物品替换影响实际的填充行为,而不仅仅是材料列表显示:
- 支持全局替换规则和每个结构图的规则(每个结构图的规则优先级更高)。
- 可视化替换选择器。
- 支持精确物品数据:自定义名称、附魔和数据组件。
- 格式:
minecraft:stone->minecraft:cobblestone
- 自定义名称匹配:
minecraft:paper#slot1->minecraft:iron_ingot
- 将物品替换为
minecraft:air 会使填充器忽略该物品。
材料列表集成
- 仅显示建筑方块 / 仅显示容器物品 / 两者一起显示。
- 直接从材料列表打开替换选择器。
- 替换物品的替换标记和工具提示。
- 从你注视的容器中收集缺失的材料列表物品。
库存与潜影盒物流
- 从玩家库存中的潜影盒提取所需物品。
- 支持 QuickShulker。
- 支持 TakeItOut 服务器端协议。
- 如果内容匹配,不同颜色的潜影盒被视为兼容。
- 有序物品存储:当需要空间时,物品首先返回源潜影盒或匹配的潜影盒。
- 慢速点击数据包模式,适用于插件密集或更严格的反作弊服务器。
容器工具
独立的使用注视瞄准容器的工具:
- 清空容器 — 清除目标容器。输出可以掉落、移入库存或两者兼有。
- 全满填充 — 用你库存中明确的物品填充目标容器。
- 同步容器 — 读取模板容器并将其他目标同步到相同的布局。
- 容器打包 — 将目标容器中的物品打包到你库存中的潜影盒里。
- 收集材料 — 从目标容器中收集缺失的 Litematica 材料列表物品。
工具支持上下/前后切换、关闭所有工具、按住重复、同容器冷却和可选的工具 HUD。
容器过滤器
- 禁用 / 白名单 / 黑名单模式。
- 将过滤器应用于结构图填充、容器工具或两者。
- 可视化容器选择器。
- 通配符规则:
minecraft:*_shulker_box
- 通过实体方块、库存接口和常见的类容器方块 ID 自动检测模组容器。
手动容器标记
手动循环容器状态:
适用于当前结构图范围之外的容器。
使用方法
- 默认配置热键:
L + C
- 默认单次填充热键:
V
- 对于连续填充,请在配置中启用 工作状态,绑定热键,并调整填充半径和动作延迟。
依赖项
必需:
可选:
- Mod Menu — 配置界面访问
- QuickShulker — 快速打开和提取末影箱的物品栏
- PCA — 无需打开容器即可获取真实的容器数据
- MiniHUD — 该模组可能会读取其容器预览缓存
- TakeItOut — 支持服务器端末影箱物品提取
注意事项与警告
服务器风险: 自动化的容器操作可能会被服务器插件或反作弊系统标记为异常点击或自动整理。如有需要,请增加操作延迟或启用慢速点击包模式。
空结构图容器清理: 如果启用了此功能,模组可能会从结构图中为空但实际存在的容器中移除物品。请在启用前验证你的结构图和范围设置。
Carpet 大型桶: 仅当服务器确实运行了 Carpet 且启用了 largeBarrels 时才启用此选项。
许可证
本项目采用 LGPL-3.0-only 许可证授权。
Litematica Container Filler (Backport for 1.20.1)
A Minecraft 1.20.1 Fabric port of Litematica Container Filler with performance optimizations and stability improvements.
What's Different from the Original
This is a backport of the original mod to Minecraft 1.20.1 Fabric. Key improvements over the upstream:
- Rendering overhaul — Replaced the VertexBuffer-based cache architecture with immediate-mode rendering, fixing 3D camera rotation issues on 1.20.1
- Split-frame highlight scanning — Highlight scanning is now spread across multiple frames (HighlightScanPass) to eliminate single-frame performance spikes
- Highlight render cache — Introduced a render cache to reduce redundant draw calls; highlight budget is configurable
- Async PCA queue — PCA sync and region scanning are now fully async; removed MiniHUD reflection cache for better responsiveness
- Configurable cache TTL — Cache capacity and time-to-live are now user-configurable, with a GUI cache status monitor
- Accurate item routing — Improved item transport path calculation for container filling
- Pre-fill block validation — Validates the real block state before filling to prevent mismatches
- UI timeout diagnostics — Automatic diagnostics when container data requests time out, making troubleshooting easier
- Configurable interaction distance — Adjust player interaction range to suit different server environments
- Categorized debug logging — Structured debug log system with performance hotspot timing
- Queued PCA requests — PCA requests are now queued with timeout and retry cooldown for improved stability
- PCA compatibility wrapper — PCA receiver is wrapped for compatibility with other mods using the PCA protocol
Main Features
Schematic Container Filling
- Fills real containers according to the container NBT and slot layout stored in the Litematica schematic.
- One-shot filling: look at a target container and press the fill hotkey.
- Work State: continuously scans nearby containers, queues valid tasks, and fills them automatically.
- Crafter slot locking: even if materials are missing, the mod still prioritizes required slot locks.
- Handles double chests as one connected container.
- Supports Carpet
largeBarrels (must be enabled manually in config).
- Configurable fill radius, action delay, safety delay, and state protection.
Container State Highlights
Renders container status directly in the 3D world:
- Unfilled / Partial / Satisfied / Overfilled
- Wrong item / Unknown data / Unplaced container
- Manually completed / Manually needs fill
The renderer uses translucent bodies, top plates, and animated 3D task markers. Containers being filled, queued containers, and missing-material events each have separate animated markers.
Highlight colors, opacity, task markers, animation FPS limits, render radius, and per-state toggles are all configurable. X-ray highlights are disabled by default.
Item Replacement
Item replacement affects actual filling behavior, not only the material list display:
- Supports global replacement rules and per-schematic rules (per-schematic takes priority).
- Visual replacement picker.
- Supports exact item data: custom names, enchantments, and data components.
- Format:
minecraft:stone->minecraft:cobblestone
- Custom-name matching:
minecraft:paper#slot1->minecraft:iron_ingot
- Replacing an item with
minecraft:air makes the filler ignore that item.
Material List Integration
- Show only building blocks / only container items / both together.
- Open the replacement picker directly from the material list.
- Replacement markers and tooltips for replaced items.
- Collect missing material-list items from the container you are looking at.
Inventory & Shulker Logistics
- Extracts required items from shulker boxes in the player inventory.
- Supports QuickShulker.
- Supports the TakeItOut server-side protocol.
- Shulker boxes with different colors are treated as compatible if their contents match.
- Orderly item storage: items are returned to source shulkers or matching shulkers first when space is needed.
- Slow click packet mode for plugin-heavy or stricter anti-cheat servers.
Container Tools
Independent look-at-container tools:
- Clear Container — clears the target container. Output can be dropped, moved to inventory, or both.
- Fill Full — fills the target container with an unambiguous item from your inventory.
- Sync Container — reads a template container and syncs other targets to the same layout.
- Container Packing — packs items from the target container into shulker boxes in your inventory.
- Collect Materials — collects missing Litematica material-list items from the target container.
Tools support next/previous switching, closing all tools, hold-to-repeat, same-container cooldowns, and an optional tool HUD.
Container Filter
- Disabled / Whitelist / Blacklist modes.
- Apply the filter to schematic filling, container tools, or both.
- Visual container picker.
- Wildcard rules:
minecraft:*_shulker_box
- Auto-detects modded containers via block entities, inventory interfaces, and common container-like block IDs.
Manual Container Marks
Manually cycle container state:
- Automatic / Manually completed / Manually needs fill
Works on containers outside the current schematic range.
Usage
- Default config hotkey:
L + C
- Default one-shot fill hotkey:
V
- For continuous filling, enable Work State in the config, bind a hotkey, and adjust the fill radius and action delay.
Dependencies
Required:
Optional:
- Mod Menu — config screen access
- QuickShulker — fast inventory shulker opening and extraction
- PCA — fetch real container data without opening containers
- MiniHUD — the mod may read its container preview cache
- TakeItOut — server-side shulker extraction support
Notes & Warnings
Server risk: Automated container operations may be flagged by server plugins or anti-cheat systems as abnormal clicking or auto-sorting. Increase the action delay or enable slow click packet mode if needed.
Empty-schematic container clearing: If enabled, the mod may remove items from real containers that are empty in the schematic. Verify your schematic and range before enabling.
Carpet large barrels: Only enable this if the server actually runs Carpet with largeBarrels enabled.
License
This project is licensed under LGPL-3.0-only.
评论 0
登录后参与评分
还没有评论,来抢沙发吧