#Condensing Recipe Output

6 messages · Page 1 of 1 (latest)

forest barn
#
    onEvent("recipes", (event) => {
        let dirttypes = ["silt", "loam", "sandy_loam", "silty_loam"];
        let sandtypes = [
            "brown",
            "white",
            "black",
            "red",
            "yellow",
            "green",
            "pink",
        ];

        // create shared results for dirt recipes
        const shared_results = [
            {
                item: "minecraft:clay_ball",
                chance: 0.25,
            },
        ];

        for (const sandtype of sandtypes) {
            shared_results.push({
                item: "tfc:sand/" + sandtype,
                chance: 0.25,
            });
        }

        for (const dirttype of dirttypes) {
            event.custom({
                type: "createsifter:sifting",
                ingredients: [
                    {
                        item: "tfc:dirt/" + dirttype,
                    },
                    {
                        item: "createsifter:string_mesh",
                    },
                ],
                results: shared_results,
                processingTime: 500,
            });
        }```
solar nicheBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

full meadow
#

what is this for?
you uave the feature request tag, but dont explain the feature.
feature requests should also go in #1056980648755208272, witha detailed descriotion of the feature

forest barn
#

sorry if wrong tag. wasnt sure what other tag to use

#

those blocks are different colors of sand from tfc. presently it can output multiple of them at once. i would prefer it produces only one at a time

solar nicheBOT
#

@forest barn Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!