Repository navigation
Groovyscript Custom Infusion Support
Allows adding custom infusions for Atomic Reshaper and Solderer and customizing existing ones.
The identifier mods.prodigytech.infusion will be used as the default on this page.
Any of these can be used to refer to this compat:
mods.prodigytech.infusion
mods.prodigytech_ceu.infusion
Just like other recipe types, the Infusion Type also uses a recipe builder.
-
Create the Recipe Builder.
mods.prodigytech.infusion.builder()
-
int. The ID of the Infusion. It is also used as the X coordinate in the Infusion texture map. Requires greater than or equal to 3 and automatically loaded for basic infusions (Gold and Primordium). (Default0).id(int) -
String. The name of the infusion. Requires exactly 1 and automatically loaded for basic infusions (Gold and Primordium).name(String) name(ResourceLocation) -
List<Infusion.InfusionItem>. The items that can be used as additives providing this Infusion type. Requires greater than or equal to 1.input(IIngredient, int) -
List<Infusion.InfusionNameDescriptor>. Configures custom naming for infusion amounts above 1. Each of the next multipliers will be applied on top of the previous modifier (i.e. Gold Ingot - 9, Gold Block - 9). All multipliers must be greater than 1. Requires greater than or equal to 0.naming(String, int) -
List<String>. The machines that this infusion can be used in. Requires greater than or equal to 1 and the infusion types refer to valid machines (currentlysoldererandatomic_reshaper).machine(String...) -
String. The base unlocalized name of the infusion. Requires exactly 1 and automatically loaded for basic infusions (Gold and Primordium).unlocalizedName(String)
mods.prodigytech.infusion.builder()
.name('gold')
.machine('solderer',
'atomic_reshaper')
.input(item('minecraft:iron_ingot'))
mods.prodigytech.infusion.builder()
.name('diamond')
.id(3)
.unlocalizedName('pack_infusion.diamond')
.unlocalizedName('pack_infusion.diamond_block', 90)
.machine('solderer')
.input(item('minecraft:obsidian'))
.input(item('minecraft:diamond'), 10)