新增功能: 将选区内容器中的物品算做材料列表中的已有物品#124
Merged
Merged
Conversation
Owner
|
这个功能看起来用途不是很大...可以讲讲具体的用途吗 |
There was a problem hiding this comment.
Pull request overview
This PR adds a selectionMaterials feature so Litematica material lists can count ChestTracker-known container contents inside the current Litematica selection as available materials.
Changes:
- Adds a new config option and English/Chinese translations.
- Adds a MaterialListUtils mixin to augment available-item counts.
- Adds ChestTracker memory scanning/conversion logic for selected containers.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/main/resources/litematica-printer.mixins.json |
Registers the new material list mixin. |
src/main/resources/assets/litematica-printer/lang/zh_cn.json |
Adds Chinese strings for the new config. |
src/main/resources/assets/litematica-printer/lang/en_us.json |
Adds English strings for the new config. |
src/main/java/me/aleksilassila/litematica/printer/utils/LitematicaUtils.java |
Adds selection-box collection and applies selected container items to material counts. |
src/main/java/me/aleksilassila/litematica/printer/printer/zxy/chesttracker/MemoryUtils.java |
Reads ChestTracker memories in selected boxes and converts stored stacks to Litematica item counts. |
src/main/java/me/aleksilassila/litematica/printer/mixin/printer/litematica/MixinMaterialListUtils.java |
Wraps Litematica material-list inventory counting calls. |
src/main/java/me/aleksilassila/litematica/printer/config/Configs.java |
Adds the selectionMaterials config option. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Author
这可太有用了好吧, 收集投影材料的时候, 划个选区, 选区里的箱子潜影盒之类的容器里面的物品都算作我已经收集了的材料, 在收集大量物品, (比如世吞材料)的时候及其有用 还有一种情况就是多个人一起收集材料, 如果要看收集进度, 需要几个人交换收集物品一个个排除, 但是把物品都扔在选区里的箱子里, 就可以直接同步进度 |
Owner
|
好的,先处理一下多版本适配的问题,我还在折腾缺失材料显示,完事了我会合并的 |
BiliXWhite
approved these changes
May 17, 2026
EnderPhantomWing
pushed a commit
to EnderPhantomWing-Fork/litematica-printer-BiliXWhite
that referenced
this pull request
May 30, 2026
新增功能: 将选区内容器中的物品算做材料列表中的已有物品
BiliXWhite
added a commit
that referenced
this pull request
May 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
名称:
selectionMaterials