Skip to content

Custom Crystallarieum Recipes

DaFuqs edited this page Jun 22, 2022 · 10 revisions

Crystallarieum Growing

Properties

  • "group" (string, optional): A string that represents a recipe group. Recipes that have a group set will only trigger a single unlocking toast. Add a localization string "recipeGroup.spectrum.<<your_group_string>>" so the toast popup is properly localized.
  • "ingredient" (ingredient): The ingredient that has to be thrown on top of the Crystallarieum
  • "growth_stage_states" (block state list): When a valid ingredient is found on top of the Crystallarieum, the first block state is getting placed. This block state is advanced every time seconds_per_growth_stage has elapsed, until the last state is reached
  • "seconds_per_growth_stage" (long): How long each block state should take until it get's advanced to the next
  • "ink_color" (color string): The Ink Color needed to grow this recipe
  • "ink_per_second" (long): The amount of Ink to consume every second
  • "grows_without_catalyst" (boolean): If true, the player always needs to supply a Catalyst for this recipe to work. Else it is optional
  • "catalysts" (list of crystallarieum catalysts): A list of Catalsts that can modify this recipes properties, when supplied
  • "required_advancement" (advancement identifier, optional): The advancement a player must have to be able to craft his recipe. Spectrum will automatically show a toast to the player when this advancement has been unlocked

Crystallarieum Catalysts

  • "ingredient" (ingredient): The ingredient that has to be thrown on top of the Crystallarieum
  • "growth_acceleration_mod" (float):
  • "ink_efficiency_mod" (float):
  • "consume_chance_per_second" (float):

Example: Growing Iron Clustes/Native Iron from Raw Iron

To grow Iron with the Crystallarieum, the player has to either throw raw iron on top (the crystallarieum decrements that item stack by 1 and plants a Small Iron Bud on top of it), or place any block state listed in the growth_stage_states. The Crystallarieum will slowly grow through all possible stages until the last one is reached.

The player can optionally () supply Quitoxic Powder to make this growth process 3x as fast (growth_acceleration_mod) and since ink_efficiency_mod is smaller than growth_acceleration_mod the total used Ink will even be more efficient (grows 3x as fast, but only consumes 2x the amount of ink every tick).

{
  "type": "spectrum:crystallarieum_growing",
  "ingredient": {
    "item": "minecraft:raw_iron"
  },
  "growth_stage_states": [
    "spectrum:small_iron_bud",
    "spectrum:medium_iron_bud",
    "spectrum:large_iron_bud",
    "spectrum:iron_cluster"
  ],
  "ticks_per_growth_stage": 800,
  "ink_color": "brown",
  "ink_per_second": 10,
  "grows_without_catalyst": true,
  "catalysts": [
    {
      "ingredient": {
        "item": "spectrum:quitoxic_powder"
      },
      "growth_acceleration_mod": 3.0,
      "ink_efficiency_mod": 2.0,
      "consume_chance_per_second": 0.04
    }
  ]
}
Clone this wiki locally