Distillation
Link to distillation
remove #移除
Link to remove-移除
名称 | 类型 |
---|---|
名称 配方名称 | 类型 字符串[string] |
示例:
ZenScript Copy// mods.immersivepolleum.StillationTower.remove(String recipeName);
mods.immersivepetroleum.StillationTower.remove("石油粉碎");
removeAll
Link to removeall
名称 | 类型 |
---|---|
名称 | 类型 |
示例:
ZenScript Copymods.immersiveproleum.StillationTower.removeAll();
Builder
Link to builder
构造器
Link to 构造器
名称 | 类型 |
---|---|
名称 | 类型 |
示例:
ZenScript Copy// 新mods.immersivepolleum.StillationBuilder();
new mods.immersivepetroleum.StillationBuilder();
setOutputFluid
Link to setoutputfluid
名称 | 类型 |
---|---|
名称 输出流体 | 类型 Fluidstack |
示例:
ZenScript Copy// builderInstance.setOutputFluids(IFluidStack[] fluidOutputs);
builderInstance.setOutputFluids([<fluid:minecraft:water> * 1]);
添加 Byproduct(StemStack 项, int 概率)
Link to 添加-byproductstemstack-项-int-概率
名称 | 类型 |
---|---|
名称 Item | 类型 物品应用 |
名称 Chance | 类型 整数 (0-100) |
示例:
ZenScript Copy// builderInstance.addByproduct(ItemStack 物品, int chance);
builderInstance.addByproduct(<item:minecraft:cobblestone>, 50);
添加 Byproduct(StemStack 项目,双次概率)
Link to 添加-byproductstemstack-项目双次概率
名称 | 类型 |
---|---|
名称 Item | 类型 物品应用 |
名称 Chance | 类型 双倍(0.0 - 1.0) |
示例:
ZenScript Copy// builderInstance.addByproduct(ItemStack 项目,双次机会);
builderInstance.addByproduct(<item:minecraft:stone>, 0.25);
setEnergyAndTime
Link to setenergyandtime
名称 | 类型 |
---|---|
名称 Flux/t | 类型 整数(>=1) |
名称 服务单 | 类型 整数(>=1) |
示例:
ZenScript Copy// builderInstance.setEnergyAndTime(int fluxPerTick, int ticks);
builderInstance.setEnergyAndTime(1024;
set能源
Link to set能源
名称 | 类型 |
---|---|
名称 流体PerTick | 类型 整数(>=1) |
示例:
ZenScript Copy// builderInstance.setEnergy(int fluxPerTick);
builderInstance.setEnergy(1024);
setTime
Link to settime
名称 | 类型 |
---|---|
名称 服务单 | 类型 整数(>=1) |
示例:
ZenScript Copy// builderInstance.setTime(int ticks);
builderInstance.setTime(1);
build
Link to build
名称 | 类型 |
---|---|
名称 配方名称 | 类型 字符串[string] |
示例:
ZenScript Copy// builderInstance.build(String recipeName);
builderInstance.build("example_name");
复制/粘贴示例:
ZenScript Copynew DistillationBuilder()
.setOutputFluids([<fluid:minecraft:water> * 1]) // Array of output fluids
.setInputFluid(<tag:minecraft:lava>, 500) // Input Fluid Tag and the ammount of fluid in mB
.addByproduct(<item:minecraft:cobblestone>, 50) // Chance using integer (0 - 100)
.addByproduct(<item:minecraft:stone>, 0.25) // Chance using double (0.0 - 1.0)
.addByproduct(<item:minecraft:obsidian>, 0.007) // Integer is for convenience, using double gives more control
.setEnergyAndTime(1024, 1) // Can be done individualy with setEnergy(int) and setTime(int)
.build("lava_to_solids");
new DistillationBuilder()
.setOutputFluids([<fluid:minecraft:water> * 500])
.setInputFluid(<tag:forge:concrete>, 500)
.addByproduct(<item:minecraft:gravel>, 0.5)
.addByproduct(<item:minecraft:sand>, 0.25)
.addByproduct(<item:minecraft:sand>, 0.25)
.addByproduct(<item:minecraft:clay_ball>, 0.125)
.setEnergy(2048) // 2048 is the Default for Energy.
.setTime(1) / 1 是时间的默认值。
.build(“commite_reversal”);