There are several methods that one could currently use to write new module effects in the current API without needing a ModuleEffect prototype, though doing so requires heavy use of mod-data and custom tooltips:
1. As Rigor Module does, by creating recipe copies for all recipes that support the Rigor effect, and hotswapping recipes in machines based on the machine's rigor.
2. With recipe events, calculating a machine's module effect value, then doing something to the machine based on the effect value.
ModuleEffect would simplify the codebase of custom module mods by eliminating the need to store module effect values in mod-data or to calculate module effects in machines. It does not need to support anything other than the ability to calculate, display and read custom module effects in machines, as well as the ability to assign custom module effects to modules and machines via Effect. All effects of these custom module effects can be executed via other parts of the Lua API.
ModuleEffect Prototype: A prototype to add new module effects evaluated for entities.
-
MeteorSwarm
- Long Handed Inserter

- Posts: 50
- Joined: Thu Sep 25, 2025 10:49 pm
- Contact:
- micromario
- Fast Inserter

- Posts: 119
- Joined: Thu Apr 05, 2018 11:53 am
- Contact:
- MrSmoothieHuman
- Fast Inserter

- Posts: 185
- Joined: Sat Aug 05, 2023 1:20 am
- Contact:
Re: ModuleEffect Prototype: A prototype to add new module effects evaluated for entities.
+1
coder? i hardly know her!