'use strict';
onEvent('recipes', (event) => {
    if (global.isNormalMode) {
        return;
    }
    const id_prefix = 'enigmatica:expert/create/';
    /*
        ,
        {
            output: '',
            pattern: ['', '', ''],
            key: {
                A: ''
            },
            id: ''
        }
    */

    const recipes = [
        {
            output: 'create:filter',
            pattern: ['ABA'],
            key: {
                A: '#forge:nuggets/invar',
                B: 'minecraft:cobweb'
            },
            id: 'create:crafting/kinetics/filter'
        },
        {
            output: 'create:attribute_filter',
            pattern: ['ABA'],
            key: {
                A: '#forge:nuggets/brass',
                B: 'minecraft:cobweb'
            },
            id: 'create:crafting/kinetics/attribute_filter'
        },
        {
            output: 'create:millstone',
            pattern: [' A ', 'BCB', 'DDD'],
            key: {
                A: '#forge:gears/copper',
                B: '#forge:ingots/andesite_alloy',
                C: 'create:cogwheel',
                D: 'minecraft:smooth_stone_slab'
            },
            id: 'create:crafting/kinetics/millstone'
        },
        {
            output: 'create:windmill_bearing',
            pattern: ['A', 'B', 'C'],
            key: {
                A: 'create:turntable',
                B: 'minecraft:sticky_piston',
                C: 'create:shaft'
            },
            id: 'create:crafting/kinetics/windmill_bearing'
        },
        {
            output: Item.of('create:white_sail', 8),
            pattern: ['AAA', 'ABA', 'AAA'],
            key: {
                A: 'create:sail_frame',
                B: '#thermal:rockwool'
            },
            id: 'create:crafting/kinetics/white_sail'
        },
        {
            output: Item.of('create:brass_casing', 4),
            pattern: ['ABA', 'BBB', 'ABA'],
            key: {
                A: '#forge:plates/brass',
                B: 'bloodmagic:woodtilepath'
            },
            id: 'create:crafting/materials/brass_casing'
        },
        {
            output: Item.of('create:encased_chain_drive', 2),
            pattern: [' A ', 'BCB', ' A '],
            key: {
                A: 'minecraft:chain',
                B: 'create:shaft',
                C: 'create:andesite_casing'
            },
            id: 'create:crafting/kinetics/encased_chain_drive'
        },
        {
            output: 'create:copper_backtank',
            pattern: ['ABA', 'CDC', 'ECE'],
            key: {
                A: 'betterendforge:leather_stripe',
                B: 'create:shaft',
                C: '#forge:plates/copper',
                D: 'mekanism:basic_chemical_tank',
                E: '#forge:ingots/andesite_alloy'
            },
            id: 'create:crafting/appliances/copper_backtank'
        },
        {
            output: 'create:diving_helmet',
            pattern: ['ABA', 'BCB'],
            key: {
                A: 'thermal:diving_fabric',
                B: '#forge:ingots/silicon_bronze',
                C: '#forge:glass_panes/cyan'
            },
            id: 'create:crafting/appliances/diving_helmet'
        },
        {
            output: 'create:diving_boots',
            pattern: ['A A', 'B B', 'C C'],
            key: {
                A: 'thermal:diving_fabric',
                B: '#forge:ingots/silicon_bronze',
                C: '#forge:plates/lead'
            },
            id: 'create:crafting/appliances/diving_boots'
        }
    ];

    recipes.forEach((recipe) => {
        event.shaped(recipe.output, recipe.pattern, recipe.key).id(recipe.id);
    });
});
