1) add 'crew replacer' as a library for your mod. (how this works changes depending on how you set up your workplace)
2) in the 'mod_info.json' file of your mod, add
"dependencies": [
{
"id": "aaacrew_replacer",
"name": "crew_replacer",
},
],
somewhere in in said file (look at other mods files for refrence)
3) run the following in your mod plugins 'onApplicationLoad()' function
crewReplacer_Main.getCrewSet("crew").addNewCrew("commodityID", 1, 10);
but replace "commodityID" with the ID of the commodity you want to act as a crew, and '1' with how 'strong' you want this crew to be (so 1.25 would be 25% stronger then crew. 0.5 would be 50% weaker)
here is a example of what your mod plugin could look like (I made it so ore acts as 'crew', but 75% stronger in this example.) (also, were it says 'AI_RetrofitsStartup' should be your mod plugins class name. it should not be mine or you will have issues.)
public class AI_RetrofitsStartup extends BaseModPlugin {
@Override
public void onApplicationLoad() {
crewReplacer_Main.getCrewSet("crew").addNewCrew("ore", 1.75, 10);
}
}