ServerEvents.recipes(event => {

  // grease ball
  event.remove({id:'spartanweaponry:grease_ball'})

  event.shaped(
    Item.of('kubejs:grease_ball', 1), [
      ' F ',
      'FSF',
      ' F '
    ], {
      S: '#c:slimeballs',
      F: '#c:foods/raw_meat'
    })

  event.shapeless(
    Item.of('spartanweaponry:weapon_oil', 3, '{Oil:{Effect:"spartanweaponry:none"}}'), [
      'kubejs:grease_ball',
      'minecraft:glass_bottle',
      'minecraft:glass_bottle',
      'minecraft:glass_bottle'
    ])

  // weapon oil

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_brew",
    "base_fluid": {
      "Amount": 500,
      "FluidName": "minecraft:water"
    },
    "input": {
      "item": "kubejs:grease_ball"
    },
    "results": [
      {
        "Amount": 500,
        "FluidName": "kubejs:weapon_oil_base"
      }
    ]
  });

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_empty",
    "fluid": {
      "Amount": 250,
      "FluidName": "kubejs:weapon_oil_base"
    },
    "input": {
      "item": "minecraft:glass_bottle"
    },
    "result": {
      "count": 1,
      "item": "spartanweaponry:weapon_oil"
    }
  });

  // hallowed oil

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_brew",
    "base_fluid": {
      "Amount": 500,
      "FluidName": "kubejs:weapon_oil_base"
    },
    "input": {
      "item": "minecraft:glistering_melon_slice"
    },
    "results": [
      {
        "Amount": 500,
        "FluidName": "kubejs:hallowed_oil"
      }
    ]
  });

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_empty",
    "fluid": {
      "Amount": 250,
      "FluidName": "kubejs:hallowed_oil"
    },
    "input": {
      "item": "minecraft:glass_bottle"
    },
    "result": {
      "count": 1,
      "item": "spartanweaponry:weapon_oil",
      "nbt": "{Oil: {Effect: \"spartanweaponry:undead\"}}"
    }
  });

  // arthro oil

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_brew",
    "base_fluid": {
      "Amount": 250,
      "FluidName": "kubejs:weapon_oil_base"
    },
    "input": {
      "item": "windswept:lavender"
    },
    "results": [
      {
        "Amount": 250,
        "FluidName": "kubejs:arthro_oil"
      }
    ]
  });

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_empty",
    "fluid": {
      "Amount": 250,
      "FluidName": "kubejs:arthro_oil"
    },
    "input": {
      "item": "minecraft:glass_bottle"
    },
    "result": {
      "count": 1,
      "item": "spartanweaponry:weapon_oil",
      "nbt": "{Oil: {Effect: \"spartanweaponry:arthropod\"}}"
    }
  });

  // cryotic oil

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_brew",
    "base_fluid": {
      "Amount": 250,
      "FluidName": "kubejs:weapon_oil_base"
    },
    "input": {
      "item": "minecraft:packed_ice"
    },
    "results": [
      {
        "Amount": 250,
        "FluidName": "kubejs:cryotic_oil"
      }
    ]
  });

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_empty",
    "fluid": {
      "Amount": 250,
      "FluidName": "kubejs:cryotic_oil"
    },
    "input": {
      "item": "minecraft:glass_bottle"
    },
    "result": {
      "count": 1,
      "item": "spartanweaponry:weapon_oil",
      "nbt": "{Oil: {Effect: \"spartanweaponry:cryotic\"}}"
    }
  });

  // necrotic oil

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_brew",
    "base_fluid": {
      "Amount": 250,
      "FluidName": "kubejs:weapon_oil_base"
    },
    "input": {
      "item": "spelunkery:saltpeter"
    },
    "results": [
      {
        "Amount": 250,
        "FluidName": "kubejs:necrotic_oil"
      }
    ]
  });

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_empty",
    "fluid": {
      "Amount": 250,
      "FluidName": "kubejs:necrotic_oil"
    },
    "input": {
      "item": "minecraft:glass_bottle"
    },
    "result": {
      "count": 1,
      "item": "spartanweaponry:weapon_oil",
      "nbt": "{Oil: {Effect: \"spartanweaponry:necrotic\"}}"
    }
  });

  // creeper oil

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_brew",
    "base_fluid": {
      "Amount": 500,
      "FluidName": "kubejs:weapon_oil_base"
    },
    "input": {
      "item": "minecraft:copper_ingot"
    },
    "results": [
      {
        "Amount": 500,
        "FluidName": "kubejs:creeper_oil"
      }
    ]
  });

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_empty",
    "fluid": {
      "Amount": 250,
      "FluidName": "kubejs:creeper_oil"
    },
    "input": {
      "item": "minecraft:glass_bottle"
    },
    "result": {
      "count": 1,
      "item": "spartanweaponry:weapon_oil",
      "nbt": "{Oil: {Effect: \"spartanweaponry:creeper\"}}"
    }
  });

  // aquatic oil

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_brew",
    "base_fluid": {
      "Amount": 500,
      "FluidName": "kubejs:weapon_oil_base"
    },
    "input": {
      "item": "minecraft:iron_ingot"
    },
    "results": [
      {
        "Amount": 500,
        "FluidName": "kubejs:aquatic_oil"
      }
    ]
  });

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_empty",
    "fluid": {
      "Amount": 250,
      "FluidName": "kubejs:aquatic_oil"
    },
    "input": {
      "item": "minecraft:glass_bottle"
    },
    "result": {
      "count": 1,
      "item": "spartanweaponry:weapon_oil",
      "nbt": "{Oil: {Effect: \"spartanweaponry:aquatic\"}}"
    }
  });

  // ender oil

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_brew",
    "base_fluid": {
      "Amount": 1000,
      "FluidName": "kubejs:weapon_oil_base"
    },
    "input": {
      "item": "hearthandharvest:water_crate"
    },
    "results": [
      {
        "Amount": 1000,
        "FluidName": "kubejs:ender_oil"
      }
    ]
  });

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_empty",
    "fluid": {
      "Amount": 250,
      "FluidName": "kubejs:ender_oil"
    },
    "input": {
      "item": "minecraft:glass_bottle"
    },
    "result": {
      "count": 1,
      "item": "spartanweaponry:weapon_oil",
      "nbt": "{Oil: {Effect: \"spartanweaponry:ender\"}}"
    }
  });

  // wither oil

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_brew",
    "base_fluid": {
      "Amount": 500,
      "FluidName": "kubejs:weapon_oil_base"
    },
    "input": {
      "item": "minecraft:wither_rose"
    },
    "results": [
      {
        "Amount": 500,
        "FluidName": "kubejs:wither_oil"
      }
    ]
  });

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_empty",
    "fluid": {
      "Amount": 250,
      "FluidName": "kubejs:wither_oil"
    },
    "input": {
      "item": "minecraft:glass_bottle"
    },
    "result": {
      "count": 1,
      "item": "spartanweaponry:weapon_oil",
      "nbt": "{Oil: {Effect: \"spartanweaponry:wither\"}}"
    }
  });

  // harming oil

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_brew",
    "base_fluid": {
      "Amount": 500,
      "FluidName": "irons_spellbooks:potion",
      "Tag": {
        "irons_spellbooks:bottle_type": "REGULAR",
        "Potion": "minecraft:harming"
      }
    },
    "input": {
      "item": "kubejs:grease_ball"
    },
    "results": [
      {
        "Amount": 500,
        "FluidName": "kubejs:harming_oil"
      }
    ]
  });

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_empty",
    "fluid": {
      "Amount": 250,
      "FluidName": "kubejs:harming_oil"
    },
    "input": {
      "item": "minecraft:glass_bottle"
    },
    "result": {
      "count": 1,
      "item": "spartanweaponry:weapon_oil",
      "nbt": "{Oil: {Effect: \"spartanweaponry:potion\", Potion: \"minecraft:harming\"}}"
    }
  });

  // poison oil

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_brew",
    "base_fluid": {
      "Amount": 500,
      "FluidName": "irons_spellbooks:potion",
      "Tag": {
        "irons_spellbooks:bottle_type": "REGULAR",
        "Potion": "minecraft:poison"
      }
    },
    "input": {
      "item": "kubejs:grease_ball"
    },
    "results": [
      {
        "Amount": 500,
        "FluidName": "kubejs:poison_oil"
      }
    ]
  });

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_empty",
    "fluid": {
      "Amount": 250,
      "FluidName": "kubejs:poison_oil"
    },
    "input": {
      "item": "minecraft:glass_bottle"
    },
    "result": {
      "count": 1,
      "item": "spartanweaponry:weapon_oil",
      "nbt": "{Oil: {Effect: \"spartanweaponry:potion\", Potion: \"minecraft:poison\"}}"
    }
  });

  // slowness oil

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_brew",
    "base_fluid": {
      "Amount": 500,
      "FluidName": "irons_spellbooks:potion",
      "Tag": {
        "irons_spellbooks:bottle_type": "REGULAR",
        "Potion": "minecraft:slowness"
      }
    },
    "input": {
      "item": "kubejs:grease_ball"
    },
    "results": [
      {
        "Amount": 500,
        "FluidName": "kubejs:slowness_oil"
      }
    ]
  });

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_empty",
    "fluid": {
      "Amount": 250,
      "FluidName": "kubejs:slowness_oil"
    },
    "input": {
      "item": "minecraft:glass_bottle"
    },
    "result": {
      "count": 1,
      "item": "spartanweaponry:weapon_oil",
      "nbt": "{Oil: {Effect: \"spartanweaponry:potion\", Potion: \"minecraft:slowness\"}}"
    }
  });

  // weakness oil

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_brew",
    "base_fluid": {
      "Amount": 500,
      "FluidName": "irons_spellbooks:potion",
      "Tag": {
        "irons_spellbooks:bottle_type": "REGULAR",
        "Potion": "minecraft:weakness"
      }
    },
    "input": {
      "item": "kubejs:grease_ball"
    },
    "results": [
      {
        "Amount": 500,
        "FluidName": "kubejs:weakness_oil"
      }
    ]
  });

  event.custom({
    "type": "irons_spellbooks:alchemist_cauldron_empty",
    "fluid": {
      "Amount": 250,
      "FluidName": "kubejs:weakness_oil"
    },
    "input": {
      "item": "minecraft:glass_bottle"
    },
    "result": {
      "count": 1,
      "item": "spartanweaponry:weapon_oil",
      "nbt": "{Oil: {Effect: \"spartanweaponry:potion\", Potion: \"minecraft:weakness\"}}"
    }
  });
});