FORGOTTEN TOWNS

FORGOTTEN TOWNS / 模组制作文档

模组维基 ↗

Java API 参考 (Javadoc)

MOD API 15

浏览维基

当前 Mod API 文档。

技术文档有英文版本。代码和字段名称遵循当前的 Mod API。

模组制作文档

Sundering Bench source

This is the gameplay mod's source example. Java hooks live in src/sundering/SunderingMod.java. The extracted SDK places the runtime JSON, translations and artwork in this project's pack/ directory. In the engine repository those files are authored separately under examples/mods/sundering.

From the extracted SDK root, build without the engine source:

.\examples\mod-sdk\build-mod.ps1 -Project .\examples\sundering-mod -ApiJar .\build\mod-sdk\forgotten-towns-mod-api-15.jar -OutputDirectory .\sundering-build

Build from the repository root with ./gradlew.bat --no-daemon assembleSunderingMod. Install the resulting build/mods/sundering folder. See the mod manual for gameplay details.

The assembled folder also includes about/preview.png and descriptions in all thirteen languages. The same folder can ship with the game or stand alone for later Workshop distribution; do not install a second copy under a different ID. Publishing is a separate step. The cover is generated promotional art centered on the station and elemental shards, surrounded by quiet parchment, not a gameplay screenshot.

Presentation files stay outside the gameplay save fingerprint. The settings manifest and gameplay files retain their identities. See covers and descriptions for the authoring convention.

The host conversion panel supports about/ui.json button, modal, row, resource and scrollbar skins. See UI customization.