功能说明
为 Create 的工厂仪表(Factory Gauge)添加中键点击“输入精确数量”弹窗。突破原版 100 组拖拽条限制,直接输入数值即可。
特性
- 中键点击工厂仪表的目标数量选择器,将打开文本输入弹窗,而非使用拖拽操作
- 默认填充当前仪表值,便于微调现有数值,无需从头重新输入
- 支持在“物品”和“组”单位间切换,标签清晰明了,确认前即可明确输入数值的含义
- 通过 Create 原有的网络包提交数据——不引入任何服务端新行为,仅是设置相同数据的更快捷方式
- 无效输入(空值或非数字)会闪烁提示消息,而非静默无反应
- 仅针对工厂仪表生效——漏斗、电机速度控制器、曲柄以及其他复用 Create 通用“数值设置”界面的组件均不受影响
兼容性
基于 NeoForge 1.21.1 下的 Create 6.0.10 构建并测试。纯客户端模组——Create 本身已要求服务端存在,且本模组未添加任何服务端逻辑。通过 Mixin 钩入 Create 的 ValueSettingsScreen,因此与 Create 的内部 UI 代码紧密耦合;若未来 Create 版本大幅更改该部分代码,可能需要相应更新。
已知限制
- 选择“组”单位时,会将输入的数值乘以过滤物品的最大堆叠数量,以匹配原版拖拽条在“组”模式下的行为——例如对最大堆叠为 64 的物品在“组”模式下输入
5,设定的阈值是 320 个物品,而非 5 组。若未提前了解此机制,容易踩坑。
- 确认或取消弹窗后,界面会直接返回游戏画面,而不会重新打开仪表原有的选择器界面。
致谢
本模组由人类开发者与 Claude 协作完成——详见 GitHub 仓库,其中包含 AI 使用声明及完整变更日志。
What This Does
Adds a middle-click "type an exact amount" popup to Create's Factory Gauge. Aim past the vanilla 100-stack drag-bar limit and just type the number instead.
Features
- Middle-click a Factory Gauge's target-amount picker to open a text entry popup instead of dragging
- Prefilled with the gauge's current value, so you can nudge an existing number instead of retyping from scratch
- Toggle between Items and Stacks units, clearly labeled, so it's obvious what your typed number will mean before you confirm
- Submits through Create's own existing network packet -- no new serverside behavior, just a faster way to set the same data
- Invalid input (empty, non-numeric) flashes a message instead of silently doing nothing
- Scoped specifically to Factory Gauges -- funnels, the motor speed controller, the crank, and anything else reusing Create's generic Value Settings board are left untouched
Compatibility
Built and tested against Create 6.0.10 for NeoForge 1.21.1. Client-side only -- Create is already required server-side regardless, and this mod adds no server logic of its own. Hooks into Create's ValueSettingsScreen via Mixin, so it's tied fairly closely to Create's internal UI code and may need updates if that changes significantly in a future Create release.
Known limitations
- Selecting "Stacks" multiplies your typed number by the filtered item's max stack size, matching the vanilla drag-bar's own behavior in Stacks mode -- typing
5 on Stacks for a 64-stack item sets a threshold of 320 items, not 5. Easy to get bitten by if you're not expecting it.
- Confirming or cancelling the popup closes straight back to gameplay rather than reopening the gauge's normal picker screen.
Credits
Built collaboratively with Claude -- see the GitHub repo for the AI disclosure and full changelog.
评论 0
登录后参与评分
还没有评论,来抢沙发吧