Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Runtime Docs Version 2.0.77

# UpgradeMapperDestination - Runtime Docs

## UpgradeMapperDestination :: table

#### Table fields

type | :: `"item"` or `"entity"` |
name | :: string? | Name of the item or entity.
Name of the item or entity.
quality | :: string? | Name of the quality prototype.
Name of the quality prototype.
module_limit | :: uint16? | When upgrading modules, this defines the maximum number of this module to be installed in the destination entity. `0` or `nil` means no limit.
When upgrading modules, this defines the maximum number of this module to be installed in the destination entity. `0` or `nil` means no limit.
module_slots | :: array[BlueprintItemIDAndQualityIDPair]? | When upgrading entities, this defines explicit modules to be installed in the destination entity. Lists empty slots as `{}`.
When upgrading entities, this defines explicit modules to be installed in the destination entity. Lists empty slots as `{}`.

Concept used in

- LuaItemCommon::get_mapper()
- LuaItemCommon::set_mapper()
- LuaRecord::get_mapper()
- LuaRecord::set_mapper()