r/CreateMod • • 3d ago

Discussion Microservices-based factory

Hi all!

I attempted to build a universal factory based on a microservices architecture. Each operation involving items constitutes an isolated place, which is linked to others via a system of "frog-based" logistics. Factory gauges define the sequence of operations, while chain transport the results of each microservice.

Overall, the concept is quite workable, but there is one annoying nuance. Since the factory is universal, it should be capable of producing any item, provided the chain is set up correctly. However, the mechanisms within each microservice do not know what specific item they are currently producing; they simply perform their own primitive tasks.

I’ve also run into an issue with getting the results out of the mechanism. Since the item varies each time, I can’t set up filters on the chutes or funnels. A chute can extract both output and input ingredients from a mechanism. In other words, ingredients arrive in a microservice's input buffer and are placed onto a depot, saw, basin or similar component; the output chute then simply picks up those incoming ingredients.

Is there any way to set filters dynamically ? Or perhaps a way to prevent the retrieval of incoming ingredients ? Or perhaps there are other ways to carry out my idea that just haven’t occurred to me?

3 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/gonzo_gonzales 3d ago

 I was thinking about refactoring some of the microservices to use conveyors. It’s certainly not as convenient as direct loading and unloading into a block, and the overall dimensions will increase as well. 

But for some operations, this seems impossible. For example, lava blasting. As far as I know, different recipes may require spending different amounts of time in front of the lava. Furthermore, in some recipes, the resulting products might undergo further processing if you stay in front of the lava for longer than necessary.

1

u/Chaosfox_Firemaker 3d ago

With the blasting, the trick is to just use attribut filters. Resmeltables are solved by just having two smelters, one of which permits first smelts, the second of which forbids them. Cobble>stone>smooth stone is actually the only base create/vanilla example

1

u/gonzo_gonzales 3d ago

Could you elaborate a bit on the "two smelters" ? I’m familiar with attribute filters, but I don’t quite see how they can be used to implement a universal smelter. Should I send items to different smelters depending on the specific recipe? Or should I just forget about smooth stone and set up an attribute filter instead? Then there’s also clay-terracotta-glazed terracotta...