// priority: 0

ServerEvents.recipes(event => {
    event.custom({
        "type": "sbmb:multiblock",
        "size": 3,
        "pattern": [
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ],
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:raw_iron_block",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ],
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ]
   
        ],
        "layer_comments": [
            "Layer 1: Closest to the player (the face clicked)",
            "Layer 2: One block further away",
            "Layer 3: Farthest from the player"
        ],
        "result": "minecraft:iron_ore",
        "count": 8
    })

    event.custom({
        "type": "sbmb:multiblock",
        "size": 3,
        "pattern": [
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ],
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:raw_copper_block",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ],
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ]
   
        ],
        "layer_comments": [
            "Layer 1: Closest to the player (the face clicked)",
            "Layer 2: One block further away",
            "Layer 3: Farthest from the player"
        ],
        "result": "minecraft:copper_ore",
        "count": 8
    })

    event.custom({
        "type": "sbmb:multiblock",
        "size": 3,
        "pattern": [
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ],
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:raw_gold_block",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ],
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ]
   
        ],
        "layer_comments": [
            "Layer 1: Closest to the player (the face clicked)",
            "Layer 2: One block further away",
            "Layer 3: Farthest from the player"
        ],
        "result": "minecraft:gold_ore",
        "count": 8
    })

    event.custom({
        "type": "sbmb:multiblock",
        "size": 3,
        "pattern": [
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ],
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "thermal:raw_tin_block",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ],
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ]
   
        ],
        "layer_comments": [
            "Layer 1: Closest to the player (the face clicked)",
            "Layer 2: One block further away",
            "Layer 3: Farthest from the player"
        ],
        "result": "thermal:tin_ore",
        "count": 8
    })

    event.custom({
        "type": "sbmb:multiblock",
        "size": 3,
        "pattern": [
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ],
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "mysticalagriculture:prosperity_block",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ],
            [
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ],
                [
                    "minecraft:stone",
                    "minecraft:stone",
                    "minecraft:stone"
                ]
            ]
   
        ],
        "layer_comments": [
            "Layer 1: Closest to the player (the face clicked)",
            "Layer 2: One block further away",
            "Layer 3: Farthest from the player"
        ],
        "result": "mysticalagriculture:prosperity_ore",
        "count": 8
    })

    event.remove({ output: 'immersiveengineering:rs_engineering'})

    event.custom({
        "type": "immersiveengineering:turn_and_copy",
        "category": "misc",
        "key": {
            "p": {
                "item": "pncepcb:primitive_finished_pcb"
            },
            "i": {
                "tag": "forge:sheetmetals/iron"
            },
            "r": {
                "tag": "forge:dusts/redstone"
            }
        },
        "pattern": [
        "iri",
        "rpr",
        "iri"
    ],
    "quarter_turn": true,
    "result": {
        "count": 1,
        "item": "immersiveengineering:rs_engineering"
    },
    "show_notification": true
    })

    event.smelting('minecraft:copper_ingot', 'minecraft:copper_ore', 0.7)
    event.smelting('minecraft:gold_ingot', 'minecraft:gold_ore', 0.7)
    event.smelting('thermal:tin_ingot', 'thermal:tin_ore', 0.7)
    event.blasting('minecraft:copper_ingot', 'minecraft:copper_ore', 0.7)
    event.blasting('minecraft:gold_ingot', 'minecraft:gold_ore', 0.7)
    event.blasting('thermal:tin_ingot', 'thermal:tin_ore', 0.7)
})