PneumaticCraft: Repressurized has built in mod support! You don't need any other mods for this to work!

Requires PneumaticCraft: Repressurized v2.12.6 or newer.

Explosion Crafting

Explosion Crafting is a type of IRecipeManager and implements all the methods that are available to IRecipeManager's, such as removeRecipe() and removeAll().

Methods

Add Recipe

Explosion Crafting recipes require a single input item, a list of output items and an integer (percentage) loss rate.

The following script removes the default recipes converting Iron to Compressed Iron (at 20% loss rate) and adds much less generous replacements:

ZenScript
Copy
<recipetype:pneumaticcraft:explosion_crafting>.removeAll();

// <recipetype:pneumaticcraft:explosion_crafting>.addRecipe(name as string, IIngredientWithAmount input, IItemStack[] outputs, int lossRate)
<recipetype:pneumaticcraft:explosion_crafting>.addRecipe("hard_compressed_iron_ingot", <tag:forge:ingots/iron>, [<item:pneumaticcraft:ingot_iron_compressed>], 75);
<recipetype:pneumaticcraft:explosion_crafting>.addRecipe("hard_compressed_iron_block", <tag:forge:storage_blocks/iron>, [<item:pneumaticcraft:compressed_iron_block>], 75);

Remove Recipes

The following script will remove all Explosion Crafting recipes:

ZenScript
Copy
<recipetype:pneumaticcraft:explosion_crafting>.removeAll();