console.info('Hello, World! (You will see this line every time server resources reload)')

onEvent('recipes', event => {

    //remove
	  event.remove({output: [
        'exnihilosequentia:mesh_flint',
        'exnihilosequentia:mesh_iron',
        'exnihilosequentia:mesh_diamond',
        'exnihilosequentia:mesh_emerald',
        'exnihilosequentia:mesh_netherite',
        'cobblefordays:tier_1',
        'cobblefordays:tier_2',
        'cobblefordays:tier_3',
        'cobblefordays:tier_4',
        'cobblefordays:tier_5',
        'immersiveengineering:slab_cokebrick',
        'create:blaze_burner',
        'immersiveengineering:cokebrick',
        'tconstruct:sky_slime_crystal',
        'tconstruct:ender_slime_crystal',
        'tconstruct:ichor_slime_crystal',
        'minecraft:slime_ball',
        'create:basin',
        'excompressum:iron_mesh',
        'create:empty_blaze_burner',
        'create:whisk',
        'botanypots:botany_pot',
        'botanypotstiers:elite_botany_pot',
        'botanypotstiers:ultra_botany_pot',
        'botanypots:hopper_botany_pot',
        'botanypotstiers:elite_hopper_botany_pot',
        'botanypotstiers:ultra_hopper_botany_pot',
        'create:blaze_cake',
        'tconstruct:magma_cake',
        'minecraft:nether_brick',
        'immersiveengineering:craftingtable',
        'immersiveengineering:sheetmetal_lead',
        'immersiveengineering:sheetmetal_nickel',
        'immersiveengineering:sheetmetal_uranium',
        'immersiveengineering:sheetmetal_electrum',
        'immersiveengineering:sheetmetal_iron',
        'immersiveengineering:sheetmetal_constantan',
        'immersiveengineering:sheetmetal_silver',
        'immersiveengineering:sheetmetal_gold',
        'immersiveengineering:sheetmetal_steel',
        'immersiveengineering:sheetmetal_aluminum',
        'immersiveengineering:sheetmetal_copper',
        'botania:fertilizer',
        'immersiveengineering:steel_fence',
        'immersiveengineering:alu_fence',
        'botania:orange_petal',
        'botania:magenta_petal',
        'botania:white_petal',
        'botania:light_blue_petal',
        'botania:yellow_petal',
        'botania:lime_petal',
        'botania:red_petal',
        'botania:green_petal',
        'botania:brown_petal',
        'botania:blue_petal',
        'botania:purple_petal',
        'botania:cyan_petal',
        'botania:light_gray_petal',
        'botania:gray_petal',
        'botania:pink_petal',
        'botania:black_petal',
        'botania:terra_plate',
        'mekanism:metallurgic_infuser',
        'botanypotstiers:creative_botany_pot',
        'minecraft:bone_block',
        'appliedenergistics2:molecular_assembler',
        'ae2wtlib:infinity_booster_card',
        'immersiveengineering:blastbrick_reinforced',
        'botanypotstiers:creative_hopper_botany_pot'
    ]})
    
    //mesh
    event.shaped('exnihilosequentia:mesh_flint', [
        'FBF',
        'FMF',
        'FBF'
    ], {
        F: 'minecraft:flint',
        B: 'excompressum:compressed_flint',
        M: 'exnihilosequentia:mesh_string'
    })
    //mesh smithing
    event.smithing('exnihilosequentia:mesh_iron', 'exnihilosequentia:mesh_flint', 'minecraft:iron_block')
    event.smithing('exnihilosequentia:mesh_diamond', 'exnihilosequentia:mesh_iron', 'minecraft:diamond_block')
    event.smithing('exnihilosequentia:mesh_emerald', 'exnihilosequentia:mesh_diamond', 'minecraft:emerald_block')
    event.smithing('exnihilosequentia:mesh_netherite', 'exnihilosequentia:mesh_emerald', 'minecraft:netherite_block')

    //fish
    event.shaped('minecraft:tropical_fish', [
      'LOL',
      'BBB',
      'LOL'
    ], {
        O: 'minecraft:orange_dye',
        L: 'minecraft:leather',
        B: 'minecraft:water_bucket'
    })

    //crucible heat
    event.custom(
        {
            "type": "exnihilosequentia:heat",
            "block": 'mekanism:block_uranium',
            "amount": 50
        }
    )

    //cobblegen
    event.shaped('cobblefordays:tier_2', [
        'CCC',
        'WCL',
        'CCC'
    ], {
        C: 'minecraft:cobblestone',
        W: 'minecraft:water_bucket',
        L: 'minecraft:lava_bucket'
    })

    //blazehead and blaze burner
    event.shaped('tconstruct:blaze_head', [
        ' R ',
        'PRP',
        ' P '
    ], {
        R: 'minecraft:blaze_rod',
        P: 'minecraft:blaze_powder'
    })
    event.shaped('create:blaze_burner', [
        ' H ',
        ' B ',
        '   '
    ], {
        H: 'tconstruct:blaze_head',
        B: 'create:empty_blaze_burner'
    })

    //cokebrick
    event.shaped('immersiveengineering:cokebrick', [
        ' B ',
        ' B ',
        '   '
    ], {
        B: 'immersiveengineering:slab_cokebrick'
    })

    //slime
    event.custom(
        {
            "type": "tconstruct:alloy",
            "inputs": [
              {
                "name": "tconstruct:blazing_blood",
                "amount": 1000
              },
              {
                "name": "exnihilosequentia:witchwater",
                "amount": 1000
              }
            ],
            "result": {
              "fluid": "tconstruct:earth_slime",
              "amount": 500
            },
            "temperature": 1250
        }
    )
    event.custom(
        {
            "type": "tconstruct:casting_table",
            "fluid": {
              "tag": "forge:slime",
              "amount": 250
            },
            "result": "minecraft:slime_ball",
            "cooling_time": 40
        }
    )

    //create cokebrick
    event.custom(
        {
            "type": "create:mixing",
            "ingredients": [
              {
                "item": 'tconstruct:ender_slime_crystal'
              },
              {
                "fluidTag": "minecraft:lava",
                "amount": 5000
              }
            ],
            "results": [
              {
                "item": 'tconstruct:ichor_slime_crystal'
              }
            ],
            "heatRequirement": "superheated"
        }
    )
    
    //emptyblazeburner
    event.shaped('create:empty_blaze_burner', [
        'MMM',
        'MMM',
        'III'
    ], {
        M: 'excompressum:iron_mesh',
        I: 'minecraft:iron_ingot'
    })

    //whisk
    event.shaped('create:whisk', [
        ' A ',
        'MAM',
        'MMM'
    ], {
        A: 'create:andesite_alloy',
        M: 'excompressum:iron_mesh'
    })

    //immersiveengineering_craftingtable
    event.shaped('immersiveengineering:craftingtable', [
        'SSS',
        'BCB',
        'B B'
    ], {
        S: '#forge:treated_wood_slab',
        B: 'immersiveengineering:stick_treated',
        C: 'minecraft:stonecutter'
    })

    //fertilizer
    event.shaped('botania:fertilizer', [
        'FFF',
        'FBF',
        'FFF'
    ], {
        F: '#botania:petals',
        B: 'minecraft:bone_meal'
    })

    //prosperity
    event.smelting('mysticalagriculture:prosperity_shard', 'kubejs:chunk_prosperity')
    event.shapeless('kubejs:chunk_prosperity', ['4x kubejs:piece_prosperity'])
    event.custom(
        {
            "type": "exnihilosequentia:sieve",
            "rolls": [
              {
                "chance": 0.05,
                "mesh": "flint"
              },
              {
                "chance": 0.075,
                "mesh": "iron"
              },
              {
                "chance": 0.1,
                "mesh": "diamond"
              }
            ],
            "input": {
              "item": "minecraft:gravel"
            },
            "result": {
              "item": 'kubejs:piece_prosperity'
            }
          }
    )
    
    //bone
    event.shaped('minecraft:bone_block', [
      'FFF',
      'FFF',
      'FFF'
    ], {
      F: 'minecraft:bone'
    })
    event.shaped('kubejs:wither_bone_block', [
      'FFF',
      'FFF',
      'FFF'
    ], {
      F: 'tconstruct:necrotic_bone'
    })

    //bottlexp
    event.shaped('minecraft:experience_bottle', [
      'BEB',
      'EFE',
      'BEB'
    ], {
      B: 'minecraft:enchanted_book',
      E: 'minecraft:enchanting_table',
      F: 'botania:mana_bottle'
    })

    //inferium
    event.smelting('mysticalagriculture:inferium_essence', 'kubejs:chunk_inferium')
    event.shapeless('kubejs:chunk_inferium', ['4x kubejs:piece_inferium'])
    event.custom(
        {
            "type": "exnihilosequentia:sieve",
            "rolls": [
              {
                "chance": 0.025,
                "mesh": "flint"
              },
              {
                "chance": 0.05,
                "mesh": "iron"
              },
              {
                "chance": 0.08,
                "mesh": "diamond"
              }
            ],
            "input": {
              "item": "minecraft:gravel"
            },
            "result": {
              "item": 'kubejs:piece_inferium'
            }
          }
    )

    //infinity
    event.shaped('ae2wtlib:infinity_booster_card', [
      ' D ',
      'E E',
      ' B '
    ], {
      B: 'appliedenergistics2:wireless_receiver',
      E: 'appliedenergistics2:fluix_pearl',
      D: 'mysticalagradditions:creative_essence'
    })
})