Skip to content

新增功能: 将选区内容器中的物品算做材料列表中的已有物品#124

Merged
BiliXWhite merged 9 commits into
BiliXWhite:masterfrom
Cjsah:main
May 17, 2026
Merged

新增功能: 将选区内容器中的物品算做材料列表中的已有物品#124
BiliXWhite merged 9 commits into
BiliXWhite:masterfrom
Cjsah:main

Conversation

@Cjsah
Copy link
Copy Markdown

@Cjsah Cjsah commented May 16, 2026

名称: selectionMaterials

Copilot AI review requested due to automatic review settings May 16, 2026 11:48
@BiliXWhite
Copy link
Copy Markdown
Owner

这个功能看起来用途不是很大...可以讲讲具体的用途吗

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Cjsah
Copy link
Copy Markdown
Author

Cjsah commented May 16, 2026

这个功能看起来用途不是很大...可以讲讲具体的用途吗

这可太有用了好吧, 收集投影材料的时候, 划个选区, 选区里的箱子潜影盒之类的容器里面的物品都算作我已经收集了的材料, 在收集大量物品, (比如世吞材料)的时候及其有用

还有一种情况就是多个人一起收集材料, 如果要看收集进度, 需要几个人交换收集物品一个个排除, 但是把物品都扔在选区里的箱子里, 就可以直接同步进度

@BiliXWhite
Copy link
Copy Markdown
Owner

好的,先处理一下多版本适配的问题,我还在折腾缺失材料显示,完事了我会合并的

@BiliXWhite BiliXWhite self-requested a review May 17, 2026 11:58
@BiliXWhite BiliXWhite merged commit cfd846b into BiliXWhite:master May 17, 2026
1 check passed
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
新增功能: 将选区内容器中的物品算做材料列表中的已有物品
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants