Mekanism 裂变配方
为 Mekanism Generators 制作的一个非常独特的附加模组。
这是什么?
安装此模组后,你可以为 Mekanism 的裂变反应堆添加实际的配方。以下是一个使用不产生热量的裂变反应堆将氢气转化为氧气的示例:

如何实现?
此模组使用了一种被称为 Mixins 的“肮脏”技巧(混合注入)。它在运行时修改了 Mekanism 的代码。通过创建新的配方类型并强制裂变反应堆接受它,你现在可以为 Mekanism 添加自定义裂变配方。
裂变配方
你只需要像数据包一样创建配方即可。以下是配方 JSON 文件应呈现的样子:
{
"type": "mekanism:fission",
"input": {
"chemical": "mekanism:fissile_fuel",
"amount": 1
},
"output": {
"id": "mekanism:nuclear_waste",
"amount": 1
},
"heat": 1
}
- 类型:如果你要添加裂变配方,请始终使用 "mekanism:fission"。
- 输入
- 气体:输入的气体。如果你正在制作模组,可以添加你自己的气体。
- 数量:输入量。
- 输出:与输入类似。
- 热量:产生的热量值。1 是易裂变燃料通常产生的热量。
- 你也可以在此字段中使用以 x 为主变量的方程。例如,"x*x" 将使燃烧 0.1mB 的燃料产生 0.01 的热量。
在版本 1.1.0 中,用户可以添加冷却剂配方。有两种类型的冷却剂配方:
流体冷却剂配方
用于所有流体(如水)冷却,请使用此选项。以下是示例 JSON:
{
"type": "mekanism:fluid_coolant",
"input": {
"tag": "minecraft:water",
"amount": 1
},
"output": {
"id": "mekanism:steam",
"amount": 1
},
"thermalEnthalpy": 10,
"conductivity": 0.5,
"efficiency": 0.2
}
- 类型:如果你要添加流体冷却剂配方,请始终使用 "mekanism:fluid_coolant"。
- 输入
- 流体/标签:要接受的流体。它可以是单个流体类型(将
tag 更改为 fluid)或流体标签(tag)。
- 数量:输入量。
- 输出:
- 气体:输出的气体。如果你正在制作模组,可以添加你自己的气体。
- 数量:输出量。
- 热焓:越高 = 沸腾越少 & 越凉爽
- 导电性:越高 = 越凉爽
- 效率:越高 = 沸腾越多
气体冷却剂配方
用于所有化学(如钠)冷却,请使用此选项。以下是示例 JSON:
{
"type": "mekanism:gas_coolant",
"input": {
"chemical": "mekanism:sodium",
"amount": 1
},
"output": {
"id": "mekanism:superheated_sodium",
"amount": 1
},
"thermalEnthalpy": 5,
"conductivity": 1
}
- 类型:如果你要添加流体冷却剂配方,请始终使用 "mekanism:fluid_coolant"。(注:原文此处可能有误,通常应为 gas_coolant,但根据规则保留原文语义翻译,实际用户需注意代码逻辑可能存在的笔误)
- 输入/输出:参考裂变配方。
- 热焓与导电性:参考流体冷却剂配方。
这段代码片段
展示了热焓、导电性和效率之间的关系。
更多示例,
请查看 test_recipes 目录。
为什么?
这最初是在 Sky Farm 中实现的,但我觉得这个功能具有其自身的潜力,所以我将其提取出来,并制作成了一个独立的模组。
帮助?
如果你觉得我的项目很棒,你可以在 Ko-fi 上支持我!
许可证
本模组依据 GNU GPLv3 发布。
Mekanism Fission Recipe
A really unique addon for Mekanism Generators.
What?
With this mod installed, you can add actual recipes for Mekanism's Fission Reactor. Below is an example of converting hydrogen to oxygen with the fission reactor that generates no heat:

How?
This mod uses a dirty hack called Mixins. It changes Mekanism's code at runtime. By creating a new recipe type and forcing the Fission Reactor to accept it, you can now add custom fission recipes to Mekanism.
Fission Recipe
You just need to create the recipe like a datapack. Here's how the recipe JSON file should look like:
{
"type": "mekanism:fission",
"input": {
"chemical": "mekanism:fissile_fuel",
"amount": 1
},
"output": {
"id": "mekanism:nuclear_waste",
"amount": 1
},
"heat": 1
}
- Type: Always use "mekanism:fission" if you are adding a fission recipe.
- Input
- Gas: The input gas. If you're making a mod you can add your own gas.
- Amount: Input amount.
- Output: Similar to input.
- Heat: The amount of heat generated. 1 is the amount Fissile Fuel normally creates.
- You can also use equations in this field with x as subject. For example, "x*x" will make burning 0.1mB of fuel generate 0.01 heat.
With version 1.1.0, users can add coolant recipes. There are 2 types of coolant recipes:
Fluid Coolant Recipe
For all fluid (like water) cooling, use this. The following is a sample JSON:
{
"type": "mekanism:fluid_coolant",
"input": {
"tag": "minecraft:water",
"amount": 1
},
"output": {
"id": "mekanism:steam",
"amount": 1
},
"thermalEnthalpy": 10,
"conductivity": 0.5,
"efficiency": 0.2
}
- Type: Always use "mekanism:fluid_coolant" if you are adding a fluid coolant recipe.
- Input
- Fluid/Tag: The fluid to accept. It can be a single fluid type (change
tag to fluid) or a fluid tag (tag).
- Amount: Input amount.
- Output:
- Gas: The output gas. If you're making a mod you can add your own gas.
- Amount: Output amount.
- Thermal Enthalpy: Higher = Boil less & Cooler
- Conductivity: Higher = Cooler
- Efficiency: Higher = Boil more
Gas Coolant Recipe
For all chemical (like sodium) cooling, use this. The following is a sample JSON:
{
"type": "mekanism:gas_coolant",
"input": {
"chemical": "mekanism:sodium",
"amount": 1
},
"output": {
"id": "mekanism:superheated_sodium",
"amount": 1
},
"thermalEnthalpy": 5,
"conductivity": 1
}
- Type: Always use "mekanism:fluid_coolant" if you are adding a fluid coolant recipe.
- Input/Output: Refer to Fission Recipe.
- Thermal Enthalpy & Conductivity: Refer to Fluid Coolant Recipe.
This code snippet
is the relationship between thermal enthalpy, conductivity and efficiency.
For More Examples,
Please take a look at the test_recipes directory.
Why?
This is originally implemented in Sky Farm, but I feel like this feature has its own potential, so I took it out, and made it a standalone mod.
Help?
If you find my projects great, you can support me on Ko-fi!
License
This mod is published under GNU GPLv3.
评论 0
登录后参与评分
还没有评论,来抢沙发吧