Skip to content

0ptera/Loader-Redux

Repository files navigation

Loader-Redux

Adds Loaders. Rewritten add-loader with new loader snapping logic. Graphics from Arch666Angel and Kirazy.

API Data Stage

required to use make_loader function with 1.8.0

local loader_redux = require("__LoaderRedux__.make_loader")

create loader item

loader_redux.make_loader_item(name, subgroup, order, tint)
-- @tparam String name
-- @tparam String subgroup
-- @tparam String order
-- @tparam Types.Color[] tint

create loader entity

loader_redux.make_loader_entity(name, belt, tint, next_upgrade)
-- @tparam String name
-- @tparam Prototype.TransportBelt[] belt
-- @tparam Types.Color[] tint
-- @tparam String|nil next_upgrade

API Control Stage

register loader for snapping and train interaction in on_init and on_configuration_changed.
Do not call from on_load.

remote.call("loader-redux", "add_loader", name)
-- @tparam String name

unregister loader for snapping and train interaction in on_init and on_configuration_changed.
Do not call from on_load.

remote.call("loader-redux", "remove_loader", name)
-- @tparam String name

About

Factorio Mod adding Loaders to the game.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages