FORGOTTEN TOWNS

FORGOTTEN TOWNS / DOCUMENTAZIONE DI MODIFICA

Wiki di modifica ↗

Java Riferimento API (Javadoc)

MOD API 15

Sfoglia la wiki

Documentazione corrente dell'API Mod.

La documentazione tecnica è disponibile in inglese. Code and field names follow the current Mod API.

DOCUMENTAZIONE DI MODIFICA

JSON Content Starter

A standalone pack with a weapon, furniture, and a creature. No Java, JDK, other mod, or new artwork is required. Includes names in all thirteen supported languages.

Install

  1. Copy this entire folder to mods/content_starter in the game's user-data directory.
  2. Open Mods, choose Refresh, enable content_starter, and choose Apply & reload.
  3. Start a new Meadows test world. The pack declares requiresNewWorld: true for its initial spawns.

Files to edit

File Adds Check in game
data/weapon.json Practice Spear: copied stone-spear icon, equipment damage 3, copied crafting recipe Discover the normal stone-spear ingredients/station, craft the new recipe, and inspect the result
data/furniture.json Decorative Chair: copied chair art/crafting, decoration value 2 and radius 2 Craft and place it; inspect all four rotations
data/creature.json Meadow Cat: copied mountain-lion behavior/art, level 2, requests two initial spawns on Meadows grass/dirt Explore a new Meadows world; initial placement depends on available valid tiles
mod.json Ordered patch list and translation paths Confirm no code entry or dependency is needed

The creature retains the mountain lion's behavior and selectors. It has no added migration/birth profile. Creature definitions do not create recruitable unit archetypes. The weapon reuses existing systems; an inventory icon does not add a new held-weapon animation.

Keep only one example

  1. Keep only the required path in mod.json's patches array.
  2. Keep the translation catalogs. Unused names are harmless.
  3. If you remove data/creature.json, you may set requiresNewWorld to false; use a test world.
  4. Apply and reload after each edit.

For your own released pack, change the folder, manifest ID, every content_starter: identity, and mods.content_starter. translation keys together. Keep IDs stable after release.

Follow the weapon, furniture, or creature instructions.