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

Bread Crates

A small JSON-only extension to native Settlement Trading. Copy this folder into mods/, enable Bread Crates, then apply and reload. It adds packing_extension:bread_crate, containing ten loaves of bread, to the existing packing table, Pack/Unpack menu and settlement trade filter. The recipe also consumes a crate, paper and green dye, using the native packing profile.

No Java compilation is required. The declared settlement_trading dependency is provided by the base game after native integration; do not install the historical parent mod. Earlier game builds with API 15 require the original parent. This sample includes metadata in every supported language; crate and recipe labels reuse the localized native profile and bread name.

Make it yours

Change the manifest ID and every occurrence of packing_extension: and mods.packing_extension. together. Choose a resource that does not already have a packing definition: the registry permits one packed product per loose resource, avoiding ambiguous market conversion. Change amount, category dye and preservation within the documented field bounds. Avoid copying legacyIds.

Validate loading, then pack and unpack a crate in a test world. Check the contents and empty crate are returned, the craft menu contains the new product, and a saved/reloaded world retains it. Disable the extension in a separate profile: only this new product and its generated recipes should disappear; native trading must remain available. Saves using the extension continue to require it.

The Settlement Trading source study shows the larger original design with Java policies and two dependent mods.