基于TFC密封大桶配方自动创建CreateDieselGenerators发酵与批量发酵配方#24
Open
dalizi2333 wants to merge 10 commits into
Open
Conversation
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.
密封大桶配方迁移到 CDG 发酵配方
概述
将 TFC 的
tfc:barrel_sealed(密封大桶)配方自动转换为 CDG 的发酵配方(Basin Fermenting / Bulk Fermenting),使原本需要人力操作的密封大桶配方可以通过 Create 机械自动化处理,同时保留原配方的输入输出逻辑。文件结构
fermenting_from_barrel.js — 批量转换引擎
功能
遍历所有
tfc:barrel_sealed类型的配方,自动计算倍率并生成对应的 Create 发酵配方。转换流程
Basin Fermenting 配方
Bulk Fermenting 配方
floor(9 / 原配方物品数),即 9 格槽位最多能处理几份tfcagedalcohol:aged*)tfc:barrel/mortar)mortar_to_mixing.js处理总体来说,Basin Fermenting更适合吞吐大量物品,Bulk Fermenting更适合吞吐大量流体,二者并非完全的上位替代关系
启动验证
脚本启动时会验证 TFC 的堆叠修改是否已正确加载(检查羊毛堆叠是否为 32),如果未加载会输出警告并要求
/reload,防止倍率计算不准确。输出统计
转换完成后会在日志中输出:
Basin Fermenting配方生成数量Bulk Fermenting配方生成数量mortar_to_mixing.js — 砂浆配方迁移
动机
TFC 原版的砂浆配方需要密封大桶,流程繁琐、耗时长。将其改为 Create 的 Mixing 配方,可以直接通过动力搅拌器自动化生产。
配方
#c:sands(任意沙) + 400mBtfc:limewater(石灰水)tfc:mortar(砂浆)配方 ID
kubejs:tfc_barrel_sealed/mixing/mortar分支信息
feature/sealed-barrel-migrationbiodieselFix分支,同时同步了2026年5月18日的Kubejs脚本改动47a85a8— 简化并重构密封大桶配方迁移脚本a5d5a31— 应群友要求,修改砂浆的合成方式