onEvent('recipes', event => {
    event.remove({id:'endrem:end_crystal_ingot'})
    event.remove({type:'minecraft:smithing', input:'endrem:end_crystal_ingot'})
    
    event.replaceInput({id:'enigmaticlegacy:thicc_scroll'}, 'minecraft:paper', 'goety:magicfabric')

    event.replaceInput({id:'goety:dark_scroll'}, 'goety:magicfabric', 'enigmaticlegacy:thicc_scroll')
    
    event.remove({id:'enigmaticlegacy:xp_scroll'})
    
    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "enigmaticlegacy:thicc_scroll"
        },
        "craftType": "magic",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "minecraft:ender_eye"
          },
          {
            "item": "minecraft:experience_bottle"
          },
          {
            "item": "minecraft:feather"
          },
          {
            "item": "minecraft:experience_bottle"
          },
          {
            "item": "goety:soul_emerald"
          },
          {
            "item": "minecraft:experience_bottle"
          },
          {
            "item": "minecraft:ink_sac"
          },
          {
            "item": "minecraft:experience_bottle"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:xp_scroll"
        }
    })

    event.remove({id:'enigmaticlegacy:xp_scroll'})
    
    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "enigmaticlegacy:thicc_scroll"
        },
        "craftType": "magic",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "minecraft:ender_eye"
          },
          {
            "item": "minecraft:experience_bottle"
          },
          {
            "item": "minecraft:feather"
          },
          {
            "item": "minecraft:experience_bottle"
          },
          {
            "item": "goety:soul_emerald"
          },
          {
            "item": "minecraft:experience_bottle"
          },
          {
            "item": "minecraft:ink_sac"
          },
          {
            "item": "minecraft:experience_bottle"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:xp_scroll"
        }
    })

    event.remove({id:'enigmaticlegacy:escape_scroll'})
    
    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "enigmaticlegacy:thicc_scroll"
        },
        "craftType": "magic",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "enigmaticlegacy:recall_potion"
          },
          {
            "item": "minecraft:phantom_membrane"
          },
          {
            "item": "minecraft:feather"
          },
          {
            "item": "minecraft:phantom_membrane"
          },
          {
            "item": "enigmaticlegacy:eye_of_nebula"
          },
          {
            "item": "minecraft:phantom_membrane"
          },
          {
            "item": "minecraft:ink_sac"
          },
          {
            "item": "minecraft:phantom_membrane"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:escape_scroll"
        }
    })

    event.remove({id:'enigmaticlegacy:heaven_scroll'})
    
    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "enigmaticlegacy:thicc_scroll"
        },
        "craftType": "magic",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "create:refined_radiance"
          },
          {
            "item": "minecraft:gold_ingot"
          },
          {
            "item": "minecraft:feather"
          },
          {
            "item": "minecraft:lapis_lazuli"
          },
          {
            "item": "enigmaticlegacy:angel_blessing"
          },
          {
            "item": "minecraft:lapis_lazuli"
          },
          {
            "item": "minecraft:ink_sac"
          },
          {
            "item": "minecraft:gold_ingot"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:heaven_scroll"
        }
    })

    event.remove({id:'enigmaticlegacy:fabulous_scroll'})
    
    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "enigmaticlegacy:heaven_scroll"
        },
        "craftType": "magic",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "enigmaticlegacy:astral_dust"
          },
          {
            "item": "enigmaticlegacy:etherium_ingot"
          },
          {
            "item": "enigmaticlegacy:astral_dust"
          },
          {
            "item": "minecraft:dragon_breath"
          },
          {
            "item": "minecraft:elytra"
          },
          {
            "item": "minecraft:dragon_breath"
          },
          {
            "item": "enigmaticlegacy:astral_dust"
          },
          {
            "item": "enigmaticlegacy:etherium_ingot"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:fabulous_scroll"
        }
    })

    event.remove({id:'enigmaticlegacy:cursed_scroll'})
    
    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "enigmaticlegacy:darkest_scroll"
        },
        "craftType": "magic",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "enigmaticlegacy:twisted_core"
          },
          {
            "item": "create:shadow_steel"
          },
          {
            "item": "minecraft:feather"
          },
          {
            "item": "minecraft:redstone"
          },
          {
            "item": "minecraft:enchanted_book"
          },
          {
            "item": "minecraft:redstone"
          },
          {
            "item": "minecraft:ink_sac"
          },
          {
            "item": "goety:cursed_ingot"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:cursed_scroll"
        }
    })

    event.remove({id:'enigmaticlegacy:avarice_scroll'})
    
    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "enigmaticlegacy:darkest_scroll"
        },
        "craftType": "magic",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "enigmaticlegacy:gem_ring"
          },
          {
            "item": "minecraft:gold_ingot"
          },
          {
            "item": "minecraft:feather"
          },
          {
            "item": "minecraft:gold_ingot"
          },
          {
            "item": "enigmaticlegacy:twisted_core"
          },
          {
            "item": "minecraft:gold_ingot"
          },
          {
            "item": "minecraft:ink_sac"
          },
          {
            "item": "minecraft:gold_ingot"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:avarice_scroll"
        }
    })

    event.replaceInput({id:'enigmaticlegacy:gem_ring'}, 'enigmaticlegacy:iron_ring', 'minecraft:air')

    event.remove({id:'goety:ring_of_want'})

    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "enigmaticlegacy:gem_ring"
        },
        "craftType": "magic",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "goety:soul_emerald"
          },
          {
            "item": "goety:soul_emerald"
          },
          {
            "item": "goety:soul_emerald"
          },
          {
            "item": "goety:soul_emerald"
          },
          {
            "item": "minecraft:lapis_lazuli"
          },
          {
            "item": "minecraft:lapis_lazuli"
          }
        ],
        "result": {
          "item": "goety:ring_of_want"
        }
    })

    event.remove({id:'enigmaticlegacy:super_magnet_ring'})

    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "enigmaticlegacy:magnet_ring"
        },
        "craftType": "magic",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "goety:magic_emerald"
          },
          {
            "item": "minecraft:ender_eye"
          },
          {
            "item": "goety:magic_emerald"
          },
          {
            "item": "goety:soul_emerald"
          },
          {
            "item": "minecraft:lodestone"
          },
          {
            "item": "goety:soul_emerald"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:super_magnet_ring"
        }
    })

    event.remove({id:'enigmaticlegacy:ender_ring'})

    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "enigmaticlegacy:iron_ring"
        },
        "craftType": "magic",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "minecraft:ender_chest"
          },
          {
            "item": "minecraft:gold_ingot"
          },
          {
            "item": "minecraft:gold_ingot"
          },
          {
            "item": "minecraft:ender_pearl"
          },
          {
            "item": "minecraft:ender_pearl"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:ender_ring"
        }
    })

    event.remove({id:'enigmaticlegacy:monster_charm'})

    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "minecraft:skeleton_skull"
        },
        "craftType": "necroturgy",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "minecraft:soul_lantern"
          },
          {
            "item": "minecraft:blaze_powder"
          },
          {
            "item": "minecraft:experience_bottle"
          },
          {
            "item": "minecraft:netherite_ingot"
          },
          {
            "item": "minecraft:experience_bottle"
          },
          {
            "item": "minecraft:blaze_powder"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:monster_charm"
        }
    })

    event.remove({id:'enigmaticlegacy:forbidden_axe'})

    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "minecraft:netherite_axe"
        },
        "craftType": "forge",
        "soulCost": 10,
        "duration": 30,
        "ingredients": [
          {
            "item": "minecraft:wither_skeleton_skull"
          },
          {
            "item": "minecraft:netherite_ingot"
          },
          {
            "item": "minecraft:redstone"
          },
          {
            "item": "minecraft:blaze_rod"
          },
          {
            "item": "minecraft:redstone"
          },
          {
            "item": "minecraft:netherite_ingot"
          },
          {
            "item": "goety:braineaterfocus"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:forbidden_axe"
        }
    })

    event.remove({id:'enigmaticlegacy:berserk_emblem'})

    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "enigmaticlegacy:twisted_core"
        },
        "craftType": "expert_nether",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "minecraft:golden_sword"
          },
          {
            "item": "minecraft:crimson_fungus"
          },
          {
            "item": "minecraft:blaze_powder"
          },
          {
            "item": "minecraft:ghast_tear"
          },
          {
            "item": "minecraft:netherite_ingot"
          },
          {
            "item": "minecraft:ghast_tear"
          },
          {
            "item": "minecraft:blaze_powder"
          },
          {
            "item": "minecraft:crimson_fungus"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:berserk_emblem"
        }
    })

    event.remove({id:'alexsmobs:dimensional_carver'})

    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "minecraft:netherite_pickaxe"
        },
        "craftType": "forge",
        "soulCost": 10,
        "duration": 30,
        "ingredients": [
          {
            "item": "alexsmobs:void_worm_mandible"
          },
          {
            "item": "alexsmobs:void_worm_eye"
          },
          {
            "item": "alexsmobs:void_worm_mandible"
          },
          {
            "item": "goety:illusionfocus"
          }
        ],
        "result": {
          "item": "alexsmobs:dimensional_carver"
        }
    })

    event.remove({id:'enigmaticlegacy:mega_sponge'})

    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "minecraft:sponge"
        },
        "craftType": "magic",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "minecraft:nautilus_shell"
          },
          {
            "item": "minecraft:nautilus_shell"
          },
          {
            "item": "minecraft:heart_of_the_sea"
          },
          {
            "item": "minecraft:heart_of_the_sea"
          },
          {
            "item": "minecraft:ender_eye"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:mega_sponge"
        }
    })

    event.remove({id:'enigmaticlegacy:extradimensional_eye'})

    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "minecraft:ender_eye"
        },
        "craftType": "magic",
        "soulCost": 1,
        "duration": 10,
        "ingredients": [
          {
            "item": "minecraft:phantom_membrane"
          },
          {
            "item": "minecraft:gold_ingot"
          },
          {
            "item": "minecraft:gold_nugget"
          },
          {
            "item": "minecraft:blaze_powder"
          },
          {
            "item": "minecraft:gold_nugget"
          },
          {
            "item": "minecraft:gold_ingot"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:extradimensional_eye"
        }
    })

    event.remove({id:'enigmaticlegacy:astral_breaker'})

    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "endrem:end_crystal_eye"
        },
        "craftType": "forge",
        "soulCost": 10,
        "duration": 30,
        "ingredients": [
          {
            "item": "enigmaticlegacy:etherium_axe"
          },
          {
            "item": "enigmaticlegacy:astral_dust"
          },
          {
            "item": "enigmaticlegacy:etherium_shovel"
          },
          {
            "item": "enigmaticlegacy:astral_dust"
          },
          {
            "item": "enigmaticlegacy:etherium_pickaxe"
          },
          {
            "item": "enigmaticlegacy:astral_dust"
          },
          {
            "item": "minecraft:dragon_breath"
          },
          {
            "item": "enigmaticlegacy:astral_dust"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:astral_breaker"
        }
    })

    event.remove({id:'enigmaticlegacy:enchantment_transposer'})

    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "minecraft:enchanted_book"
        },
        "craftType": "magic",
        "soulCost": 1,
        "duration": 10,
        "ingredients": [
          {
            "item": "minecraft:gold_nugget"
          },
          {
            "item": "minecraft:prismarine_crystals"
          },
          {
            "item": "minecraft:lapis_lazuli"
          },
          {
            "item": "minecraft:redstone"
          },
          {
            "item": "goety:emptycore"
          },
          {
            "item": "minecraft:lapis_lazuli"
          },
          {
            "item": "minecraft:prismarine_crystals"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:enchantment_transposer"
        }
    })

    event.remove({id:'enigmaticlegacy:twisted_core'})

    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "enigmaticlegacy:earth_heart"
        },
        "craftType": "magic",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "minecraft:ghast_tear"
          },
          {
            "item": "endrem:end_crystal_fragment"
          },
          {
            "item": "minecraft:redstone"
          },
          {
            "item": "endrem:witch_eye"
          },
          {
            "item": "minecraft:redstone"
          },
          {
            "item": "endrem:end_crystal_fragment"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:twisted_core"
        }
    })

    event.remove({id:'enigmaticlegacy:enchanter_pearl'})

    event.remove({id:'enigmaticlegacy:cursed_stone'})

    event.custom({
        "type": "goety:ritual",
        "ritual_type": "goety:craft",
        "activation_item": {
          "item": "minecraft:stone"
        },
        "craftType": "adept_nether",
        "soulCost": 5,
        "duration": 30,
        "ingredients": [
          {
            "item": "enigmaticlegacy:twisted_core"
          },
          {
            "item": "minecraft:lava_bucket"
          },
          {
            "item": "enigmaticlegacy:evil_essence"
          },
          {
            "item": "endrem:nether_eye"
          },
          {
            "item": "enigmaticlegacy:evil_essence"
          },
          {
            "item": "minecraft:lava_bucket"
          }
        ],
        "result": {
          "item": "enigmaticlegacy:cursed_stone"
        }
    })

    event.replaceInput({id:'enigmaticlegacy:animal_guide'}, 'minecraft:book', 'minecraft:enchanted_book')

    event.replaceInput({id:'enigmaticlegacy:hunter_guide'}, 'minecraft:book', 'minecraft:enchanted_book')
})