events.listen("recipes", function (e) {
  e.custom({
    type: "astralsorcery:altar",
    altar_type: 3,
    duration: 600,
    starlight: 4000,
    pattern: ["A B C", " DEF ", "GHIJK", " LMN ", "O P Q"],
    key: {
      A: {
        type: "forge:nbt",
        item: "extendedcrafting:singularity",
        nbt: '{Id:"extendedcrafting:steel"}',
      },
      B: {
        type: "forge:nbt",
        item: "extendedcrafting:singularity",
        nbt: '{Id:"extendedcrafting:uraninite"}',
      },
      C: {
        type: "forge:nbt",
        item: "extendedcrafting:singularity",
        nbt: '{Id:"extendedcrafting:cobalt"}',
      },
      D: { item: "extendedcrafting:basic_catalyst" },
      E: { item: "extendedcrafting:elite_catalyst" },
      F: { item: "extendedcrafting:advanced_catalyst" },
      G: {
        type: "forge:nbt",
        item: "extendedcrafting:singularity",
        nbt: '{Id:"extendedcrafting:amber"}',
      },
      H: { item: "extendedcrafting:ultimate_catalyst" },
      I: { item: "bloodmagic:etherealslate" },
      J: { item: "extendedcrafting:redstone_catalyst" },
      K: {
        type: "forge:nbt",
        item: "extendedcrafting:singularity",
        nbt: '{Id:"extendedcrafting:tennessine"}',
      },
      L: {
        item: "extendedcrafting:ender_catalyst",
      },
      M: {
        item: "extendedcrafting:crystaltine_catalyst",
      },
      N: {
        item: "extendedcrafting:enhanced_ender_catalyst",
      },
      O: {
        type: "forge:nbt",
        item: "extendedcrafting:singularity",
        nbt: '{Id:"extendedcrafting:manyullyn"}',
      },

      P: {
        type: "forge:nbt",
        item: "extendedcrafting:singularity",
        nbt: '{Id:"extendedcrafting:enderium"}',
      },
      Q: {
        type: "forge:nbt",
        item: "extendedcrafting:singularity",
        nbt: '{Id:"extendedcrafting:aethium"}',
      },
    },
    output: [
      {
        item: "kubejs:ultimatecentral",
        count: 1,
      },
    ],
    focus_constellation: "astralsorcery:horologium",
    relay_inputs: [
      {
        item: "mysticalagradditions:insanium_essence",
      },
      {
        item: "mysticalagradditions:insanium_essence",
      },
      {
        item: "mysticalagradditions:insanium_essence",
      },
      {
        item: "mysticalagradditions:insanium_essence",
      },
      {
        item: "mysticalagradditions:insanium_essence",
      },
      {
        item: "mysticalagradditions:insanium_essence",
      },
      {
        item: "mysticalagradditions:insanium_essence",
      },
      {
        item: "mysticalagradditions:insanium_essence",
      },
      {
        item: "mysticalagradditions:insanium_essence",
      },
      {
        item: "mysticalagradditions:insanium_essence",
      },
    ],
    effects: [
      "astralsorcery:built_in_effect_constellation_finish",
      "astralsorcery:built_in_effect_trait_relay_highlight",
      "astralsorcery:built_in_effect_discovery_central_beam",
      "astralsorcery:built_in_effect_trait_focus_circle",
      "astralsorcery:altar_default_sparkle",
      "astralsorcery:built_in_effect_constellation_lines",
      "astralsorcery:built_in_effect_attunement_sparkle",
    ],
  });
});
