Skip to content

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:

groovy
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.

    groovy
    name(String)
    name(ResourceLocation)
  • IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires exactly 5.

    groovy
    input(IIngredient)
    input(IIngredient...)
    input(Collection<IIngredient>)
  • RitualBase. Sets the ritual being modified. Requires not null.

    groovy
    ritual(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. (returns null or epicsquid.roots.ritual.RitualBase$RitualRecipe).

    groovy
    register()
Example
groovy
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()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.