====== Workplaces ====== A workplace is a building containing a [[api:building_function_workplace|BUILDING_FUNCTION_WORKPLACE]]. ===== Example of declaring a workplace building function ===== -- Register the mithril factory extension B part mod:register({ DataType = "BUILDING_PART", Id = "MITHRIL_FACTORY_EXTENSION_B_ROOT_PART", -- [...] BuildingFunction = { DataType = "BUILDING_FUNCTION_WORKPLACE", WorkerCapacity = 1, RelatedJob = { Job = "MITHRIL_ARTISAN", Behavior = "WORK_BEHAVIOR" }, InputInventoryCapacity = {{ Resource = "MITHRIL_ORE", Quantity = 30 }}, ResourceListNeeded = {{ Resource = "MITHRIL_ORE", Quantity = 5 }}, ResourceProduced = {{ Resource = "MITHRIL_NECKLACE", Quantity = 1 }} }, -- [...] }) This example assume the mod already declared a ''MITHRIL_ARTISAN'' [[api:job|job]], a ''MITHRIL_ORE'' and a ''MITHRIL_NECKLACE'' [[api:resource|resources]]. See mod Example 02 for complete examples. More info on buildings [[buildings|here]].