Right now you have to create a fake technology with allowed recipes as unlocks to access them ingame, which is quite ugly

Code: Select all
type = "module",
name = "productivity-module",
icon = "__base__/graphics/icons/productivity-module.png",
flags = {"goes-to-main-inventory"},
subgroup = "module",
order = "c[productivity]-a[productivity-module-1]",
stack_size = 50,
default_request_amount = 10,
effect = { productivity = {bonus = 0.04}, consumption = {bonus = 0.4}, pollution = {bonus = 0.3}, speed = {bonus = -0.15}}, -- <---- read access is already available via LuaItemPrototype.module_efffects
limitation = productivitymodulelimitation(), -- <---- this here
limitation_message_key = "production-module-usable-only-on-intermediates"