Trouble with auto_barrel [SOLVED]
Posted: Tue Jan 09, 2024 7:33 am
Hello, I am currently working on a mod. I have a fluid which I have created. The following is in a file required by my data.lua:
The fluid appears in the game, and works perfectly, except that there are no barrels for it in the crafting menu. The auto_barrel function is not working for me, and I'm not sure what I'm doing wrong. Since this script is called by data.lua, it should execute in time to be picked up by the auto barrel function, right? And yet it does not work.
If someone could please point out to me what I'm doing wrong, it would be greatly appreciated!
Code: Select all
local liquid_pyrolysis_oil ={{
type = "fluid",
name = "liquid-pyrolysis-oil",
default_temperature = 25,
heat_capacity = "0.1KJ",
base_color = {r=0.8,g=0.8,b=0.8},
flow_color = {r=0.8,g=0.8,b=0.8},
icon = "__toms-byproducts__/graphics/icons/liquid-pyrolysis-oil.png",
icon_size = 64, icon_mipmaps = 4,
order = "a[fluid]-z[liquid_pyrolysis_oil]",
auto_barrel = true
}}
data:extend(liquid_pyrolysis_oil)
If someone could please point out to me what I'm doing wrong, it would be greatly appreciated!