Rituals (Roots 3)
Description
Set the Pyre Ritual recipe and control all stats. Dump the modifiable stats into roots.log
by running /roots rituals
.
Warning
This compat is not fully documented. Some or all of its features are not present on the wiki. View the source code to gain an accurate understanding of the compat.
Identifier
Refer to this via any of the following:
mods.roots.rituals/* Used as page default */
mods.roots.Rituals
Adding Recipes
Recipe Builder
Just like other recipe types, the Rituals also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.roots.rituals.recipeBuilder()
ResourceLocation
. Sets the Resource Location of the recipe.groovyname(String) name(ResourceLocation)
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 5.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
RitualBase
. Sets the ritual being modified. Requires not null.groovyritual(RitualBase)
First validates the builder, returning
null
and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnull
orepicsquid.roots.ritual.RitualBase$RitualRecipe
).groovyregister()
Example
mods.roots.rituals.recipeBuilder()
.ritual(ritual('ritual_healing_aura'))
.input(item('minecraft:clay'),item('minecraft:gold_ingot'),item('minecraft:gold_ingot'),item('minecraft:gold_ingot'),item('minecraft:gold_ingot'))
.register()