Skip to content

Configuration

hp-1e edited this page Dec 2, 2026 · 1 revision

Configuration & Commands

Language: English | 中文

Common Configuration (config/quest_markdown-common.toml)

[documents]

Key Default Range / Values Description
docsDirectory "config/quest_markdown/docs" Relative or absolute path Root folder read by the server for .md documents and local image/GIF assets.
autoCreateDocsDirectory true true / false Automatically creates the docs folder and generates starter example.md on first server start.
enableLanguageFallback true true / false Resolves <docsDirectory>/<client_lang>/<path> first, falling back to en_us/ and then <docsDirectory>/.
maxDocumentBytes 262144 (256 KB) 1024 – 4194304 Maximum size per .md document allowed for reading and multiplayer sync.
maxAssetBytes 4194304 (4 MB) 16384 – 16777216 Maximum size per local image/GIF (including .drawio.png) synced from the server.
enableMathInVanillaDescriptions true true / false Enables $...$ and $$...$$ LaTeX math rendering directly inside vanilla FTB Quests descriptions.

[autoWindowWidth]

Key Default Range / Values Description
enableAutoWindowWidth true true / false Automatically calculates and applies a recommended quest min_width for quests referencing .md documents. Applied once per document signature so manual edits are never overwritten; recalculates if the referenced .md path changes.
autoWindowMinWidth 240 200 – 1200 Lower bound (pixels) for automatic quest window width.
autoWindowMaxWidth 460 240 – 1200 Upper bound (pixels) for automatic quest window width (always clamped to fit the player's current screen).

Client Configuration (config/quest_markdown-client.toml)

[rendering]

Key Default Range / Values Description
fontMode SMOOTH_SYSTEM SMOOTH_SYSTEM, MINECRAFT_UNIFORM, MINECRAFT_DEFAULT SMOOTH_SYSTEM loads native TrueType/TTC system fonts (e.g., Microsoft YaHei + Consolas on Windows, PingFang/Menlo on macOS, Noto Sans CJK/DejaVu on Linux); MINECRAFT_UNIFORM uses minecraft:uniform; MINECRAFT_DEFAULT uses vanilla pixel font.
customFontPath "" .ttf / .ttc / .otf path Optional custom body font path (absolute or relative to game directory). Leave blank for automatic detection.
customBoldFontPath "" .ttf / .ttc / .otf path Optional custom bold/heading font path. Leave blank for automatic detection.
customMonoFontPath "" .ttf / .ttc / .otf path Optional custom monospace code font path. Leave blank for automatic detection.
smoothFontSize 10.5 7.0 – 18.0 Base font size in GUI pixels for smooth TrueType rendering.
smoothFontOversample 4.0 2.0 – 6.0 Oversampling factor for sharp TrueType glyph edges (4.0 recommended).

Commands

Command Permission Effect
/quest_markdown reload Gamemaster / OP level 2 Ensures the docs directory exists and broadcasts a reload packet to all connected clients, clearing cached documents, images, GIFs, and fonts and refreshing any open quest panel immediately.

Clone this wiki locally