events.listen('recipes', event => {
    var woolcolors = [
        'minecraft:white_wool',
        'minecraft:orange_wool',
        'minecraft:magenta_wool',
        'minecraft:light_blue_wool',
        'minecraft:yellow_wool',
        'minecraft:lime_wool',
        'minecraft:pink_wool',
        'minecraft:gray_wool',
        'minecraft:light_gray_wool',
        'minecraft:cyan_wool',
        'minecraft:purple_wool',
        'minecraft:blue_wool',
        'minecraft:brown_wool',
        'minecraft:green_wool',
        'minecraft:red_wool',
        'minecraft:black_wool'
    ]

    var nbt = '{Frequency:{middle:X,right:X,left:X}}'

    for(var i in woolcolors){

        event.shaped(item.of('enderstorage:ender_chest', 2, nbt.replace(/x/gi, i.toString())), [
            'ABA',
            'CDC',
            'AEA'
          ], {
            A: '#forge:rods/blaze',
            B: woolcolors[i],
            C: '#forge:obsidian',
            D: 'ironchest:iron_chest',
            E: 'mekanism:teleportation_core'
        })

        event.shaped(item.of('enderstorage:ender_tank', 2, nbt.replace(/x/gi, i.toString())), [
            'ABA',
            'CDC',
            'AEA'
          ], {
            A: '#forge:rods/blaze',
            B: woolcolors[i],
            C: '#forge:obsidian',
            D: 'minecraft:cauldron',
            E: 'mekanism:teleportation_core'
        })
    }
})