Guilherme B. Lopes139 downloadsStatblock Forge for Atlas VTT is a community extension. It is not made, endorsed or supported by Atlas VTT or Atlas Online.
Statblock Forge is a community extension. It is not made, endorsed or supported by Atlas VTT or Atlas Online.
Statblock Forge is an independent tool for building reusable tabletop RPG statblocks. Create a Template, define the data it needs, arrange that data in a visual editor, and then use the Template to create individual character, creature, or NPC sheets. Each sheet keeps its own values while sharing the Template's structure and presentation.
Forge can be used on its own and integrates directly with the original Atlas VTT 0.17.0 and newer versions; a separate compatibility-fork plugin is not required. The exact 0.17.0 and 0.18.0 source snapshots are inspected baselines, but newer Atlas versions are not blocked by an exact-version allowlist: Forge attempts forward compatibility and checks the runtime methods and service capabilities required by each feature. Because this integration uses Atlas internal services rather than a stable public plugin API, a changed or removed API can make an individual feature unavailable until Forge is updated. Forge uses the original Atlas Dice Tool for rolls attached to open maps and its own dice engine for rolls made without an Atlas map. It also maintains per-statblock roll history, combining open Atlas map logs with Forge-owned persistent entries, and can repeat rolls without a separate compatibility fork.
Creator and maintainer: Guilherme Berger Lopes
Support and issue reporting: GitHub Issues
Row heading, and rows without a custom label or Counter name display only their position number (1, 2, 3...). Pairs Fields remain standalone Collections..forgestyle packages.max, used/spent, remaining/current/available), percentages, full/empty states, root and .total aggregates, visible-row counts, preset defaults, other structured numeric properties, and displayed Table cells. The final expression still follows dice notation and uses safe integer values.The Template editor includes a Compendium for reusable Entries/Abilities, Lists, Pairs, and Spells. Each collection Field has its own library by default; compatible Fields can also share a library. Libraries support optional categories and search. Content inserted into a statblock is copied into that sheet, so editing the copy does not change the Template library.
A Template defines the reusable structure and presentation. A statblock note stores the Values for one individual. Multiple notes can use the same Template without sharing their sheet data.
With Atlas VTT 0.17.0 or newer active, click a dice link in an Atlas Ctrl-hover preview to roll through that exact map's native DiceTool. Other Forge surfaces use an unambiguous visible Atlas map when one is available. To prepare a roll with additional modifiers:
adv/dis and formulas with unsupported modifiers stay as formula presets to preserve their meaning. Right-click the source formula again to Pin or Unpin matching saved rolls in Atlas' native dice row. The row holds up to 10 positions (including its standard dice); use Atlas' own row editor to reorder or remove entries. Forge retains up to 20 history entries per statblock (500 total) in plugin data; it also reads Atlas map history while the originating map is open. Repeating an Atlas roll uses its original visible map when available, or the saved Dice Set through Forge's local engine after the map closes.Queued modifiers are temporary: they apply to the next successful roll for that statblock and are not written into the Template or statblock note.
.atlastemplate mirrors so Forge Templates appear in Atlas collection Roles. Each mirror has its own stable Atlas ID, and notes created from a Role resolve back to the original .forgetemplate.Row / Linha heading from the optional Table row-label column. Unnamed rows show their position number; custom and Counter-provided labels remain intact.{table_1.row2.value} and @table_1.row2.value, for supported formulas outside the Table.Atlas integration is optional for creating Templates and editing Forge statblocks. Forge detects the original Atlas plugin (atlas-vtt) through the live plugin registry and resolves each map's runtime services in one central runtime context using the inspected Atlas 0.17.0/0.18.0 baselines and forward-compatible capability checks. Token readers and token-link actions consume that same context rather than performing separate Workspace or ServiceManager discovery. These are intentional internal-runtime dependencies; newer versions are allowed, but each feature checks for the methods it needs and may remain unavailable if Atlas changes its internal APIs.
The projects have separate responsibilities:
Forge does not maintain a second Conditions catalog or apply Token Conditions through Rest. Configure and manage Conditions in Atlas.
Forge v2 statblocks are also listed in Atlas' native Link Statblock dialog for Tokens. Forge writes Atlas' standard statblock: true discovery marker while keeping its own statblock-forge Template backlink; it does not create an atlas-template or convert the note/Template to an Atlas format. The marker is maintained by the core Markdown note-panel lifecycle: existing Forge v2 notes are scanned when the workspace layout is ready, and newly changed/created Forge notes are registered automatically. This does not depend on the optional Ctrl-hover preview bridge. The Field key statblock is reserved for this Atlas discovery marker and cannot be used by a Template Field. A conflicting existing frontmatter value is preserved and reported rather than overwritten. In the Link Statblock dialog, Forge entries receive a FORGE marker and selecting one replaces Atlas' native preview with the original Forge renderer (including the selected Token's image when its asset is available). The marker comparison uses the same note frontmatter that Atlas reads for its list entries, rather than Forge's normalized runtime snapshot, so custom/normalized values do not cause otherwise valid rows to miss the badge. The marker is applied as soon as the list rows are present and does not wait for the preview renderer to finish. The dialog's existing Atlas selection and link actions remain unchanged. Forge v2 statblocks linked to Atlas Characters continue to appear in the Atlas DM Screen using Atlas' own compact statblock presentation. Forge deliberately does not replace those cards with its full-sheet renderer and does not add a second Forge-only feed. The DM Screen therefore keeps Atlas' native card sizing, initiative ordering, scope filters, navigation, menus, and resource controls. The complete Forge layout — including the Template theme, Fields, Metrics, Tables, and Counters — remains available in the Forge note and through the Forge/Atlas Ctrl-hover preview where Atlas exposes that interaction. Generic Tokens can still be linked to Forge statblocks and remain available to other Forge/Atlas linking and preview workflows; whether they appear in the DM Screen follows Atlas' own Character/feed eligibility. This keeps the DM Screen compact and avoids duplicating a full statblock that is already accessible through Ctrl-hover.
Forge's reserved Token art field can create an Atlas TokenAsset directly from a supported local image on a Forge v2 statblock, copying it into Atlas' shared atlas-vtt/assets folder and linking the new asset to the Forge note. This operation requires an initialized Atlas map so Forge can obtain Atlas' AssetService; changing the note's Token art later does not update an already registered TokenAsset. Existing Atlas Character and generic Token instances can be linked or unlinked from either the statblock's Statblock options menu above the sheet or the reserved Token art field actions: select one or more tokens in an Atlas scene, open the menu, and choose Link selected Atlas tokens or Unlink selected Atlas tokens. The statblock options menu remains available even when the Template has no Token art field. The Atlas DM Screen keeps its native compact Atlas statblock presentation; the full Forge sheet is available through Ctrl-hover where supported by Atlas. Generic Tokens can still be linked, while their appearance in the DM Screen follows Atlas' own feed eligibility. Asset persistence and cross-map synchronization remain Atlas-owned.
For Forge v2 notes linked to Atlas Characters, Forge keeps the matching Atlas Resources in step with the statblock Fields. Each map follows the active campaign's Resource rules when one applies, otherwise its collection's rules; legacy campaign and collection definitions inherit their built-in preset Resources. Changes update linked Characters in open GM maps through Atlas' own token store, allowing Atlas' PartySync to observe them. Current values are preserved and clamped, manually overridden maxima remain untouched, and newly added Resources start according to their drains or fills direction. Number/Rating formulas are resolved to their displayed value before they are used as a Resource maximum. An explicitly emptied Field removes that Resource; a missing or non-numeric Field does not erase it. Closed maps are synchronized when opened, and player views are not directly modified. Writes re-check the live GM view and originating map immediately before updating, so a pending sync or Rest cannot write after the view switches to player mode or another scene. Rest rules update Atlas-owned Resources through the original token stores, with compensating rollback when the linked note cannot be saved.
Resource display and viewer permissions remain entirely Atlas-owned. Atlas' player view filters Resources by visibleToPlayers; a token owner sees the Resources of their own token even when they are not public to other players, and the DM view follows Atlas' own rules. The scene-level hiddenResources option controls the GM canvas and is not a substitute for player visibility. Forge preserves these settings and does not draw a second set of Resource bars or add its own owner/player visibility filter.
Integration: Ctrl-hover previews, token links, Resources, Rest, in-map rolls, scene-independent rolls, statblock history, and roll repetition use the original Atlas 0.17.0/0.18.0 runtime baselines. Newer Atlas versions are attempted through capability checks rather than blocked by their version number. The Forge renderer is mounted only for Forge-native v2 token notes; all other previews remain native. No roll, history, or repeat operation calls the compatibility fork API.
.obsidian/plugins/statblock-forge/.main.js, manifest.json, and styles.css into that folder.A source ZIP is not a ready-to-install plugin package. Build it first using the steps below.
npm install
npm run build
The build creates main.js and the compiled styles.css. Copy those files, together with manifest.json, into the plugin folder described above.
npm test
npm run test:compendium
npm run test:layout
npm run typecheck
npm run audit:release
To build while watching source files:
npm run dev
The full user guide is available in both English and Brazilian Portuguese under docs/user-guide/. It covers installation, Templates, Fields, Canvas layout, appearance, formulas, Dice Fields, Counters, Rest, player permissions, and Atlas integration.
You can also download the documentation from Settings → Community plugins → Statblock Forge → Download documentation. Choose the language and destination folder in the settings first. Existing documentation files are preserved rather than overwritten.
| File or format | Purpose |
|---|---|
.forgetemplate |
Forge-owned Template JSON. Uses Forge Field IDs (inline, selection, counter, groups) and includes Forge-specific layout and appearance metadata. |
.atlastemplate |
Atlas-native Template format accepted as a read-only import source. Forge creates an editable .forgetemplate copy and leaves the original unchanged; Forge no longer exports Atlas Templates. |
Markdown (.md) |
Individual statblock note with its own Values and a link to its Template. |
.forgestyle |
Portable package of reusable custom themes and frames. |
.statblock-forge/layouts/ |
Legacy sidecar location. Existing valid sidecars can be read when importing .atlastemplate files; Forge does not create or update Atlas sidecars. |
Confirmed .forgetemplate replacements create versioned backups under <templateFolder>/.statblock-forge/backups/. Use Recover Forge template backup… in the Command Palette to inspect and restore a validated backup. Replacing an existing Template requires a second confirmation and creates a safety backup; concurrent edits are preserved. Older raw .forgetemplate.bak files are still recognized when their contents are valid.
Back up Templates and statblock notes before bulk edits, conversions, or manual changes to their JSON/frontmatter data.
For the tested compatibility boundaries, legacy migration behavior, sidecar rules, backup restoration, and backlink recovery, see TEMPLATE-COMPATIBILITY-MATRIX-0.5.0.md.
For Forge bugs, questions, or feature requests, open an issue in the project repository. Include:
For issues specifically related to Atlas itself, use the support channels of the original Atlas VTT project.
Statblock Forge is distributed under GNU AGPL-3.0-only. See LICENSE and THIRD_PARTY_NOTICES.md.
Forge v2 note discovery in Atlas is owned by the core StatblockNotePanels lifecycle. The optional Atlas preview bridge does not start a second migration scan. Concurrent registration requests for the same note are coalesced; only the first caller reports the note as newly registered, avoiding duplicate startup log messages.
Forge-linked statblocks use the native compact Atlas presentation in the GM/DM Screen. Forge does not replace those cards with a full Forge sheet or add a supplementary Forge feed. The complete Forge statblock remains available in the Forge note and through Ctrl-hover where Atlas supports it. This keeps the DM Screen focused on quick reference while preserving the full Forge layout for inspection.
The Forge runtime observes Atlas' existing .atlas-statblock-link dialog without replacing its React list or link callbacks. Forge rows are identified first by the exact note-path key used by Atlas' StatblockList React elements (including the escaped key form); matching the visible name/detail line remains a fallback for Atlas builds without readable Fiber metadata. When no Fiber key is available, Atlas' own selected preview-path header safely identifies the active row. The bridge adds a small FORGE badge before starting the asynchronous preview render, then mounts renderForgeStatblockPreview into the right-hand pane for a selected Forge note. Atlas-native preview elements are hidden only while a Forge entry is selected and restored when the selection changes or the dialog closes. Ambiguous text matches are not guessed. Preview sessions are aborted and disposed on selection changes and dialog teardown. This decorates Atlas internal UI selectors rather than a public extension API, so Atlas UI changes may require an adapter update.
The GM/DM Screen intentionally keeps Atlas' compact native statblock cards. Forge does not mount a second feed, hide Atlas cards, or render a full Forge sheet inside the DM Screen. Use Ctrl-hover where supported, or open the Forge statblock note, to inspect the complete Template layout. Token-to-statblock linking remains Atlas-owned and is independent of the DM Screen presentation.