About Machine Upgrades
From Factorio Mod PortalThis mod provides an API to make technologies that upgrade crafting machines (at runtime). Example: Researching X => Assemblers +10% Speed, or Chemical Plants +20% Productivity. This mod does nothing by itself, and is intended to be used with other mods.
This mod allows you to make technologies upgrade a machine like with module effects. It works by secretly making invisible beacons on every single entity of a given type automatically.
Look at test-suite.lua to see actual working usage.
How to Use
For convenience, data can be passed in using a type called MUpgradeData. Input something like this in data stage:
local my_upgrade_data = {
{
handler = "Assembler-speed-boosting",
technology_name = "steel-processing",
modifier_icon = {icon="__base__/graphics/icons/electric-furnace.png"},
entity_names = {"electric-furnace", "oil-refinery"},
module_effects = {speed = 0.3, pollution = -0.1},
effect_name = nil, --would make an effect that says "Electric Furnace: +30% Speed”…
},
{
handler = "Actually_uses_assemblers",
technology_name = "steam-power",
modifier_icon = {icon="__base__/graphics/icons/chemical-plant.png"},
entity_names = {"assembling-machine-2"},
module_effects = {productivity = -0.1, consumption = -0.1, quality = 0.2},
effect_name = "My custom string", --would make an effect that says "My custom string: -10% Productivity
}
}
local mupgrades = require("__machine-upgrades__.lib.technology-maker")
mupgrades.handle_modifier_data(my_upgrade_data)
Manual usage
Not recommended. If you want full manual control, the most important functions in this mod are:
- `
mupgrade_lib.make_modifier` : Use this in data stage to create the desired effect in a technology. - `
mupgrade_lib.add_id_flag` : Use this to safely add the get-by-unit-number flag to an entity. - `
remote.call("machine-upgrades-techlink", "add_technology_effect", technology_name, entity_name, effect, entity_handler)`: Use this in control stage in an event callback to tie a specific entity prototype and effect to the technology's research progress.
Note that entity_handler should be matched to the same entity_name(s) to save on UPS.
Thanks: plexpt for the Big Data String 2 mod, used in packing data for more convenience.
Highlights
From source dataGame versions
Built for Factorio 2.1.
Footprint
Rated a light load on a server.
License
Published under GNU GPLv3.
Machine Upgrades on Nxeon
From our catalogue- One-click install
- Supported on Nxeon Factorio servers. We download it from Factorio Mod Portal, place it, and restart the server.
- Server side
- Required on the server
- Server load
- light
- Smallest plan we suggest
- Factorio — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
- Latest build
- 0.69.23, released 2026-08-11
Run Machine Upgrades on a Factorio server
Pick a server or deploy a new one above; it is installed in one click.
What kind of mod it is
From the catalogTechnology & automation
Machines, power, logistics and automation.
Runs on your server
From source side supportFactorio Mod Portal lists Machine Upgrades as required on the server. Check its Factorio Mod Portal page to see whether players need it too.
Compatibility
- Game
- Factorio
- Runs on
- Serverrequired on the server
- Game versions
- 2.1
Verified at the source
- ✓Factorio Mod PortalOfficial listing, checked 2026-10-08Open ↗
- ✓AuthorLoupAndSnoop, as published on Factorio Mod Portal
- ✓LicenseGNU GPLv3Free
