import { BlockBehavior } from "../../modules/blockModule";
const createTransform = (currentValue, transformToId, transformToValue, item, sound, transformItem, receiveItem) => ({
    state: {
        state: "cc:fill",
        value: currentValue,
    },
    transformTo: {
        id: transformToId,
        states: transformToValue !== null ? [{ state: "cc:fill", value: transformToValue }] : [],
    },
    item: item,
    sound: sound,
    transformItem: transformItem,
    receiveItem: receiveItem,
});
export function registerFeasts() {
    // chicken feast
    BlockBehavior.register({
        id: "cc:chicken_feast",
        transform: {
            transforms: [
                createTransform(4, "cc:chicken_feast", 3, "minecraft:bowl", "fall.stone", "minecraft:apple", undefined),
                createTransform(3, "cc:chicken_feast", 2, "minecraft:bowl", "fall.stone", "minecraft:apple", undefined),
                createTransform(2, "cc:chicken_feast", 1, "minecraft:bowl", "fall.stone", "minecraft:apple", undefined),
                createTransform(1, "minecraft:air", null, "minecraft:bowl", "fall.stone", "minecraft:apple", "minecraft:bowl"),
            ],
        },
    });
    // fish feast
    BlockBehavior.register({
        id: "cc:fish_feast",
        transform: {
            transforms: [
                createTransform(4, "cc:fish_feast", 3, "minecraft:bowl", "fall.stone", "minecraft:apple", undefined),
                createTransform(3, "cc:fish_feast", 2, "minecraft:bowl", "fall.stone", "minecraft:apple", undefined),
                createTransform(2, "cc:fish_feast", 1, "minecraft:bowl", "fall.stone", "minecraft:apple", undefined),
                createTransform(1, "minecraft:air", null, "minecraft:bowl", "fall.stone", "minecraft:apple", "minecraft:bowl"),
            ],
        },
    });
    // pork feast
    BlockBehavior.register({
        id: "cc:pork_feast",
        transform: {
            transforms: [
                createTransform(4, "cc:pork_feast", 3, "minecraft:bowl", "fall.stone", "minecraft:apple", undefined),
                createTransform(3, "cc:pork_feast", 2, "minecraft:bowl", "fall.stone", "minecraft:apple", undefined),
                createTransform(2, "cc:pork_feast", 1, "minecraft:bowl", "fall.stone", "minecraft:apple", undefined),
                createTransform(1, "minecraft:air", null, "minecraft:bowl", "fall.stone", "minecraft:apple", "minecraft:bowl"),
            ],
        },
    });
    // beef feast
    BlockBehavior.register({
        id: "cc:beef_feast",
        transform: {
            transforms: [
                createTransform(4, "cc:beef_feast", 3, "minecraft:bowl", "fall.stone", "minecraft:apple", undefined),
                createTransform(3, "cc:beef_feast", 2, "minecraft:bowl", "fall.stone", "minecraft:apple", undefined),
                createTransform(2, "cc:beef_feast", 1, "minecraft:bowl", "fall.stone", "minecraft:apple", undefined),
                createTransform(1, "minecraft:air", null, "minecraft:bowl", "fall.stone", "minecraft:apple", "minecraft:bowl"),
            ],
        },
    });
    // citrus smoothie
    BlockBehavior.register({
        id: "cc:citrus_smoothie",
        transform: {
            transforms: [
                createTransform(4, "cc:citrus_smoothie", 3, "minecraft:bowl", "fall.stone", "minecraft:apple", undefined),
                createTransform(3, "cc:citrus_smoothie", 2, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(2, "cc:citrus_smoothie", 1, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(1, "minecraft:air", null, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", "minecraft:empty_bottle"),
            ],
        },
    });
    BlockBehavior.register({
        id: "cc:berry_smoothie",
        transform: {
            transforms: [
                createTransform(4, "cc:berry_smoothie", 3, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(3, "cc:berry_smoothie", 2, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(2, "cc:berry_smoothie", 1, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(1, "minecraft:air", null, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", "minecraft:empty_bottle"),
            ],
        },
    });
    // lemonade juice
    BlockBehavior.register({
        id: "cc:lemonade_juice",
        transform: {
            transforms: [
                createTransform(4, "cc:lemonade_juice", 3, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(3, "cc:lemonade_juice", 2, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(2, "cc:lemonade_juice", 1, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(1, "minecraft:air", null, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", "minecraft:empty_bottle"),
            ],
        },
    });
    // apple juice
    BlockBehavior.register({
        id: "cc:apple_juice",
        transform: {
            transforms: [
                createTransform(4, "cc:apple_juice", 3, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(3, "cc:apple_juice", 2, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(2, "cc:apple_juice", 1, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(1, "minecraft:air", null, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", "minecraft:empty_bottle"),
            ],
        },
    });
    // tropical smoothie
    BlockBehavior.register({
        id: "cc:tropical_smoothie",
        transform: {
            transforms: [
                createTransform(4, "cc:tropical_smoothie", 3, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(3, "cc:tropical_smoothie", 2, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(2, "cc:tropical_smoothie", 1, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(1, "minecraft:air", null, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", "minecraft:empty_bottle"),
            ],
        },
    });
    // orange juice
    BlockBehavior.register({
        id: "cc:orange_juice",
        transform: {
            transforms: [
                createTransform(4, "cc:orange_juice", 3, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(3, "cc:orange_juice", 2, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(2, "cc:orange_juice", 1, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(1, "minecraft:air", null, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", "minecraft:empty_bottle"),
            ],
        },
    });
    // peanut butter
    BlockBehavior.register({
        id: "cc:peanut_butter",
        transform: {
            transforms: [
                createTransform(4, "cc:peanut_butter", 3, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(3, "cc:peanut_butter", 2, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(2, "cc:peanut_butter", 1, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(1, "minecraft:air", null, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", "minecraft:empty_bottle"),
            ],
        },
    });
    // strawberry jam
    BlockBehavior.register({
        id: "cc:strawberry_jam",
        transform: {
            transforms: [
                createTransform(4, "cc:strawberry_jam", 3, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(3, "cc:strawberry_jam", 2, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(2, "cc:strawberry_jam", 1, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", undefined),
                createTransform(1, "minecraft:air", null, "minecraft:empty_bottle", "fall.stone", "minecraft:apple", "minecraft:empty_bottle"),
            ],
        },
    });
}
