Liquid in the assembling machine

Looking for a mod? Have a review on a mod you'd like to share?
Post Reply
_npo6ka_
Fast Inserter
Fast Inserter
Posts: 102
Joined: Mon Sep 26, 2016 10:29 pm
Contact:

Liquid in the assembling machine

Post by _npo6ka_ »

Is it possible to find out if the assembly machine (LuaEntityPrototype) supports the liquid at the input?

Bilka
Factorio Staff
Factorio Staff
Posts: 3128
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Liquid in the assembling machine

Post by Bilka »

This depends on the recipe, but in general the assembler only supports fluids if it has a fluidbox. This property cannot be read for the LuaEntityPrototype in 0.16, but you will be able to read it in 0.17: https://lua-api.factorio.com/0.17.0-pre ... prototypes

If you are looking at a LuaEntity, use https://lua-api.factorio.com/latest/Lua ... y.fluidbox. There is no easy/straight-forward way to find out which fluid should be in this fluidbox for this machine to work. You can even insert any other fluid.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

_npo6ka_
Fast Inserter
Fast Inserter
Posts: 102
Joined: Mon Sep 26, 2016 10:29 pm
Contact:

Re: Liquid in the assembling machine

Post by _npo6ka_ »

Bilka wrote:This depends on the recipe, but in general the assembler only supports fluids if it has a fluidbox. This property cannot be read for the LuaEntityPrototype in 0.16, but you will be able to read it in 0.17: https://lua-api.factorio.com/0.17.0-pre ... prototypes

If you are looking at a LuaEntity, use https://lua-api.factorio.com/latest/Lua ... y.fluidbox. There is no easy/straight-forward way to find out which fluid should be in this fluidbox for this machine to work. You can even insert any other fluid.
Thanks for your reply.

Post Reply

Return to “Questions, reviews and ratings”