Objectives
This mod is used to move a set of entities to a new location.
Can move belt.
To use it:
For a single entity
- select an entity
- use CONTROL+ARROWS to move the selection to a new location
- strike CONTROL+ENTER to do real move.
For several entities,
- use the move selection tools to select entities (SHIFT to unselect)
- Use CONTROL+ARROWS to move the selection to a location (or move your character)
- strike CONTROL+ENTER to end the move
To cancel a move
- strike CONTROL+k
Interface
For modded entities, by default, the mod will move all entities inside the selected one.
For more complex processing, the interface "factory_organizer" expose those methods:
- add_forbidden(entity_name : string) : register an entity name that will cancel the operation
- add_not_moveable(entity_name : string) : register an entity name that will not be moved
- add_collect_method(entity_name : string, interface : string, method : string) : register an interface and a method to collect object for a move
- collect( entity:LuaEntity) : LuaEntity[]
- add_preteleport_method(entity_name : string, interface : string, method : string) : register an interface and a method called just before teleportation
- preteleport(entity : LuaEntity)
- add_teleport_method(entity_name : string, interface : string, method : string) : register an interface and a method called just after teleportation
- teleport(entity : LuaEntity)