Ritual
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
import mods.rootsclassic.Ritual;Static Methods
// Ritual.addCraftingRitual(uniqueName as string, output as IItemStack, level as int, r as double, g as double, b as double, incenses as IItemStack[], ingredients as IItemStack[])
Ritual.addCraftingRitual("devil_summoning", <item:minecraft:blaze_spawn_egg>, 1, 255, 59, 100, [<item:minecraft:fire_coral>, <item:minecraft:fire_coral>, <item:minecraft:fire_coral>, <item:minecraft:fire_coral>], [<item:minecraft:netherrack>, <item:minecraft:netherrack>, <item:minecraft:blaze_powder>]);| Parameter | Type | Description | 
|---|---|---|
| ParameteruniqueName | Typestring | DescriptionThe unique name of the recipe | 
| Parameteroutput | TypeIItemStack | DescriptionThe IItemStack to output | 
| Parameterlevel | Typeint | DescriptionThe level of the recipe | 
| Parameterr | Typedouble | DescriptionThe red amount of colour (0-255 value) | 
| Parameterg | Typedouble | DescriptionThe green amount of colour (0-255 value) | 
| Parameterb | Typedouble | DescriptionThe blue amount of colour (0-255 value) | 
| Parameterincenses | TypeIItemStack[] | DescriptionThe incenses that can be used in this recipe | 
| Parameteringredients | TypeIItemStack[] | DescriptionThe ingredients to use in this recipe | 
Change the level of a recipe, thus affecting the standing stone requirements. 
  
  0 requires none, only Braziers 
  1 requires a 3x3 grid of Mundane Standing Stones 
  2 requires the 3x3 grid of Mundane Standing Stones plus a rhombus of Attuned Standing Stones.
// Ritual.setLevel(name as ResourceLocation, level as int)
Ritual.setLevel(<resource:rootsclassic:igniter_stone_crafting>, 0);| Parameter | Type | Description | 
|---|---|---|
| Parametername | TypeResourceLocation | DescriptionThe name of the existing recipe to manipulate. | 
| Parameterlevel | Typeint | DescriptionThe new requirement level. Values within 0-2 inclusive. | 
Modifies the primary Colour of an existing recipe
// Ritual.setPrimaryColor(name as ResourceLocation, r as double, g as double, b as double)
Ritual.setPrimaryColor(<resource:crafttweaker:devil_summoning>, 230, 30, 70);| Parameter | Type | Description | 
|---|---|---|
| Parametername | TypeResourceLocation | DescriptionThe name of the existing recipe | 
| Parameterr | Typedouble | DescriptionThe new red colour of the recipe (0-255) | 
| Parameterg | Typedouble | DescriptionThe new green colour of the recipe (0-255) | 
| Parameterb | Typedouble | DescriptionThe new blue colour of the recipe (0-255) | 
Modifies the required incenses for the provided recipe.
// Ritual.setRitualIncense(name as ResourceLocation, items as IItemStack[])
Ritual.setRitualIncense(<resource:rootsclassic:living_sword_crafting>, [<item:minecraft:grass>,<item:minecraft:sand>]);| Parameter | Type | Description | 
|---|---|---|
| Parametername | TypeResourceLocation | DescriptionThe name of the existing recipe to manipulate | 
| Parameteritems | TypeIItemStack[] | DescriptionThe new incenses to use. | 
Manipulates and changes the provided recipe with the new inputs. 
  
  Names must be the name of a valid recipe. Roots adds the following:  
- staff_crafting,
- sylvan_hood_crafting,
- sylvan_chest_crafting,
- sylvan_legs_crafting,
- sylvan_boots_crafting,
- wildwood_head_crafting,
- wildwood_chest_crafting,
- wildwood_legs_crafting,
- wildwood_boots_crafting,
- accelerator_stone_crafting,
- standing_stone,
- entangler_stone_crafting,
- grower_stone_crafting,
- healer_stone_crafting,
- igniter_stone_crafting,
- repulsor_stone_crafting,
- vacuum_stone_crafting,
- runic_focus_crafting,
- runic_focus_charging,
- living_pickaxe_crafting,
- living_axe_crafting,
- living_sword_crafting,
- living_hoe_crafting,
- living_shovel_crafting,
- cause_rain,
- banish_rain,
- mass_breeding,
- life_drain,
- imbuer,
- cow_summoning,
- pig_summoning,
- sheep_summoning,
- chicken_summoning,
- rabbit_summoning,
- zombie_summoning,
- skeleton_summoning,
- spider_summoning,
- cavespider_summoning,
- slime_summoning,
- creeper_summoning,
- enderman_summoning,
- sacrifice,
- flare,
- grow,
- engraved_crafting,
- time_shift
<resource:rootsclassic (Example: <resource:rootsclassic:staff_crafting>)// Ritual.setRitualIngredients(name as ResourceLocation, items as IItemStack[])
Ritual.setRitualIngredients(<resource:rootsclassic:accelerator_stone_crafting>, [<item:minecraft:diamond>, <item:minecraft:diamond_block>, <item:minecraft:redstone>]);| Parameter | Type | Description | 
|---|---|---|
| Parametername | TypeResourceLocation | DescriptionThe unique resourcelocation of the recipe to target | 
| Parameteritems | TypeIItemStack[] | DescriptionThe new inputs to make the recipe use. | 
Modifies the secondary Colour of a recipe
// Ritual.setSecondaryColor(name as ResourceLocation, r as double, g as double, b as double)
Ritual.setSecondaryColor(<resource:rootsclassic:igniter_stone_crafting>, 255, 0, 0);| Parameter | Type | Description | 
|---|---|---|
| Parametername | TypeResourceLocation | DescriptionThe name of the recipe to manipulate | 
| Parameterr | Typedouble | DescriptionThe new red colour value (0-255) | 
| Parameterg | Typedouble | DescriptionThe new green colour value (0-255) | 
| Parameterb | Typedouble | DescriptionThe new blue colour value (0-255) |