Set mods
pz_set_modsSet Project Zomboid server mod list using paired Workshop and mod IDs. Supports replace, add, or remove modes while maintaining load order.
Instructions
Update Mods and WorkshopItems together. Each entry needs BOTH ids: workshopId is what Steam downloads, modId is what the game loads, and they are different identifiers. Array order is load order, which matters in PZ. Call this for any add/remove/reorder of the server's mod list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'replace' (default) swaps the whole list, 'add' appends to the current one, 'remove' drops the listed entries. | replace |
| mods | Yes | Entries of {"workshopId": "2392709985", "modId": "Authentic Z"}, plus an optional "name" for readability. workshopId is the Steam Workshop id; modId comes from the mod's mod.info. List order is load order. | |
| service_id | No | Nitrado service id. Defaults to NITRADO_SERVICE_ID when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |