Astral Sorcery Infusion
Link to astral-sorcery-infusion
Infusion is a type of IRecipeManager and implements all the methods that are available to IRecipeManager's, such as
Link to методы
Link to add-recipe
The following script adds a Starlight Infuser recipe that produces Dirt when a Diamond is infused with Water (Fluid).
The recipe takes 200 ticks to craft (10 seconds) and consumes multiple blocks of Water (Fluid).
The recipe will accept water from Containment Chalices that are around the Infuser.
The recipe will not transfer it's NBT from the input to the output. (If you wanted to make a recipe to Infuse a Diamond Sword to create a Netherite Sword, you can set
true so that enchantments carry over.
// <recipetype:astralsorcery:infusion>.addRecipe(name as string, itemOutput as IItemStack, itemInput as IIngredient, liquidInput as MCFluid, craftingTickTime as int, consumptionChance as float, consumeMultipleFluids as bool, acceptChaliceInput as bool, copyNBTToOutputs as bool) <recipetype:astralsorcery:infusion>.addRecipe("infusion_test", <item:minecraft:dirt>, <item:minecraft:diamond>, <fluid:minecraft:water>, 200, 2, true, true, false);
Link to remove-recipes
The following script will remove the Starlight Infuser recipe for Diamond.
// <recipetype:astralsorcery:infusion>.removeRecipe(output as IItemStack) <recipetype:astralsorcery:infusion>.removeRecipe(<item:minecraft:diamond>);