FORGOTTEN TOWNS

FORGOTTEN TOWNS / 문서 수정

모딩 위키 ↗

Java API 참조(Javadoc)

MOD API 15

위키 찾아보기

현재 Mod API 문서.

기술 문서는 영어로 제공됩니다. 코드 및 필드 이름은 현재 Mod API를 따릅니다.

문서 수정

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.