ZenScript Copyimport mods.roots.Rituals;
使用方式
Link to 使用方式
ZenScript Copyvoid 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.
ZenScript CopyRitual 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.
ZenScript Copyimport 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>]);