The utils package allows you to retrieve a given IIngredient from parameters provided.

Importing the package

Link to importing-the-package

If you ever find yourself needing an import for this, here's your chance:

ZenScript
Copy
import mods.astralsorcery.Utils;

Get a Crystal Ingredient

Link to get-a-crystal-ingredient

This will return you an ingredient matching all befitting AS crystals.

ZenScript
Copy
//Utils.getCrystalORIngredient(boolean hasToBeCelestial, boolean hasToBeAttuned);

val myCrystal = Utils.getCrystalORIngredient(true, true); //as crafttweaker.item.IIngredient