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

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

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

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

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

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

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

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

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

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