you'll need to find this part, change what modules are allowed, and then how many slots available
using the moho_extractor.lua as an example
},
energy_usage = "12.501MW",
resource_searching_radius = 17.48,
vector_to_place_result = {0, -7},
allowed_effects = {"speed", "productivity", "consumption", "pollution"},---------------------------------------------------------------------------------------------------
module_specification =
{
module_slots = 4
},