Pular para o conteúdo principal

Codex

Official compatibility

ElementReference
TypeWriterRequired. Use the official TypeWriter release supported by the extension release.
Related extensionsInstall the related extensions listed on this page before using entries that depend on them.

The Codex Extension allows you to create comprehensive discovery logs where players unlock entries through exploration, crafting, or specific actions. It handles tracking, percentage completion, and automatic GUI generation for browsing unlockables.

Features

  • Discovery Logs — Group items or monsters into categories that unlock as the player encounters them.
    • Recipe Books — Display custom crafting recipes in a dedicated, navigable UI.
    • Progression Tracking — Automatically calculates % completion for categories.
    • Auto-Generated GUIs — Menus are built automatically based on your definitions.
    • Fragments & Treasure Hunts — Collectible fragments grouped into collections, with treasure hunt definitions that reward completing a set.

Fragments

The former Fragment extension is now part of the Codex: fragments are collectible pieces (fragment_definition) organized into groups (fragment_group) and collections (fragment_collection_config). A treasure_hunt_definition turns a set of fragments into a hunt with completion rewards. Player collection state persists in fragment_artifact.

observação

If you previously used the standalone Fragment extension, its entries now live in the Codex extension — same entry names, same data shape.

Entries

  • DefinitionsDiscovery Category: Define unlocking categories and progression logs. Recipe Definition: Create custom recipe books and crafting guides. Fragments: fragment_definition, fragment_group, fragment_collection_config, treasure_hunt_definition.
    • Actions & MenusOpen Codex: Action to open specific codex menus. Global Menu: codex_global_menu — OmniGUI-layout codex hub.
    • Artifactsfragment_artifact: player fragment collections. codex_unlock_artifact: which unlock triggers already fired per player — unlock rewards fire exactly once.

User guide

Commands

CommandDescriptionAliases
/tw codex open <category>Open a specific codex category menu./tw dcx open

Placeholders

Global placeholders for tracking progress.

PlaceholderDescription
%discoverycodex_category_<id>_name%Display name of the category.
%discoverycodex_category_<id>_unlocked%Count of discovered entries.
%discoverycodex_category_<id>_total%Total entries in the category.
%discoverycodex_category_<id>_percent%Completion percentage (0-100).
%discoverycodex_item_<id>_unlocked%true/false if specific item is unlocked.

Dependencies

ExtensionRequiredUsage
GUI ExtensionRequiredMenu rendering and layout system.
PlaceholderAPIOptionalFor @Placeholder fields.

Troubleshooting

The extension is not visible

Check that the installed release matches the supported TypeWriter release and that the related extensions listed in the compatibility section are present.

An entry is missing

In the Typewriter Web panel, use the Search bar or the + button to find or create the entry with its exact identifier. Entry IDs and field names are case-sensitive; do not translate them.

The entry saves but nothing happens

Check that the entry is connected to the trigger, command, objective, event, or menu interaction required by its type. Test with optional permissions and criteria removed, then add them back one at a time.

An integration does not work

Verify the dependency and version shown in the extension card, then check the server log for the first error. Do not replace a missing dependency with a similarly named plugin unless the extension source explicitly supports it.