FORGOTTEN TOWNS

FORGOTTEN TOWNS / MODDING DOCUMENTATION

Modding wiki ↗

Java API reference (Javadoc)

MOD API 15

Browse the wiki

Current Mod API documentation.

MODDING DOCUMENTATION

Supported boundaries

The Mod API provides defined content registries and controlled Java services. Design around the JSON reference and Java reference.

Supported

  • Add or patch weapons, furniture, creatures, recipes and other documented content.
  • Add authored scenarios using supported objectives, operations and scenes.
  • Extend housing, relationships, trade and other exposed colony rules.
  • Request native work, transfer physical stock and respond to committed events.
  • Project information into native panels and provide localized settings and shortcuts.

Outside the public contract

Mutable engine managers, renderer internals, replacement pathfinding or AI algorithms, damage interception, arbitrary UI windows, new professions and recruitable unit archetypes are not exposed. Adding a field to a base-game JSON file does not make it a supported mod operation.

Protection and responsibility

The host validates content references, ownership, placement, resource accounting and bounded state. Many operations use native gameplay restrictions and per-callback limits. Read the exact contract; limits are not identical for every service.

Mods can still make poor balance decisions or write incorrect behaviour. Java callbacks run on the simulation thread and can stall execution. Import validation is not a security sandbox. Use a test world and validate both behaviour and save/load before publishing.