This page relates to Applied Energistics 2, which does not have built-in support, you will need to install AppliedEnergisticsTweaker as well!
应用能源2 压印器
Link to 应用能源2-压印器
Inscriber是一种 IRecipeManager 的类型,并实现了IRecipeManager's 所有可用的方法。 例如 removeRecipe()
和 removeAll()
。
使用方式
Link to 使用方式
添加Inscribe配方
Link to 添加inscribe配方
Inscribe recipes are recipes that only consume the middle input, the other inputs are not consumed.
The following script will add four recipes to the Inscriber that will do the following:
- Output a Diamond when Inscribing Dirt in the middle slot. 2) Output Dirt when Inscribing Glass in the middle slot, and Dirt in the top slot. 3) Output Glass when Inscribing a Stick in the middle slot, and a Stick in the bottom slot. (Notice how we use
<item:minecraft:air>
as the first element of the array) 4) Output a piece of Redstone when Inscribing an Apple in the middle slot, an Arrow in the top slot and a Stick in the bottom slot.
ZenScript Copy// <recipetype:appliedenergistics2:inscriber>.addInscribeRecipe(name as string, output as IItemStack, middleInput as IIngredient, otherInputs as @Optional IIngredient[])
<recipetype:appliedenergistics2:inscriber>.addInscribeRecipe("inscriber_inscribe_test", <item:minecraft:diamond>, <item:minecraft:dirt>);
<recipetype:appliedenergistics2:inscriber>.addInscribeRecipe("inscriber_inscribe_test_top_input", <item:minecraft:dirt>, <item:minecraft:glass>, [<item:minecraft:dirt>] as IIngredient[]);
<recipetype:appliedenergistics2:inscriber>.addInscribeRecipe("inscriber_inscribe_test_bottom_input", <item:minecraft:glass>, <item:minecraft:stick>, [<item:minecraft:air>, <item:minecraft:stick>] as IIngredient[]);
<recipetype:appliedenergistics2:inscriber>.addInscribeRecipe("inscriber_inscribe_test_all_inputs", <item:minecraft:redstone>, <item:minecraft:apple>, [<item:minecraft:arrow>, <item:minecraft:stick>] as IIngredient[]);
添加Press配方
Link to 添加press配方
Press recipes are recipes that consume all the inputs.
The following script will add four recipes to the Inscriber that will do the following:
- Output Scute when Pressing Lapis Lazuli in the middle slot. 2) Output Coal when Pressing White Dye in the middle slot, and White Wool in the top slot. 3) Output an Iron Ingot when Pressing Orange Dye in the middle slot, and Orange Wool in the bottom slot. (Notice how we use
<item:minecraft:air>
as the first element of the array) 4) Output a Gold Ingot when Pressing a Magenta Dye in the middle slot, Magenta Wool in the top slot and Light Blue Wool in the bottom slot.
ZenScript Copy// <recipetype:appliedenergistics2:inscriber>.addPressRecipe(name as string, output as IItemStack, middleInput as IIngredient, otherInputs as @Optional IIngredient[])
<recipetype:appliedenergistics2:inscriber>.addPressRecipe("inscriber_press_test", <item:minecraft:scute>, <item:minecraft:lapis_lazuli>);
<recipetype:appliedenergistics2:inscriber>.addPressRecipe("inscriber_press_test_top_input", <item:minecraft:coal>, <item:minecraft:white_dye>, [<item:minecraft:white_wool>] as IIngredient[]);
<recipetype:appliedenergistics2:inscriber>.addPressRecipe("inscriber_press_test_bottom_input", <item:minecraft:iron_ingot>, <item:minecraft:orange_dye>, [<item:minecraft:air>, <item:minecraft:orange_wool>] as IIngredient[]);
<recipetype:appliedenergistics2:inscriber>.addPressRecipe("inscriber_press_test_all_inputs", <item:minecraft:gold_ingot>, <item:minecraft:magenta_dye>, [<item:minecraft:magenta_wool>, <item:minecraft:light_blue_wool>] as IIngredient[]);
Remove Recipes
Link to remove-recipes
The following script will remove all Inscriber recipes that output a Logic Processor.
ZenScript Copy// <recipetype:appliedenergistics2:inscriber>.removeRecipe(output as IItemStack)
<recipetype:appliedenergistics2:inscriber>.removeRecipe(<item:appliedenergistics2:logic_processor>);