FORGOTTEN TOWNS

FORGOTTEN TOWNS / MODDINGDOCUMENTATIE

Moddingwiki ↗

Java-API-referentie (Javadoc)

MOD API 15

Door de wiki bladeren

Documentatie van de huidige Mod API.

De technische documentatie is beschikbaar in het Engels. Code en veldnamen volgen de huidige Mod API.

MODDINGDOCUMENTATIE

Crystal add-on - dependencies and nested JSON

Build and enable the independent Practice Workshop first. Install this folder directly as mods/crystal_addon, then use {"enabled":["my_mod","crystal_addon"]}. The manifest requires my_mod and records 1.0.0 as the tested version; different versions are validated. This add-on contains no Java class.

  • tuning.json patches its dependency's damage bonus and particle trails.
  • recipes.json demonstrates alternative bundles, family ingredients, distinct family members, multiple stations, station tags, discovery unlocks, a random byproduct and a burn failure. The risky mixed batch can injure its worker and lose the batch on failure.
  • placeables.json adds a resource cabinet with eight slots and a crafted decoration. Placeholder visuals come from the Food Crate and Ship Wheel. The cabinet retains its warehouse-floor requirement. The token explicitly clears its copied crafted resource ID so the engine generates an identity owned by this add-on.
  • translations/ supplies every new name in all thirteen supported languages.

The sample keeps ingredient alternatives and distinct-family selection in separate recipes because they are mutually exclusive authoring forms. The first recipe requires both a Mason Bench and the Practice Workshop. The second consumes two distinct kinds of log. These examples demonstrate the data contracts, not a proposed production balance.

See the JSON reference for exact fields and limitations.