/**
 * Registration of Monicoin trades for saplings
 */

ServerEvents.recipes(event => {
    if (doMonicoins) {
        // -- Saplings
        event.shaped(Item.of("minecraft:oak_sapling", 1), [
            "AAA",
            "   ",
            "   "
        ], {
            A: "kubejs:moni_penny"
        }).noMirror().noShrink()

        event.shaped(Item.of("minecraft:dark_oak_sapling", 1), [
            "AA ",
            "   ",
            "A  "
        ], {
            A: "kubejs:moni_penny"
        }).noMirror().noShrink()

        event.shaped(Item.of("minecraft:acacia_sapling", 1), [
            "A  ",
            " A ",
            "  A"
        ], {
            A: "kubejs:moni_penny"
        }).noMirror().noShrink()

        event.shaped(Item.of("minecraft:spruce_sapling", 1), [
            "AA ",
            "   ",
            " A "
        ], {
            A: "kubejs:moni_penny"
        }).noMirror().noShrink()

        event.shaped(Item.of("minecraft:birch_sapling", 1), [
            "AA ",
            "A  ",
            "   "
        ], {
            A: "kubejs:moni_penny"
        }).noMirror().noShrink()

        event.shaped(Item.of("thermal:rubberwood_sapling", 1), [
            "AA ",
            " A ",
            "   "
        ], {
            A: "kubejs:moni_penny"
        }).noMirror().noShrink()

        event.shaped(Item.of("minecraft:jungle_sapling", 1), [
            "AA ",
            "  A",
            "   "
        ], {
            A: "kubejs:moni_penny"
        }).noMirror().noShrink()

        event.shaped(Item.of("minecraft:cherry_sapling", 1), [
            "AA ",
            "   ",
            "  A"
        ], {
            A: "kubejs:moni_penny"
        }).noMirror().noShrink()

        event.shaped(Item.of("minecraft:mangrove_propagule", 1), [
            "A  ",
            "  A",
            " A "
        ], {
            A: "kubejs:moni_penny"
        }).noMirror().noShrink()
    }
})
