NuclearCraft CraftTweaker Integration
#=====================================#
所有配方都包含五组信息 - item inputs, fluid inputs, item outputs, fluid outputs 和 extra info.
前四个显然是配方中涉及的成分和产品,额外的信息包含如下数据机器的处理时间和功率、基本消耗时间、热原、效率、临界值和辐射水平固体裂变燃料等。
配方的所有部分都简单地列在方法中——内部NC代码分成五类并将信息打包成一个配方。
大括号{…}中的参数是可选的。如果有多个可选参数,则必须在正确的顺序。例如,如果要设置制造商配方的功率倍增,还必须首先设置时间乘数。确保脚本中不包含花括号!
___________________________________________________________________________________________________________________________
---------------------------------------------------------------------------------------------------------------------------
随机物料
#==================#
物品和流体输出可以附加信息-特别是可以设置输出物的随机数量。这些附加信息是使用NC的“Chance Ingredients”给出的。
在每个合成过程上生成的物品的数量是根据随机二项分布分配的数据。百分比和生成物品数量分别对概率和次数起作用。一个也可以指定最小物品数量-如果不指定,最小物品数量为0。
对于chancefluidingreditions,还必须指定一个“stack difference”(数量间隔)。例如数量为500的某液体原料, stack difference(数量间隔)为150,最小量为50,将按50、200、350或500单位的液体随机输出。
---------------------------------------------------------------------------------------------------------------------------
随机物品物料:
>---------------------<
mods.nuclearcraft.ChanceItemIngredient.create(物料名称, int 机会百分比, {int 最小数量});
举例: `ChanceItemIngredient.create(<minecraft:coal>*2, 25)`,
>--------- `ChanceItemIngredient.create(<ore:dustGlowstone>*3, 60, 2)`.
其他的 Methods:
--------------
IIngredient getInternalIngredient();
int getChancePercent();
int getMinStackSize();
---------------------------------------------------------------------------------------------------------------------------
随机液体物料:
>----------------------<
mods.nuclearcraft.ChanceFluidIngredient.create(IIngredient ingredient, int chancePercent, int stackDiff, {int minStackSize});
举例: `ChanceFluidIngredient.create(<liquid:water>*1500, 35, 300)`,
>--------- `ChanceFluidIngredient.create(<liquid:oil>*1000, 80, 200, 400)`.
其他 Methods:
--------------
IIngredient getInternalIngredient();
int getChancePercent();
int getStackDiff();
int getMinStackSize();
___________________________________________________________________________________________________________________________
---------------------------------------------------------------------------------------------------------------------------
合成配方方法
#==============#
注:方括号{…}中的“配方附加”是可选的,但必须按照指定的顺序。例如,如果你想要设置制造机配方的能耗增加,还必须首先设置时间倍增。
投入的物料可以使用 CT的 `<...>*x | <...>*y | ...`语法。
---------------------------------------------------------------------------------------------------------------------------
增加合成配方
>---------------<
物品投入配方举例
物品: `<minecraft:gunpowder>*4`,
矿典: `<ore:ingotIron>*2`,
空值: `null`.
液体投入配方举例
液体:`<liquid:lava>*1500`,
空值: `null`.
物品产出配方可以是
物品
矿典
随机物品 比如 `ChanceItemIngredient.create(<minecraft:quartz>*3, 50, 1)`,
空值: `null`.
液体产出配方可以是
液体
随机液体 比如 `ChanceFluidIngredient.create(<liquid:ethanol>*2000, 40, 250, 500)`.
空值: `null`.
为每个配方指定了允许的配方附加。确保使用十进制整数。当需要双精度时使用“1.0”,而不仅仅是“1”。
---------------------------------------------------------------------------------------------------------------------------
配方移除
>--------------<
当指定要移除的配方时,所需的只是指定所有输入或输出成分。不需要随机物料数据。必须首先是物品,然后是液体。
去除模组某类所有合成配方用 `removeAllRecipes()`
---------------------------------------------------------------------------------------------------------------------------
制造机Manufactory:
------------
//增加:
mods.nuclearcraft.Manufactory.addRecipe(IIngredient itemInput, IIngredient itemOutput, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.Manufactory.removeRecipeWithInput(IIngredient itemInput); //按输入
mods.nuclearcraft.Manufactory.removeRecipeWithOutput(IIngredient itemOutput); //按输出
热能离心机Separator:
----------
//增加
mods.nuclearcraft.Separator.addRecipe(IIngredient itemInput, IIngredient itemOutput1, IIngredient itemOutput2, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.Separator.removeRecipeWithInput(IIngredient itemInput);
mods.nuclearcraft.Separator.removeRecipeWithOutput(IIngredient itemOutput1, IIngredient itemOutput2);
衰变促进Decay Hastener:
---------------
//增加
mods.nuclearcraft.DecayHastener.addRecipe(IIngredient itemInput, IIngredient itemOutput, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.DecayHastener.removeRecipeWithInput(IIngredient itemInput);
mods.nuclearcraft.DecayHastener.removeRecipeWithOutput(IIngredient itemOutput);
燃料处理器Fuel Reprocessor:
-----------------
//增加
mods.nuclearcraft.FuelReprocessor.addRecipe(IIngredient itemInput, IIngredient itemOutput1, IIngredient itemOutput2, IIngredient itemOutput3, IIngredient itemOutput4, IIngredient itemOutput5, IIngredient itemOutput6, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.FuelReprocessor.removeRecipeWithInput(IIngredient itemInput);
mods.nuclearcraft.FuelReprocessor.removeRecipeWithOutput(IIngredient itemOutput1, IIngredient itemOutput2, IIngredient itemOutput3, IIngredient itemOutput4, IIngredient itemOutput5, IIngredient itemOutput6);
合金炉Alloy Furnace:
--------------
//增加
mods.nuclearcraft.AlloyFurnace.addRecipe(IIngredient itemInput1, IIngredient itemInput2, IIngredient itemOutput, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.AlloyFurnace.removeRecipeWithInput(IIngredient itemInput1, IIngredient itemInput2);
mods.nuclearcraft.AlloyFurnace.removeRecipeWithOutput(IIngredient itemOutput);
浸出器Infuser:
--------
//增加
mods.nuclearcraft.Infuser.addRecipe(IIngredient itemInput, ILiquidStack fluidInput, IIngredient itemOutput, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.Infuser.removeRecipeWithInput(IIngredient itemInput, ILiquidStack fluidInput);
mods.nuclearcraft.Infuser.removeRecipeWithOutput(IIngredient itemOutput);
金属熔化器Melter:
-------
//增加
mods.nuclearcraft.Melter.addRecipe(IIngredient itemInput, ILiquidStack fluidOutput, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.Melter.removeRecipeWithInput(IIngredient itemInput);
mods.nuclearcraft.Melter.removeRecipeWithOutput(ILiquidStack fluidOutput);
过冷却器Supercooler:
------------
//增加
mods.nuclearcraft.Supercooler.addRecipe(ILiquidStack fluidInput, ILiquidStack fluidOutput, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.Supercooler.removeRecipeWithInput(ILiquidStack fluidInput);
mods.nuclearcraft.Supercooler.removeRecipeWithOutput(ILiquidStack fluidOutput);
电解机Electrolyzer:
-------------
//增加
mods.nuclearcraft.Electrolyzer.addRecipe(ILiquidStack fluidInput, ILiquidStack fluidOutput1, ILiquidStack fluidOutput2, ILiquidStack fluidOutput3, ILiquidStack fluidOutput4, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.Electrolyzer.removeRecipeWithInput(ILiquidStack fluidInput);
mods.nuclearcraft.Electrolyzer.removeRecipeWithOutput(ILiquidStack fluidOutput1, ILiquidStack fluidOutput2, ILiquidStack fluidOutput3, ILiquidStack fluidOutput4);
组装机Assembler:
----------
//增加
mods.nuclearcraft.Assembler.addRecipe(IIngredient itemInput1, IIngredient itemInput2, IIngredient itemInput3, IIngredient itemInput4, IIngredient itemOutput, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.Assembler.removeRecipeWithInput(IIngredient itemInput1, IIngredient itemInput2, IIngredient itemInput3, IIngredient itemInput4);
mods.nuclearcraft.Assembler.removeRecipeWithOutput(IIngredient itemOutput);
金属成形机Ingot Former:
-------------
//增加
mods.nuclearcraft.IngotFormer.addRecipe(ILiquidStack fluidInput, IIngredient itemOutput, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.IngotFormer.removeRecipeWithInput(ILiquidStack fluidInput);
mods.nuclearcraft.IngotFormer.removeRecipeWithOutput(IIngredient itemOutput);
稳压器Pressurizer:
------------
//增加
mods.nuclearcraft.Pressurizer.addRecipe(IIngredient itemInput, IIngredient itemOutput, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.Pressurizer.removeRecipeWithInput(IIngredient itemInput);
mods.nuclearcraft.Pressurizer.removeRecipeWithOutput(IIngredient itemOutput);
化学反应器Chemical Reactor:
-----------------
//增加
mods.nuclearcraft.ChemicalReactor.addRecipe(ILiquidStack fluidInput1, ILiquidStack fluidInput2, ILiquidStack fluidOutput1, ILiquidStack fluidOutput2, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.ChemicalReactor.removeRecipeWithInput(ILiquidStack fluidInput1, ILiquidStack fluidInput2);
mods.nuclearcraft.ChemicalReactor.removeRecipeWithOutput(ILiquidStack fluidOutput1, ILiquidStack fluidOutput2);
盐搅拌机Salt Mixer:
-----------
//增加
mods.nuclearcraft.SaltMixer.addRecipe(ILiquidStack fluidInput1, ILiquidStack fluidInput2, ILiquidStack fluidOutput, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.SaltMixer.removeRecipeWithInput(ILiquidStack fluidInput1, ILiquidStack fluidInput2);
mods.nuclearcraft.SaltMixer.removeRecipeWithOutput(ILiquidStack fluidOutput);
结晶器Crystallizer:
-------------
//增加
mods.nuclearcraft.Crystallizer.addRecipe(ILiquidStack fluidInput, IIngredient itemOutput, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.Crystallizer.removeRecipeWithInput(ILiquidStack fluidInput);
mods.nuclearcraft.Crystallizer.removeRecipeWithOutput(IIngredient itemOutput);
流体富集器Fluid Enricher:
---------------
//增加
mods.nuclearcraft.Enricher.addRecipe(IIngredient itemInput, ILiquidStack fluidInput, ILiquidStack fluidOutput, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.Enricher.removeRecipeWithInput(IIngredient itemInput, ILiquidStack fluidInput);
mods.nuclearcraft.Enricher.removeRecipeWithOutput(ILiquidStack fluidOutput);
抽液器Fluid Extractor:
----------------
//增加
mods.nuclearcraft.Extractor.addRecipe(IIngredient itemInput, IIngredient itemOutput, ILiquidStack fluidOutput, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.Extractor.removeRecipeWithInput(IIngredient itemInput);
mods.nuclearcraft.Extractor.removeRecipeWithOutput(IIngredient itemOutput, ILiquidStack fluidOutput);
离心机Centrifuge:
-----------
//增加
mods.nuclearcraft.Centrifuge.addRecipe(ILiquidStack fluidInput, ILiquidStack fluidOutput1, ILiquidStack fluidOutput2, ILiquidStack fluidOutput3, ILiquidStack fluidOutput4, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.Centrifuge.removeRecipeWithInput(ILiquidStack fluidInput);
mods.nuclearcraft.Centrifuge.removeRecipeWithOutput(ILiquidStack fluidOutput1, ILiquidStack fluidOutput2, ILiquidStack fluidOutput3, ILiquidStack fluidOutput4);
碎石机Rock Crusher:
-------------
//增加
mods.nuclearcraft.RockCrusher.addRecipe(IIngredient itemInput, IIngredient itemOutput1, IIngredient itemOutput2, IIngredient itemOutput3, {double timeMultiplier, double powerMultiplier, double processRadiation});
//移除
mods.nuclearcraft.RockCrusher.removeRecipeWithInput(IIngredient itemInput);
mods.nuclearcraft.RockCrusher.removeRecipeWithOutput(IIngredient itemOutput1, IIngredient itemOutput2, IIngredient itemOutput3);
衰变发生器Decay Generator:
----------------
//增加
mods.nuclearcraft.DecayGenerator.addRecipe(IIngredient blockInput, IIngredient blockOutput, double meanLifetime, double power, double radiation);
//移除
mods.nuclearcraft.DecayGenerator.removeRecipeWithInput(IIngredient blockInput);
mods.nuclearcraft.DecayGenerator.removeRecipeWithOutput(IIngredient blockOutput);
裂变慢化剂 Fission Moderator:
------------------
//增加
mods.nuclearcraft.FissionModerator.add(IIngredient block, int fluxFactor, double efficiency);
//移除
mods.nuclearcraft.FissionModerator.remove(IIngredient block);
//移除所有
mods.nuclearcraft.FissionModerator.removeAll();
裂变反射器Fission Reflector:
------------------
//增加
mods.nuclearcraft.FissionReflector.add(IIngredient block, double efficiency, double reflectivity);
//移除
mods.nuclearcraft.FissionReflector.remove(IIngredient block);
//移除所有
mods.nuclearcraft.FissionReflector.removeAll();
裂变辐射器Fission Irradiator:
-------------------
//增加
mods.nuclearcraft.FissionIrradiator.addRecipe(IIngredient itemInput, IIngredient itemOutput, int fluxRequired, double heatPerFlux, double efficiency, double radiation);
//移除
mods.nuclearcraft.FissionIrradiator.removeRecipeWithInput(IIngredient itemInput);
mods.nuclearcraft.FissionIrradiator.removeRecipeWithOutput(IIngredient itemOutput);
卵石层裂变Pebble Bed Fission:
-------------------
//增加
mods.nuclearcraft.PebbleFission.addRecipe(IIngredient itemInput, IIngredient itemOutput, int time, int heat, double efficiency, int criticality, boolean selfPriming, double radiation);
//移除
mods.nuclearcraft.PebbleFission.removeRecipeWithInput(IIngredient itemInput);
mods.nuclearcraft.PebbleFission.removeRecipeWithOutput(IIngredient itemOutput);
固体燃料裂变Solid Fuel Fission:
-------------------
//增加
mods.nuclearcraft.SolidFission.addRecipe(IIngredient itemInput, IIngredient itemOutput, int time, int heat, double efficiency, int criticality, boolean selfPriming, double radiation);
//移除
mods.nuclearcraft.SolidFission.removeRecipeWithInput(IIngredient itemInput);
mods.nuclearcraft.SolidFission.removeRecipeWithOutput(IIngredient itemOutput);
裂变加热 Fission Heating:
----------------
//增加
mods.nuclearcraft.FissionHeating.addRecipe(ILiquidStack fluidInput, ILiquidStack fluidOutput, int heatPerInputMB);
//移除
mods.nuclearcraft.FissionHeating.removeRecipeWithInput(ILiquidStack fluidInput);
mods.nuclearcraft.FissionHeating.removeRecipeWithOutput(ILiquidStack fluidOutput);
熔盐裂变-有BUG Molten Salt Fission (KINDA BROKEN!):
------------------------------------
//增加
mods.nuclearcraft.SaltFission.addRecipe(ILiquidStack fluidInput, ILiquidStack fluidOutput, double time, int heat, double efficiency, int criticality, boolean selfPriming, double radiation);
//移除
mods.nuclearcraft.SaltFission.removeRecipeWithInput(ILiquidStack fluidInput);
mods.nuclearcraft.SaltFission.removeRecipeWithOutput(ILiquidStack fluidOutput);
聚变-尚未生效 Fusion (NOT YET IMPLEMENTED!):
------------------------------
//增加
mods.nuclearcraft.Fusion.addRecipe(ILiquidStack fluidInput1, ILiquidStack fluidInput2, ILiquidStack fluidOutput1, ILiquidStack fluidOutput2, ILiquidStack fluidOutput3, ILiquidStack fluidOutput4, double comboTime, double comboPower, double comboHeatVar, double processRadiation);
//移除
mods.nuclearcraft.Fusion.removeRecipeWithInput(ILiquidStack fluidInput1, ILiquidStack fluidInput2);
mods.nuclearcraft.Fusion.removeRecipeWithOutput(ILiquidStack fluidOutput1, ILiquidStack fluidOutput2, ILiquidStack fluidOutput3, ILiquidStack fluidOutput4);
热交换器-有BUG Heat Exchanger (KINDA BROKEN!):
-------------------------------
//增加
mods.nuclearcraft.HeatExchanger.addRecipe(ILiquidStack fluidInput, ILiquidStack fluidOutput, double heatRequired, int temperatureIn, int temperatureOut);
//移除
mods.nuclearcraft.HeatExchanger.removeRecipeWithInput(ILiquidStack fluidInput);
mods.nuclearcraft.HeatExchanger.removeRecipeWithOutput(ILiquidStack fluidOutput);
冷凝器-有BUG Condenser (KINDA BROKEN!):
--------------------------
//增加
mods.nuclearcraft.Condenser.addRecipe(ILiquidStack fluidInput, ILiquidStack fluidOutput, {double coolingRequired, int condensingTemperature});
//移除
mods.nuclearcraft.Condenser.removeRecipeWithInput(ILiquidStack fluidInput);
mods.nuclearcraft.Condenser.removeRecipeWithOutput(ILiquidStack fluidOutput);
汽轮机Steam Turbine:
--------------
//增加
mods.nuclearcraft.Turbine.addRecipe(ILiquidStack fluidInput, ILiquidStack fluidOutput, double powerPerMB, double expansionLevel, {String particleEffect, double particleSpeedMultiplier});
//移除
mods.nuclearcraft.Turbine.removeRecipeWithInput(ILiquidStack fluidInput);
mods.nuclearcraft.Turbine.removeRecipeWithOutput(ILiquidStack fluidOutput);
---------------------------------------------------------------------------------------------------------------------------
辐射Radiation:
>----------<
辐射洗涤器Radiation Scrubber:
-------------------
//增加
mods.nuclearcraft.RadiationScrubber.addRecipe(IIngredient itemInput, ILiquidStack fluidInput, IIngredient itemOutput, ILiquidStack fluidOutput, int processTime, int processPower, double processEfficiency);
//移除
mods.nuclearcraft.RadiationScrubber.removeRecipeWithInput(IIngredient itemInput, ILiquidStack fluidInput);
mods.nuclearcraft.RadiationScrubber.removeRecipeWithOutput(IIngredient itemOutput, ILiquidStack fluidOutput);
Block Mutation:
---------------
//增加
mods.nuclearcraft.RadiationBlockMutation.addRecipe(IIngredient blockInput, IIngredient blockOutput, double radiationThreshold);
//移除
mods.nuclearcraft.RadiationBlockMutation.removeRecipeWithInput(IIngredient blockInput);
mods.nuclearcraft.RadiationBlockMutation.removeRecipeWithOutput(IIngredient blockOutput);
Block Purification:
-------------------
//增加
mods.nuclearcraft.RadiationBlockPurification.addRecipe(IIngredient blockInput, IIngredient blockOutput, double radiationThreshold);
//移除
mods.nuclearcraft.RadiationBlockPurification.removeRecipeWithInput(IIngredient blockInput);
mods.nuclearcraft.RadiationBlockPurification.removeRecipeWithOutput(IIngredient blockOutput);
实体辐射Entity Radiation:
-----------------
//辐射效果
IEntityLivingBase::addRadiation(double amount, {boolean useImmunity});//增加
IEntityLivingBase::setRadiation(double amount, {boolean useImmunity});//设置
IEntityLivingBase::getRadiation();//获得
//实体辐射治疗效果
IEntityLivingBase::addRadawayBuffer(double amount, {boolean slowBuffer});//增加
IEntityLivingBase::setRadawayBuffer(double amount, {boolean slowBuffer});//设置
IEntityLivingBase::getRadawayBuffer({boolean slowBuffer});//获得
//中毒效果
IEntityLivingBase::addPoisonBuffer(double amount);//增加
IEntityLivingBase::setPoisonBuffer(double amount);//设置
IEntityLivingBase::getPoisonBuffer();//获得
//辐射抗性效果
IEntityLivingBase::addRadiationResistance(double amount);
IEntityLivingBase::setRadiationResistance(double amount);
IEntityLivingBase::getRadiationResistance();
IEntityLivingBase::getRawRadiationLevel();
IEntityLivingBase::getRadiationLevel();
其他Miscellaneous:
--------------
mods.nuclearcraft.Radiation.getRadiationLevel(IIngredient itemInput);
mods.nuclearcraft.Radiation.setRadiationImmunityGameStages(boolean defaultImmunity, String... stageNames);
---------------------------------------------------------------------------------------------------------------------------
配方信息Recipe Info:
>------------<
配方句柄Recipe Handlers:
----------------
If you want to get the recipe handler associated with a recipe type, use `getRecipeHandler()`. For example, if you want to
get the Solid Fuel Fission recipe handler, use `mods.nuclearcraft.SolidFission.getRecipeHandler()`.
配方句柄方法Recipe Handler Methods:
-----------------------
RecipeHandler::getRecipeName();
RecipeHandler::getRecipeList();
RecipeHandler::getItemInputSize();
RecipeHandler::getFluidInputSize();
RecipeHandler::getItemOutputSize();
RecipeHandler::getFluidOutputSize();
RecipeHandler::isShapeless();
配方方法Recipe Methods:
---------------
Recipe::getItemIngredient(int index);
Recipe::getFluidIngredient(int index);
Recipe::getItemProduct(int index);
Recipe::getFluidProduct(int index);
___________________________________________________________________________________________________________________________
---------------------------------------------------------------------------------------------------------------------------