onEvent('recipes', event => {
event.custom({
    "type": "extendedcrafting:shaped_table",
    "pattern": [
      "ABCDEF   ",
      "         ",
      "         ",
      "         ",
      "         ",
      "         ",
      "         ",
      "         ",
      "         "
    ],
    "key": {
      "A": {
        "item": "extendedcrafting:ultimate_singularity"
      },
      "B": {
        "item": "avaritia:cosmic_meatballs"
      },
      "C": {
        "item": "avaritia:diamond_lattice"
      },
      "D": {
        "item": "avaritia:crystal_matrix_ingot"
      },
      "E": {
        "item": "avaritia:neutronium_ingot"
      },
      "F": {
        "item": "avaritia:ultimate_stew"
      }
    },
    "result": {
      "item": 'avaritia:infinity_catalyst'
    }
})
event.remove({output: 'extendedcrafting:ultimate_singularity'})
event.custom({
  "type": "extendedcrafting:shaped_table",
  "pattern": [
    "ABCDEFGHI",
    "JKLMNOPQR",
    "S        ",
    "         ",
    "         ",
    "         ",
    "         ",
    "         ",
    "         "
  ],
  "key": {
    "A": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:diamond\"}"
    },
    "B": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:electrum\"}"
    },
    "C": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:platinum\"}"
    },
    "D": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:redstone\"}"
    },
    "E": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:emerald\"}"
    },
    "F": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:glowstone\"}"
    },
    "G": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:silver\"}"
    },
    "H": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:steel\"}"
    },
    "I": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:invar\"}"
    },
    "J": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:nickel\"}"
    },
    "K": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:aluminum\"}"
    },
    "L": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:bronze\"}"
    },
    "M": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:coal\"}"
    },
    "N": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:copper\"}"
    },
    "O": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:lead\"}"
    },
    "P": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:lapis_lazuli\"}"
    },
    "Q": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:uranium\"}"
    },
    "R": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:tin\"}"
    },
    "S": {
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:iron\"}"
    }
  },
  "result": {
    "item": 'extendedcrafting:ultimate_singularity'
  }
})
})