#Least tedious way to handle multiple layers of recipe at once?

7 messages · Page 1 of 1 (latest)

hybrid grotto
#

I'm playing on a modpack that uses Create: Dreams and Desires, and one thing it adds is alternate, more difficult recipes of basic items with a higher resulting amount (see picture)

However, there's a good bit of blocks that don't have them and I want to add them myself, but I realized that if I want to do that then I would have to make a recipe for every single combination someone could do to attain the recipe. I'm a bit dense when it comes to looping, so I wanna ask for maybe a place to start? The hard part is really just the fact that I need to edit the same recipe several dozen times with slight variations in the materials

As an example of what I'm trying at the moment;

        let electron_types = [
            "create:electron_tube",
            "create_dd:integrated_mechanism"
        ]
        let brass_types = [
            "create:brass_ingot",
            "create_dd:brass_ingot"
        ]
        let kelp_types = [
            "minecraft:dried_kelp",
            "create_dd:rubber"
        ]
        event.shaped(
            "6x create:brass_funnel",
            [
                "E  ",
                "B  ",
                "R  ",
            ],
            {
                E: "create:electron_tube",
                B: "create:brass_ingot",
                R: "create_dd:rubber"
            }
        )

I want to make it so if you use one of the alternate materials you get 6 funnels, but then I'm going to make using two of the alternate materials give 12, and finally using all three will give you 20 as a small bonus for automating all the extra stuff.

main galleonBOT
#

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

hybrid grotto
#

just realized I might be going about this wrong in the first place, I might be able to just swap out the dict of ingredients wholesale using a loop

#

my b!

#
        let brass_six_combos = [
            {
                E: "create:electron_tube",
                B: "create:brass_ingot",
                R: "create_dd:rubber"
            },
            {
                E: "create:electron_tube",
                B: "create_dd:bronze_ingot",
                R: "minecraft:dried_kelp"
            },
            {
                E: "create_dd:integrated_mechanism",
                B: "create:brass_ingot",
                R: "minecraft:dried_kelp"
            }
        ]
        brass_six_combos.forEach(brass_ingredients =>{
            event.shaped(
                "6x create:brass_funnel",
                [
                    "E  ",
                    "B  ",
                    "R  ",
                ],
                brass_ingredients
            )
            event.shaped(
                "6x create:brass_tunnel",
                [
                    "E  ",
                    "BB ",
                    "RR ",
                ],
                brass_ingredients
            )
        })
#

This might work, still a tiny bit tedious but not nearly as bad as having to do it all manually

#

nice it worked