For a project i have in my head, I would find it really useful if modders could grab the data of what mods have touched what items, and in what order during game play.
For example, if you wanted to make a whitelist/blacklist mod, which disables placement of a certain mods buildings depending on certain critera during control.lua scripts, this would make it much easier.
Take this from the tooltip as an example:
Perhaps something like:
Code: Select all
entity.modInteractions - Table of mod interactions that have modified this entity prototype and in what order
Code: Select all
game.print(entity.modInteractions[1]) = "Krastorio" for example