Skip to content

用群峦火箱取代群峦高炉来参与锅炉与引擎的配方合成#26

Open
dalizi2333 wants to merge 3 commits into
nuecloud:kubejsfrom
dalizi2333:feature/blast-furnace-firebox-refactor
Open

用群峦火箱取代群峦高炉来参与锅炉与引擎的配方合成#26
dalizi2333 wants to merge 3 commits into
nuecloud:kubejsfrom
dalizi2333:feature/blast-furnace-firebox-refactor

Conversation

@dalizi2333

Copy link
Copy Markdown

PR: 将 TFC 高炉配方迁移至 tfc_compact.js 并改用 firebox

概述

本 PR 解决了以下问题:

  1. 合并重复的 replaceInput 配方(存在于 event_recipes.jstfc_compact.js 两处)
  2. create:blaze_burner 配方和相关输入替换从 tfc:blast_furnace 改为 tfc:firebox(造价更合理)

变更内容

问题分析

  • 重复代码: event_recipes.jstfc_compact.js 中都存在一模一样的 replaceInput 将原版高炉替换为 TFC 高炉的代码
  • 材料成本: tfc:blast_furnace 造价过于昂贵,使用 tfc:firebox 作为替代更为合适

修改文件

1. server_scripts/event_recipes.js

  • 移除了 create:blaze_burner 配方(原使用 tfc:blast_furnace
  • 移除了 replaceInput 替换原版高炉为 TFC 高炉的代码(避免重复)

2. server_scripts/tfc_compact.js

  • replaceInput 的替换目标从 tfc:blast_furnace 改为 tfc:firebox
  • 添加了 create:blaze_burner 配方,使用 tfc:firebox 作为核心材料

具体变更

# event_recipes.js
- event.shaped(
-   Item.of('create:blaze_burner'),
-   [
-     ' A ',
-     'ABA',
-     ' C '
-   ],
-   {
-     A: '#farmerstfc:magma_block',
-     B: 'tfc:blast_furnace',  # 原使用 tfc:blast_furnace
-     C: 'create:empty_blaze_burner'
-   }
- )

- event.replaceInput(
-   { input: 'minecraft:blast_furnace' },
-   'minecraft:blast_furnace',
-   'tfc:blast_furnace'
- )
# tfc_compact.js
+ // 将 mod 配方中的原版高炉替换为 TFC firebox(造价更低)
  event.replaceInput(
    { input: 'minecraft:blast_furnace' },
    'minecraft:blast_furnace',
-   'tfc:blast_furnace'
+   'tfc:firebox'
  )

+ // create blaze_burner - 使用 tfc:firebox 替代昂贵的 tfc:blast_furnace
+ event.shaped(
+   Item.of('create:blaze_burner'),
+   [
+     ' A ',
+     'ABA',
+     ' C '
+   ],
+   {
+     A: '#farmerstfc:magma_block',
+     B: 'tfc:firebox',  # 改用 tfc:firebox
+     C: 'create:empty_blaze_burner'
+   }
+ )

分支信息

  • 源分支: 20260526base(gundami 维护的 base 分支,基于 b989c907
  • 目标分支: feature/blast-furnace-firebox-refactor(新建)

验证建议

  1. 启动服务器并执行 /reload
  2. 检查日志中是否有 KubeJS 加载错误
  3. 验证 create:blaze_burner 配方是否正确注册(使用 tfc:firebox
  4. 验证其他 mod 配方中对原版高炉的引用是否被正确替换为 tfc:firebox

- 移除event_recipes.js中的重复replaceInput代码
- 将create:blaze_burner配方和相关输入替换从tfc:blast_furnace改为tfc:firebox
- 统一将相关配方集中在tfc_compact.js中管理
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.

1 participant