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.
Static Methods
Parameter | Type | Description |
---|---|---|
Parameter uniqueName | Type string | Description The unique name of the recipe |
Parameter output | Type IItemStack | Description The IItemStack to output |
Parameter level | Type int | Description The level of the recipe |
Parameter r | Type double | Description The red amount of colour (0-255 value) |
Parameter g | Type double | Description The green amount of colour (0-255 value) |
Parameter b | Type double | Description The blue amount of colour (0-255 value) |
Parameter incenses | Type IItemStack[] | Description The incenses that can be used in this recipe |
Parameter ingredients | Type IItemStack[] | Description The 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.
Parameter | Type | Description |
---|---|---|
Parameter name | Type ResourceLocation | Description The name of the existing recipe to manipulate. |
Parameter level | Type int | Description The new requirement level. Values within 0-2 inclusive. |
Modifies the primary Colour of an existing recipe
Parameter | Type | Description |
---|---|---|
Parameter name | Type ResourceLocation | Description The name of the existing recipe |
Parameter r | Type double | Description The new red colour of the recipe (0-255) |
Parameter g | Type double | Description The new green colour of the recipe (0-255) |
Parameter b | Type double | Description The new blue colour of the recipe (0-255) |
Modifies the required incenses for the provided recipe.
Parameter | Type | Description |
---|---|---|
Parameter name | Type ResourceLocation | Description The name of the existing recipe to manipulate |
Parameter items | Type IItemStack[] | Description The 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>
)
Parameter | Type | Description |
---|---|---|
Parameter name | Type ResourceLocation | Description The unique resourcelocation of the recipe to target |
Parameter items | Type IItemStack[] | Description The new inputs to make the recipe use. |
Modifies the secondary Colour of a recipe
Parameter | Type | Description |
---|---|---|
Parameter name | Type ResourceLocation | Description The name of the recipe to manipulate |
Parameter r | Type double | Description The new red colour value (0-255) |
Parameter g | Type double | Description The new green colour value (0-255) |
Parameter b | Type double | Description The new blue colour value (0-255) |