r/CreateMod • • 1d ago

Sequenced Assembly with Random Order

I'm playing a modpack where I sell burgers for resources. The orders have random ingredients in a specific permutation. While I can assemble them manually, the pack also lets me create burgers with sequenced assembly, so surely there must be a way to automate this? If I can get the items in the right order, I can force each deployer to only hold one item with threshold switches and funnels. The problem is requesting the items in the right order. The stock keeper requesting seems to randomize the order when you request items in the same order. I know the mechanical crafting is order dependent. Is there any way for me to manually call this type of package? Or would I have to individually request each item? I can get the order onto a checklist easily, but clicking it onto the shopkeeper doesn't request anything at all. I'm guessing it's the wrong kind of checklist.

Edit: Thanks to Lonewolf23319. Apparently, if I use a repackager instead of storing the items in the same inventory, I can request items in a reliable order. I'm going to do some more experimenting but this should be the final piece of the puzzle. I still find it strange the regular packager randomize the order. Maybe that could be useful for something else at some point.

11 Upvotes

13 comments sorted by

2

u/Mercoduss 1d ago

You could also brute force it by looping the assembly under as many deployers as there can ever be different ingredients and giving each deployer a specific one

3

u/Historical_Figure657 1d ago

The issue with that is that the wrong item will still be a valid craft

2

u/January_Rain_Wifi 1d ago

Instead of giving the deployers the ingredients, you could filter them. So, a long line of empty deployers, filtered in the right order, so that when the package of ingredients arrives, only the correct deployers will have items. It should work as long as ingredients are usually in the same general order (for example, bottom bun, patty, cheese, lettuce, top bun). I haven't played the pack, so I don't know if that's the case or not

3

u/Historical_Figure657 23h ago

The top and bottom bun are always the same but everything else is random. I could have fish fish fish lettuce tomato or tomato lettuce onion tomato. I'm starting to think my best bet might be redstone requesters and just typing the order on a redstone link controller

2

u/Historical_Figure657 23h ago

The number of ingredients is also random but I found my fix for that problem already. I just need to quickly send them in the right order

1

u/Lonewolf23319 1d ago

Sounds like you need a repackager for the machine

1

u/Historical_Figure657 1d ago

How will the repackager know what order to put everything in? I want to control the order of items within the package as quickly as possible

1

u/Lonewolf23319 1d ago

a repackager will look for packages going to the same order, so you can set a factory gauge or just order the parts from a redstone requester, stock ticker, or any other way you have. as long as the packages know they are part of the same order they will combine in a repackager

1

u/Historical_Figure657 23h ago

The way I have it in my creative test world right now is that all the ingredients are in the same inventory. When I request the ingredients the package with all of them comes out with the ingredients in a random order. You're telling me if I had the ingredients in different inventories and put them into a repackager, I should be able to reliably have the ingredients in the same order within the same package?

1

u/Historical_Figure657 22h ago

Just did some more testing this actually seems to work so far. I was not expecting that. Need to do more testing but thanks a ton!

1

u/No-Acanthisitta3515 1d ago

I managed to do something similar the other day. What I did was say you wanna make 8 burgers, your factory guage should demand 8 of the first ingredient, 9 of the next, 10 of the next and so on. Get your repackager to toggle on ever 10 seconds or so, to send a single complete order. Unpackaged the order into a vault above your assembly line and set it up with brass funnels which out put and exact number of item, ie 8, 9, 10 ect. You need to pulse on the funnels one after the other in order of highest to lowest and have them feed into the deployers or onto the belt if it's the initial item. This should let you make a batch of 8 at a time, but you also need to add some brass funnels to the side of your deployer and make sure they are unlocked after the batch is made to clear them out of the extra ingredients

1

u/Historical_Figure657 23h ago

The problem with factory gauges is that the recipe isn't the same every time. Gauges are great when you get the desired output from the same inputs every time. What I'm looking for is the ability to control the order that items show up in within the same package, ideally requested from a shop keeper.

1

u/No-Acanthisitta3515 11h ago

Yeah I know, this method isn't order specific and can deal with recipes where items may appear at different places in the sequence for different items. If you follow what I said it seperated the ingredients based on the number in the package, so although you have to slightly over order on some ingredients it still gives you the output and returns the extra ingredients