LuaSurface::create_entity allows the use of the `type` field for use with underground belts, and that is listed.
However, you can set "input" and "output" on loaders as well, and this isn't listed on the method doc.
I assume this is not intentional, and I'm glad I guessed that it worked and found out, but others may not be as lucky.
LuaSurface::create_entity missing variant parameter for loader types
- _CodeGreen
- Long Handed Inserter
- Posts: 69
- Joined: Sat Mar 05, 2022 11:30 am
- Contact:
LuaSurface::create_entity missing variant parameter for loader types
My Mods | If you can't make it perfect, make it adjustable
Re: LuaSurface::create_entity missing variant parameter for loader types
Thank you for pointing this out. It also accepts the filter parameter in the same format as inserters. Added to the docs for the next doc release.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.