feat: 新增无尽喷漆罐并完善交互 - #47
Open
alcox233 wants to merge 2 commits into
Open
Conversation
Author
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
- 单一物品通过 NBT 保存当前颜色/溶剂,耐久条显示所选颜色 - 右键方块上色,右键空气打开调色盘,潜行+滚轮切换颜色(AE 风格) - 批量上色 API(paintBlocks / flag 2)降低连锁喷漆卡顿 - 换色播放 GT5 同款 spraycan_shake 音效 - 中英文与繁中文案、物品模型与贴图
alcox233
force-pushed
the
feature/infinite-spray-can
branch
from
July 18, 2026 13:49
5cc0d59 to
958ab73
Compare
This was referenced Jul 18, 2026
behaviour.setting.voiding_mode/input_limit/circuit 四个键属于 机器内存卡 PR(#54),从本 PR 移除以避免合并冲突。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
无尽喷漆罐
单一可复用喷漆罐:颜色/溶剂存在 NBT 中,不再「一色一物品」。
操作
实现要点
InfiniteSprayCanBehaviour:NBT 存色槽;无限耐久;耐久条指示当前颜色ColorSprayBehaviour抽出共享paintArea/paintBlocks(flag 2 批量),有限罐与无尽罐共用上色逻辑CPacketSprayCanAction同步服务端spraycan_shake对既有有限喷漆罐的行为影响(重构顺带)
DyeColor方块属性的方块此前从未被真正上色——旧代码state.setValue(...)丢弃返回值且不setBlock,却照常消耗耐久;现已真正落地方块。recolorBlockNoState的属性拷贝同样修复。IPaintable链路耗尽时把罐子替换成ItemStack.EMPTY(物品直接消失),仅方块链路才换成空罐;现统一为空罐。备注
ButtonWidget中客户端/服务端两侧均执行,选中框即时刷新已确认🤖 Generated with Claude Code