Custom Fusion Shrine Recipes - DaFuqs/Spectrum GitHub Wiki

The Fusion Shrine requires a structure and a liquid to craft a list of item stacks into a single output stack.

Fusion Crafting

Properties

Entry Type Default Description
group string empty A string that represents a recipe group. Recipes with a common group will only trigger a single unlock popup, if multiple are unlocked at once. Add a localization string recipeGroup.spectrum.<<your_group_string>> so the toast popup is properly localized
secret boolean false If true, the recipe will never be listed in recipe listing mods, like REI
required_advancement advancement_identifier empty The advancement a player needs to have to be able to see this recipe. Spectrum will automatically show a toast to the player when this advancement has been unlocked and reached the set tier
ingredients ingredient list <= 7 entries The ingredients
time int 200 Time in ticks this recipe takes to craft
experience float 0 How much experience should be spawned
fluid fluid ingredient empty The fluid ingredient that has to be in the shrine (omitting it means the shrine has to be empty)
world_conditions world_condition list empty See WorldConditions. A list of conditions about the world that have to be met for the crafting to progress.
start_crafting_effect crafting_effect nothing See WorldEffects. The effect playing on the last crafting tick
during_crafting_effects crafting_effect list empty See WorldEffects. The effects playing while crafting. Will be played in order, with each effect playing the same amount of time
finish_crafting_effect crafting_effect nothing See WorldEffects. The effect playing on the last crafting tick
description string empty A localization string explaining the recipe (like the requirements). Is shown in recipe viewers
disable_yield_upgrades boolean false When true, yield upgrades does not affect the output of this recipe. Needed for compacting-style recipes (think: iron ingots to iron blocks and back) to prevent item multiplication. Or recipes that should always have a fixed output of 1, but a max stack size >1 (pedestal upgrades, stackable tools, ...)
copy_nbt boolean false When true, copes the nbt custom name, enchants, ...) of the first item in the recipe
result item_stack Output item stack, supports NBT

WorldConditions

A list of checks running against the world. All conditions have to validate to true for the recipe to start crafting.

  • [] world_conditions
    • {}
      • (String) type: "dimension"
      • (Identifier[]) worlds: A list of dimension names, like minecraft:overworld. True if in one of those dimensions
    • {}
      • (String) type: "moon_phase"
      • (int) moon_phase: The required moon phase (0-8)
      • (String) moon_phase: Takes "full_moon" (0) or "new_moon" (4)
    • {}
      • (String) type: "time_of_day"
      • (String) time: The required time. Possible values: "day", "noon", "night", "sunrise", "sunset", "midnight"
    • {}
      • (String) type: "weather"
      • (String) weather_condition: The required weather condition. Possible values: "clear_sky", "rain" (rain or thunder), "strict_rain" (rain without thunder), "thunder", and "not_thunder" (clear weather or rain)
    • {}
      • (String) type: "command"
      • (String) command: The command that gets executed. True if the command returns > 0

Example

"world_conditions": [
  {
    "type": "time_of_day",
    "time": "midnight"
  }
]

WorldEffects

An effect playing around the Fusion Shrine, ranging from particles to sounds, explosions or lightning strikes.

Example

Fusing an amethyst, citrine and topaz shard into an onyx shard while causing rain to start.

{
  "type": "spectrum:fusion_shrine",
  "time": 480,
  "experience": 2.0,
  "fluid": {
    "fluid": "minecraft:lava"
  },
  "ingredients": [
    {
      "item": "spectrum:topaz_shard"
    },
    {
      "item": "minecraft:amethyst_shard"
    },
    {
      "item": "spectrum:citrine_shard"
    }
  ],
  "result": {
    "item": "spectrum:onyx_shard"
  },
  "required_advancement": "spectrum:collect_all_basic_pigments_besides_brown",
  "world_conditions": [
    {
      "type": "time_of_day",
      "time": "midnight"
    },
    {
      "type": "moon_phase",
      "moon_phase": "new_moon"
    }
  ],
  "start_crafting_effect": "weather_thunder_short",
  "during_crafting_effects": [
    "visual_explosions_on_shrine",
    "nothing",
    "visual_explosions_on_shrine"
  ],
  "finish_crafting_effect": "lightning_on_shrine",
  "description": "spectrum.recipe.fusion_shrine.explanation.onyx_shard"
}