Page 1 of 1

How does auto barrelling work? (modding question)

Posted: Mon Sep 02, 2019 11:17 am
by SoulCake
Hey, I am starting with my own overhaul mod and was wondering...
how does the barrelling pump with auto-barrelling work script-wise?
I mean, it's not possible to have a furnace with two inputs.
Unfortunately, I couldn't really find much in the files and the auto-barreling mod for 0.15 is just baffling (no scripts).

Any modder who can explain this?
I'd mainly like to know, because I have a lot of recipes that require x + a specific liquid.
Not yet acquainted with lua, though I am a coder.

Re: How does auto barrelling work? (modding question)

Posted: Mon Sep 02, 2019 11:39 am
by Deadlock989
Any fluid that does not have the auto barrelling flag set to false in its prototype will have barrelling recipes generated by the base data-updates script, if it is created before that happens.

Furnaces can't have recipes with more than one solid ingredient. Fluids don't count towards that restriction.

Re: How does auto barrelling work? (modding question)

Posted: Mon Sep 02, 2019 12:03 pm
by eradicator
SoulCake wrote: Mon Sep 02, 2019 11:17 am Unfortunately, I couldn't really find much in the files and the auto-barreling mod for 0.15 is just baffling (no scripts).
After some trivial fixes that mod works fine in 0.17 too. As it depends on "crafting-with-fluid" the auto-barreling machines can make everything in that category that fullfills the requirement "1 solid + 1 fluid", which is mostly barreling, but for vanilla also includes i.e. rocket fuel.

Re: How does auto barrelling work? (modding question)

Posted: Mon Sep 02, 2019 1:33 pm
by SoulCake
Furnaces can't have recipes with more than one solid ingredient. Fluids don't count towards that restriction.
Oh, wow. I did not know that. Time to change all of my machines to furnaces....