Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

Class

script.zs
import mods.roots.Rituals;

Methods

script.zs
void modifyRitual(
string name, // the name of the ritual whose ingredients you wish to modify
IIngredient[] inputs // a list of five ingredients (no more, no less)
);

Modifies the specified Ritual recipe to use the five ingredients specified.


script.zs
Ritual getRitual(
string ritualName // the name of the ritual to be fetched; will prepend `ritual_` if it doesn't start with `ritual_`.
);

Returns a Ritual object which can have its properties modified.


Examples

script.zs
import mods.roots.Rituals;
// Changes the ingredients required to perform the windwall ritual
Rituals.modifyRitual("ritual_windwall", [<minecraft:feather>, <minecraft:flint_and_steel>.anyDamage().transformDamage(1), <roots:cloud_berry>, <roots:cloud_berry>, <minecraft:web>]);