How does auto barrelling work? (modding question)

Infinite Ores, Refining, Ore Processing ...

Moderator: Arch666Angel

Post Reply
SoulCake
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Sep 02, 2019 11:09 am
Contact:

How does auto barrelling work? (modding question)

Post 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.

User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2528
Joined: Fri Nov 06, 2015 7:41 pm

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

Post 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.
Image

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

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

Post 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.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

SoulCake
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Sep 02, 2019 11:09 am
Contact:

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

Post 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....

Post Reply

Return to “Angels Mods”