首先,截止工业长路目前更新到0.8.0版本,工业长路的流体并没有统一标签,而柴油动力模组的流体是统一标签的,如果各位想两个模组都一起使用玩,但又不想开采完这边的原油、又要开采另一边的原油,两边原油和产物又不能互通被烦死。建议使用kubejs给他们统一标签。

脚本文件放在.minecraft\versions\1.20.1-Forge_47.2.0\kubejs\server_scripts文件里。

  1. 我发现柴油动力的原油没有统一标签,所以工业长路和柴油动力我都加了标签,特别是静止的流体和流动的流体都要加标签,否则不生效。无论是柴油、汽油,在生存中,这些都是要原油经过分馏才可获得的,由于工业长路机器不识别标签,而柴油动力的识别,所以只需要改写柴油和汽油即可。

  2. 删除掉柴油动力的原油的分馏配方,然后覆写原油分馏配方,原油要写成是"fluidTag": "forge:crude_oil",节省重复写的麻烦,这里各位也可以直接删除掉柴油动力的分馏配方,原油处理全部由工业长路处理。

  3. 工业长路的分馏配方没有太多改写,首先删掉原油的两个原本的原油分馏配方,然后覆写,配方编写都是拆包复制粘贴的,唯一改写就是把原油的fluid改成fluidTag,使其识别流体标签进行处理。

//给工业长路和柴油动力的原油、柴油、汽油添加标签。
ServerEvents.tags('fluid',event =>{
    event.add('forge:crude_oil', 'tfmg:crude_oil_fluid'),
    event.add('forge:crude_oil', 'tfmg:flowing_crude_oil_fluid'),
    event.add('forge:crude_oil','createdieselgenerators:crude_oil'),
    event.add('forge:crude_oil','createdieselgenerators:flowing_crude_oil'),
    event.add('forge:diesel', 'tfmg:diesel'),
    event.add('forge:diesel', 'tfmg:flowing_diesel'),
    event.add('forge:fuel', 'tfmg:diesel'),
    event.add('forge:fuel', 'tfmg:flowing_diesel'),
    event.add('forge:gasoline', 'tfmg:gasoline'),
    event.add('forge:gasoline', 'tfmg:flowing_gasoline'),
    event.add('forge:fuel', 'tfmg:gasoline'),
    event.add('forge:fuel', 'tfmg:flowing_gasoline')
})
//createdieselgenerators:crude_oil
//createdieselgenerators:flowing_crude_oil
//createdieselgenerators:diesel
//createdieselgenerators:flowing_diesel
//createdieselgenerators:gasoline
//createdieselgenerators:flowing_gasoline

//tfmg:crude_oil_fluid
//tfmg:flowing_crude_oil_fluid
//tfmg:diesel
//tfmg:flowing_diesel
//tfmg:gasoline
//tfmg:flowing_gasoline

//覆写柴油动力分馏配方
ServerEvents.recipes( event =>{
    event.remove({id: 'createdieselgenerators:distillation/crude_oil'})
    event.recipes.createdieselgenerators.distillation(
        {
            "type": "createdieselgenerators:distillation",
            "ingredients": [
              {
                "fluidTag": "forge:crude_oil",
                "amount": 100
              }
            ],
            "heatRequirement": "heated",
            "processingTime": 100,
            "results": [
              {
                "fluid": "tfmg:diesel",
                "amount": 50
              },
              {
                "fluid": "tfmg:gasoline",
                "amount": 50
              }
            ]
        }
    )
    //覆写工业长路分馏配方
    event.remove({id:'tfmg:fractional_distillation/crude_oil'})
    event.recipes.tfmg.advanced_distillation(
        {
            "type": "tfmg:advanced_distillation",
            "ingredients": [
         
              {
                "fluidTag": "forge:crude_oil",
                "nbt": {},
                "amount": 100
              }
            ],
            "results": [
              {
                "fluid": "tfmg:heavy_oil",
                "amount": 40
              },
              {
                "fluid": "tfmg:diesel",
                "amount": 30
              },
              {
                "fluid": "tfmg:kerosene",
                "amount": 20
              },
              {
                "fluid": "tfmg:naphtha",
                "amount": 20
              },
              {
                "fluid": "tfmg:gasoline",
                "amount": 40
              },
              {
                "fluid": "tfmg:lpg",
                "amount": 30
              }
            ]
        }
    )
    event.remove({id:'tfmg:fractional_distillation/crude_oil_sus'})
    event.recipes.tfmg.advanced_distillation(
        {
            "type": "tfmg:advanced_distillation",
            "ingredients": [
         
              {
                "fluidTag": "forge:crude_oil",
                "nbt": {},
                "amount": 100
              }
            ],
            "results": [
              {
                "fluid": "tfmg:heavy_oil",
                "amount": 40
              },
              {
                "fluid": "tfmg:diesel",
                "amount": 30
              },
              {
                "fluid": "tfmg:kerosene",
                "amount": 20
              },
              {
                "fluid": "tfmg:gasoline",
                "amount": 40
              },
              {
                "fluid": "tfmg:lpg",
                "amount": 30
              }
            ]
        }
    )
})

这是成功后的结果:
机械动力中柴油动力与工业长路的原油、柴油、汽油可以互通使用-第1张图片机械动力中柴油动力与工业长路的原油、柴油、汽油可以互通使用-第2张图片