Mod configurations
The Configuration tab defines variables that server admins fill when installing your mod.
Each configuration field can include:
- identifier (key)
- display title
- help text
- required flag
- default value
- optional group name
Use clear identifiers and meaningful help text so server admins can configure your mod without guesswork.
Validation note:
- required fields are checked as non-empty values
- if you provide a default value, admins may not need to enter that field manually
Every configuration field becomes a Dynamic Variable using its identifier. If your mod has a field with identifier spawn_location, it is available as {$spawn_location} in all file contents and paths when Dynamic Variables is enabled.
Field types
| Type | Template variable shape | Notes |
|---|---|---|
string | string|null | Single-line text; empty → null |
textarea | string|null | Multi-line text; identical to string in templates |
email | string|null | Email address input; identical to string in templates |
number | int|float|null | Auto-cast; use |default: 0 for optional fields |
boolean | bool|null | Render conditionally: {if $flag}true{else}false{/if} |
coordinate | {x, z, y?, radius?}|null | Access sub-fields: {$pos.x}, {$pos.z} |
generic_select | string|null or string[] | Dropdown from a fixed list; array when multiple: true |
faction_select | string|null or string[] | Server's faction IDs |
player_select | string|null or string[] | Server's player usernames |
relation_select | string[] | Always an array; never null — empty returns [] |
discord_channel_select | string|null or string[] | Discord text channel IDs |
discord_category_select | string|null or string[] | Discord category IDs |
discord_role_select | string|null or string[] | Discord role IDs |
discord_guild_select | string|null or string[] | Discord guild IDs |
object_list | array | Repeatable list of objects; never null — iterate with {foreach} |
For full template usage examples per type, see the Mod Builder agent reference.