// Priority: 99

/*
    TFMG Custom Recipes for Arcadia V2.
    Author: vyrriox
*/

ServerEvents.recipes((event) => {
    console.info("[Arcadia V2] Loading TFMG Custom Recipes...");

    // Remove default hardened planks recipe
    event.remove({ output: "tfmg:hardened_planks" });

    // Custom Hardened Planks recipe using Spout
    event.recipes.create.filling("tfmg:hardened_planks", [
        "minecraft:stripped_oak_log",
        Fluid.of("tfmg:creosote", 250)
    ]);

    // Steel Mechanism (Sequenced Assembly)
    event.recipes.create.sequenced_assembly(
        [
            CreateItem.of("tfmg:steel_mechanism", 0.8),
            CreateItem.of("minecraft:iron_nugget", 0.2)
        ],
        "tfmg:heavy_plate",
        [
            event.recipes.createDeploying("tfmg:unfinished_steel_mechanism", [
                "tfmg:unfinished_steel_mechanism",
                "tfmg:steel_ingot",
            ]),
            event.recipes.createDeploying("tfmg:unfinished_steel_mechanism", [
                "tfmg:unfinished_steel_mechanism",
                "tfmg:aluminum_ingot",
            ]),
            event.recipes.createDeploying("tfmg:unfinished_steel_mechanism", [
                "tfmg:unfinished_steel_mechanism",
                "tfmg:screw",
            ]),
            event.recipes.createDeploying("tfmg:unfinished_steel_mechanism", [
                "tfmg:unfinished_steel_mechanism",
                "tfmg:screwdriver",
            ])
        ]
    ).transitionalItem("tfmg:unfinished_steel_mechanism").loops(1);

});
