本篇教程由作者设定未经允许禁止转载。
在加入Mek以及其他模组时,其他模组例如沉浸工程新增的铝一类矿物由于Mek中没有此类矿物,因此无法通过Mek进行三到五倍矿物处理,而Emendatus Enigmatica模组中加入了一系列矿物对应浆液(例如:污浊铝浆液Dirty Aluminum Slurry)以及矿物碎块,此时可以通过Crt与EE将Mek无法处理的矿物加入.
解压Mek模组,找到data/recipes/processing,此处是所有Mek能够进行矿物处理的矿物配方,此处以铁iron为例:
从上到下分别对应:铁碎块,铁晶体,污浊铁粉,铁粉,铁锭,铁矿,铁碎片,铁浆液的生成配方,enriched是富集配方(富集铁).
在对应的文件夹中即可找到相应配方的json文件,此处以Mek化学溶解室硫酸+铁矿生成污浊铁浆液为例
打开slurry/dirty.json
找到配方后便可以利用Crt新增配方
recipetypeObj.addJSONRecipe(recipeName, json);
recipetypeObj:配方类型,<recipetype:type>.例如化学溶解室对应<recipetype:mekanism:dissolution>.
recipeName:配方名.
json:具体配方文件,与数据包写法相同,但不需要"type",type已经包含在recipetypeObj中.
此处以铝为例,增加化学溶解室硫酸+铝矿生成污浊铝浆液
<recipetype:mekanism:dissolution>.addJSONRecipe("aluminum_to_dirty_flu", {
"itemInput":{"ingredient":{"tag":"forge:ores/aluminum"}},//输入物品,也可以用"item"
"gasInput":{"amount":1,"gas":"mekanism:sulfuric_acid"},//输入气体及所需量
"output":{
"slurry":"emendatusenigmatica:dirty_aluminum",//输出浆液
"amount":1000, //输出气体量
"chemicalType":"slurry"}});//输出类型
进入游戏后(此处输入的是由EE模组提供的铝碎块,<tag:items:forge:ores/aluminum>)
Emendatus Enigmatica模组中浆液ID分别为污浊浆液:emendatusenigmatica:dirty_矿物名;纯净浆液:emendatusenigmatica:clean_矿物名(例:污浊镍浆液emendatusenigmatica:dirty_nickel).
其余配方均可以在相应配方json文件中找到并进行修改.此处提供一套铝相关处理配方,如需换成其他矿物只需将所有aluminum替换为其他矿.
//铝矿-污浊铝浆液-五倍
<recipetype:mekanism:dissolution>.addJSONRecipe("aluminum_to_dirty_flu", {
"itemInput":{"ingredient":{"tag":"forge:ores/aluminum"}},
"gasInput":{"amount":1,"gas":"mekanism:sulfuric_acid"},
"output":{
"slurry":"emendatusenigmatica:dirty_aluminum",
"amount":1000,
"chemicalType":"slurry"}});
//污浊铝浆液-纯净铝浆液-五倍
<recipetype:mekanism:washing>.addJSONRecipe("aluminum_to_clean_flu", {
"fluidInput":{"amount":5,"tag":"minecraft:water"},
"slurryInput":{"amount":1,"slurry":"emendatusenigmatica:dirty_aluminum"},
"output":{"slurry":"emendatusenigmatica:clean_aluminum",
"amount":1}});
//纯净铝浆液-铝晶体-五倍
<recipetype:mekanism:crystallizing>.addJSONRecipe("aluminum_to_crystal", {
"chemicalType":"slurry",
"input":{"amount":200,"slurry":"emendatusenigmatica:clean_aluminum"},
"output":{"item":"emendatusenigmatica:aluminum_crystal"}});
//铝晶体-铝碎片-五倍
<recipetype:mekanism:injecting>.addJSONRecipe("aluminum_to_shard", {
"itemInput":{"ingredient":{"item":"emendatusenigmatica:aluminum_crystal"}},
"gasInput":{"amount":1,"gas":"mekanism:hydrogen_chloride"},
"output":{"item":"emendatusenigmatica:aluminum_shard"}});
//铝矿-铝碎片-四倍
<recipetype:mekanism:injecting>.addJSONRecipe("aluminum_ore_to_shard", {
"itemInput":{"ingredient":{"tag":"forge:ores/aluminum"}},
"gasInput":{"amount":1,"gas":"mekanism:hydrogen_chloride"},
"output":{"item":"emendatusenigmatica:aluminum_shard","count":4}});
//铝碎片-铝碎块-四倍/五倍
<recipetype:mekanism:purifying>.addJSONRecipe("aluminum_to_clump", {
"itemInput":{"ingredient":{"item":"emendatusenigmatica:aluminum_shard"}},
"gasInput":{"amount":1,"gas":"mekanism:oxygen"},
"output":{"item":"emendatusenigmatica:aluminum_clump"}});
//铝矿-铝碎块-三倍
<recipetype:mekanism:purifying>.addJSONRecipe("aluminum_ore_to_clump", {
"itemInput":{"ingredient":{"tag":"forge:ores/aluminum"}},
"gasInput":{"amount":1,"gas":"mekanism:oxygen"},
"output":{"item":"emendatusenigmatica:aluminum_clump","count":3}});
//铝碎块-污浊铝粉-三倍/四倍/五倍
<recipetype:mekanism:crushing>.addJSONRecipe("aluminum_to_dirty_dust", {
"input":{"ingredient":{"item":"emendatusenigmatica:aluminum_clump"}},
"output":{"item":"emendatusenigmatica:aluminum_dirty_dust"}});
//污浊铝粉-铝粉-三倍/四倍/五倍
<recipetype:mekanism:enriching>.addJSONRecipe("aluminum_to_dust", {
"input":{"ingredient":{"item":"emendatusenigmatica:aluminum_dirty_dust"}},
"output":{"item":"emendatusenigmatica:aluminum_dust"}});
//铝矿-铝粉-二倍
<recipetype:mekanism:enriching>.addJSONRecipe("aluminum_ore_to_dust", {
"input":{"ingredient":{"tag":"forge:ores/aluminum"}},
"output":{"item":"emendatusenigmatica:aluminum_dust","count":2}});
进入游戏后