CraftTweaker: Materializer - Shinoow/AbyssalCraft-Integration GitHub Wiki
Through the integration you can add/remove recipes, or remove all of them.
Adding recipes
mods.abyssalcraft.Materializer.addMaterialization(IIngredient output, IItemStack[] input);
Where: output
is what the Materializer should produce from the input
array (which can have a maximum size of 5, where any input has to be a crystal, which can easily be checked either by the script throwing errors or the item/block can be placed in a crystal bag, look a bit further down for a method used to make something count as a crystal). The output
can either be an ItemStack or an Ore Dictionary ingredient (in which case everything tied to that Ore Dictionary name would get the same Materialization recipe). The wildcard value (*) is also supported (so a block with subtypes would get a Materialization recipe for each subtype).
Example: mods.abyssalcraft.Materializer.addMaterialization(<minecraft:dirt:*>, [<abyssalcraft:crystal:4>, <abyssalcraft:crystalshard:10>*4]);
This will enable you to materialize Dirt (and its subtypes Podzol and Coarse Dirt) from 1 Crystallized Oxygen and 4 Crystallized Methane Shards.
Example: mods.abyssalcraft.Materializer.addMaterialization(<ore:oreCopper>, [<abyssalcraft:crystal:17>])
This will enable you to materializer any Copper Ore added to the Ore Dictionary from 1 Crystallized Copper.
Removing recipes
mods.abyssalcraft.Materializer.removeMaterialization(IItemStack output);
Where: output
is the materialization result you wish to remove the recipe for. This supports the wildcard value (*), so if you supply that, any subtype of the Item/Block will also be removed from the recipes.
Example: mods.abyssalcraft.Materializer.removeMaterialization(<minecraft:elytra>);
This will remove the Materializer recipe for the Elytra.
Remove all recipes
mods.abyssalcraft.Materializer.removeAll();
This would remove all registered Materializer recipes.
Add Crystals (do this before using them in recipes)
mods.abyssalcraft.Materializer.addCrystal(IItemStack stack, int burnTime*);
Where: stack
is an ItemStack containing whatever you want to include in the Crystal List. By adding something to this list, it becomes a valid recipe component for the Materializer, and can conveniently be placed in a Crystal Bag. If you also supply the second argument, burnTime
, the crystal will be added as fuel for the Crystallizer and Transmutator.
*This is optional
It's very important that you run this method BEFORE using the item/block as a recipe component in a materialization recipe!
Example: mods.abyssalcraft.Materializer.addCrystal(<minecraft:diamond>);
This allows diamonds to be treated as crystals.