Table of contents
- Tags Reference
- Usage Rules
- Inline And Flow Tags
- Block Tags
- Tag Details
- <a>
- <br>
- <wbr>
- <kbd>, <sub>, And <sup>
- <details>
- <ContentTabs>
- <FileTree>
- Runtime Blockquotes
- <Color>
- <Tooltip>
- <SoundLink> And Sound Action Links
- <Amount>
- <PlayerName>
- <KeyBind>
- MDX Comments
- <ItemImage>
- <ItemLink>
- <FluidImage>, <FluidLink>, and <FluidIcon>
- Quest content (BetterQuesting)
- Research and custom content
- Navigation
- <ResearchLink>
- <ResearchCard>
- <ResearchIcon>
- <BindingLink>
- <BindingCard>
- <BindingIcon>
- Export and preview
- <CommandLink>
- <Row> And <Column>
- <FootnoteList>
- <ItemGrid>
- <BlockImage>
- <FloatingImage>
- <SubPages>, <Category>, And <Special>
- <Structure>
- <Mermaid>
- HTML <table>
- <Latex>
- Scene Runtime Tags
- Charts
- Function Graphs
Tags Reference
This page describes the built-in tags available to guide authors.
Usage Rules
- Tags can appear either in block context or inline context depending on the compiler.
- MDX comments using
{/* ... */}are supported in page content and are ignored by the runtime parser. - MDX attribute names use camelCase, such as
showTooltip,showDescandfromNbt. - Invalid tags or invalid attributes render guide errors inline instead of silently failing.
- Large feature tags such as recipes and 3D scenes are documented in their own pages:
Inline And Flow Tags
| Tag | Purpose | Key attributes |
|---|---|---|
<a> |
internal/external link and optional anchor name | href, title, name |
<br> |
line break | clear="none|left|right|all" |
<wbr> |
optional line-break point inside a word | none |
<kbd> |
keyboard-style inline emphasis | none |
<sub> |
smaller inline subscript-style text | none |
<sup> |
smaller inline superscript-style text | none |
<Color> |
colored inline text | id or color |
<Amount> |
format a numeric quantity | value, unit, format, decimals |
<Spoiler> |
hidden inline text revealed on hover | none |
<Tooltip> |
rich hover tooltip with markdown/tag children | label |
<SoundLink> |
clickable rich-text sound trigger | sound or src, volume, pitch, cooldown |
<mark> |
inline highlighted text; equivalent to ==text== with optional color control |
color |
<PlayerName> |
inserts current player username | none |
<KeyBind> |
inserts keybinding display name | id or action |
<ItemImage> |
inline item icon | id, ore, nbt, scale, noTooltip, showTooltip, showIcon, label, format, yOffset, labelYOffset |
<ItemLink> |
item tooltip + optional navigation link | id or ore, linksTo, showTooltip, noTooltip, showIcon |
<FluidImage> / <FluidLink> |
native fluid icon and page navigation | id, amount, nbt, scale, showTooltip, noTooltip, showIcon, label, linksTo |
<ResearchLink> / <BindingLink> |
Research or custom content links | id, type (generic tags), text, target, showTooltip |
<ResearchIcon> / <BindingIcon> |
Research or custom content icons; also usable in block context | id, type (generic tags), scale, showTooltip |
<CommandLink> |
clickable chat command link | command, title, close |
<Latex> |
LaTeX math formula; inline in flow context, centered display block in block context | formula, color, scale, sourceScale, tooltip, showTooltip |
<QuestLink> |
BetterQuesting quest link with state-aware styling (compat tag, only registered when BetterQuesting is loaded) | id, text, showTooltip |
Inline markdown also supports action links for sound playback:
&[Start machine](sound:guidenh:machine.start)
&[Play file-backed sound](sound-src:guidenh:sounds/machine/start.ogg?volume=0.8&pitch=1.1)
Block Tags
| Tag | Purpose | Key attributes |
|---|---|---|
<div> |
pass-through block wrapper | none |
<ContentTabs> |
groups alternative rich content under independent tabs | title, color, background, icon, iconPng, iconItem, iconFluid, default, defaultIndex |
<Tab> |
one content panel inside <ContentTabs> |
title |
<details> |
collapsible runtime block | open, width, height, wrap, align |
<FileTree> |
directory-style outline with connector lines | indent, gap |
<Row> |
horizontal flex layout | gap, alignItems, fullWidth, width |
<Column> |
vertical flex layout | gap, alignItems, fullWidth, width |
<FootnoteList> |
width-constrained footnote container used by runtime markdown footnotes | width |
<ItemGrid> |
compact grid of item and fluid icons | mix <ItemIcon id="..."/>, <ItemIcon ore="..."/>, and <FluidIcon id="..."/> |
<BlockImage> |
non-interactive 3D single-block preview | id, ore, meta, nbt, scale, width, height, perspective, wrap, align |
<FloatingImage> |
cropped image block with float or true inline placement | src, x, y, width / w, height / h, scaleX, scaleY, displayWidth, displayHeight, wrap, align, title |
<SubPages> |
navigation child listing | id, alphabetical |
<Category> |
list pages from a category | name, rows |
<Special> |
list built-in MediaWiki special pages | name, rows |
<Structure> |
2.5D isometric block layout view | width, height |
<Mermaid> |
runtime Mermaid graph import/inline | src, width, height |
<CsvTable> |
runtime CSV file import table | src, header, widths |
<ColumnChart> |
clustered column chart | categories, barWidthRatio, xAxis*, yAxis*, legend, labelPosition |
<BarChart> |
horizontal bar chart | same as <ColumnChart> |
<LineChart> |
line chart with categorical or numeric X | categories, numericX, showPoints, xAxis*, yAxis* |
<PieChart> |
pie chart | startAngle, clockwise, legend, labelPosition |
<ScatterChart> |
XY scatter chart | xAxis*, yAxis*, legend, labelPosition |
<FunctionGraph> |
Desmos-style multi-curve function graph | width, height, xRange / yRange, quadrants, showGrid, showAxes |
<Function> |
single-curve shorthand for <FunctionGraph> |
expr, plus all <FunctionGraph> panel attributes |
<Recipe>, <RecipeFor>, <RecipesFor> |
recipe renderers | see Recipes |
<GameScene>, <Scene> |
3D guide scene | see GameScene |
<ResearchCard> / <BindingCard> |
Research or custom content summary cards | id, type (generic tags), title, target, showDesc, showIcon, showParents |
<QuestCard> |
block-level BetterQuesting quest summary card (compat tag, only registered when BetterQuesting is loaded) | id, title, showDesc, showTooltip |
<ImportStructureLib> is a <GameScene> child tag. It accepts controller, piece, facing,
rotation, flip, tier, channel, channelName, value, and locked attributes, and also supports StructureLib default child tags:
<Tier>, <Channel>, <Facing>, <Rotation>, <Flip>, <Orientation>,
<GregTechActiveController>, and <GregTechPlaceHatches>.
Tag Details
<a>
Acts like an HTML-style anchor tag:
<a href="subpage.md" title="Go to subpage">Open Subpage</a>
<a href="https://example.com">External Link</a>
<a name="details" />
hrefcan be relative, rooted, explicitmodid:path, or HTTP/HTTPStitlebecomes the tooltipnameinserts a page anchor target
<br>
GuideNH also supports an MDX break tag with float clearing:
Text before.<br clear="all" />Text after.
Accepted clear values:
noneleftrightall
<wbr>
Marks an optional line-break point inside a word, like the HTML <wbr> element. It renders nothing and takes no width: the line only breaks there when the whole word does not fit, such as a long name or number in a narrow table cell at a low resolution.
| Block | Rate |
| --- | --- |
| Cobble<wbr>stone/s | 11,<wbr>520 |
<wbr> and <wbr /> are both accepted and the tag takes no attributes. Unlike a space, it never shows up as a gap when the word fits. Site Export and the Web Editor output a native <wbr>.
<kbd>, <sub>, And <sup>
GuideNH runtime supports a focused subset of lowercase documentation tags for inline use:
Press <kbd>Shift</kbd> + <sub>1</sub>
Water is H<sub>2</sub>O and x<sup>2</sup> is a square.
<details>
Creates a collapsible runtime block with a summary row. The <summary> line supports normal
inline markdown/tag content, and the body can hold ordinary text plus arbitrary block tags such as
<BlockImage>, <FloatingImage>, <GameScene>, tables, charts, and layout containers.
When height is set, only the body scrolls; the summary row and outer frame stay fixed.
Blank lines between <summary>, the body, and </details> are optional. Use the plural tag <details>; <detail> is not supported. Both the summary and body support inline Markdown, <ItemLink>, <ItemImage>, and other inline tags. Consecutive <details> blocks remain independent.
<details open width="220" height="140" wrap="square" align="right">
<summary>More <ItemImage id="minecraft:diamond" /></summary>
Hidden-by-default body text with a [normal page link](./index.md).
<BlockImage id="minecraft:diamond_block" align="center" scale={2} />
</details>
Attributes:
open— starts expanded when presentwidth— preferred outer width in pixelsheight— preferred body viewport height in pixels; overflow becomes scrollable in-game and in site exportwrap— supports the usual block embedding modes such assquare,tight, andthroughalign—left,center, orright; when combined with a floating wrap mode, the whole details block floats
<ContentTabs>
Groups alternative rich content under independent tabs. Only direct <Tab> children are valid. The container itself can also render a quote-style heading row above the tabs, matching the visual language of markdown callouts.
<ContentTabs
title="Implementation Options"
icon="</>"
color="#4f8cff"
background="#20252d"
default="Java"
>
<Tab title="Java">
```java
System.out.println("Hello GuideNH");
```
</Tab>
<Tab title="Scene">
<BlockImage id="minecraft:crafting_table" />
</Tab>
</ContentTabs>
defaultmatches the first tab whosetitlematches exactlydefaultIndexis zero-based and wins overdefaultwhen both are presentcoloroptionally overrides the left accent line and selected-tab highlight with#RRGGBBor#AARRGGBBbackgroundoptionally overrides the tab container background with#RRGGBB,#AARRGGBB, ortransparent; the default keeps the normal gray callout backgroundtitleadds an optional plain-text heading above the tab stripicon,iconPng/iconPng, andiconItem/iconItemuse the same heading icon semantics as markdown quote-style callouts- invalid children or invalid defaults render visible author-facing errors
<FileTree>
Renders a directory-style outline with real connector lines drawn from the prefix glyphs on each row. Both Unicode box-drawing (│ ├ └ ─) and ASCII (| +-- \-- / four spaces) forms are accepted and may be mixed. Payload text supports the usual inline markdown (links, bold, code, …), and those links are clickable both in-game and in the built-in site export. The same content can also be written as a fenced ```tree or ```filetree block.
Narrow layouts reduce the indentation to leave room for text. Long paths prefer breaks after /, \, _, and -; unbroken names can wrap between characters. Continuation lines align with the name, while icons and branch connectors stay aligned with the first line.
<FileTree indent="14" gap="0">
project
├── src
│ ├── **main**
│ │ └── [App.java](./index.md)
│ └── *test*
└── `README.md`
</FileTree>
Optional per-row icons are introduced by a leading directive on the payload:
{:icon=Text}— short text label (single or double quotes optional){:iconPng=path/to/file.png}— PNG asset resolved against the current page{:iconItem=modid:item_id[:meta][:{snbt}]}— Minecraft item icon. The optionalmetasegment is a damage value (or*for a wildcard); an optional trailing:{snbt}block carries SNBT to attach to the stack.
```filetree
world
|-- {:iconItem=minecraft:grass} grass biome
| \-- {:icon=Tree} oak forest
\-- {:iconPng=test1.png} sample asset
```
Attributes:
indent— pixels per depth level (default14)gap— extra pixels between rows (default0)
Runtime Blockquotes
Normal markdown blockquotes render at runtime with a left accent line. GitHub alert syntax is supported:
> [!NOTE]
> Alert body
GuideNH also supports a runtime-only custom directive on the first quoted line:
> {: title="Custom Quote" color="#638ef1" icon="i" }
> Body text
Supported directive keys:
titlecoloriconfor plain text symbolsiconItemfor anItemStackidiconPngfor a guide asset png path
Only one icon source should be provided.
<Color>
Use either a symbolic color id or an explicit hex value:
<Color id="RED">Symbolic red</Color>
<Color color="#FF00D2FC">ARGB or RGB color</Color>
### `<Spoiler>`
Use `<Spoiler>` for inline hidden text. The content stays rich-text aware, so nested markdown and runtime inline tags
such as `<Color>` still render correctly after reveal.
```mdx
<Spoiler>Hidden **bold** text with <Color color="#55ccff">tint</Color>.</Spoiler>
<Spoiler>[Anchor Link](#headings) still behaves like a normal hoverable link when revealed.</Spoiler>
```
Rules:
idandcolorare mutually exclusive in practice; provide onecoloraccepts#RRGGBB,#AARRGGBB, ortransparent
<Tooltip>
Creates underlined text that opens a rich content tooltip on hover.
<Tooltip label="Hover me">
**Bold text**
<ItemImage id="minecraft:diamond" />
</Tooltip>
If label is omitted, the trigger text defaults to tooltip.
<SoundLink> And Sound Action Links
<SoundLink> renders rich inline content that plays a sound when clicked. It does not navigate,
and its custom click sound replaces the normal guide click sound for that click.
<SoundLink sound="guidenh:machine.start" volume="0.8" pitch="1.0">
**Start machine**
</SoundLink>
&[Start machine](sound:guidenh:machine.start)
&[Use a sound file](sound-src:guidenh:sounds/machine/start.ogg)
Sound attributes:
soundis a sound event id such asmodid:event.namesrcpoints at an.oggfile;modid:sounds/machine/start.oggbecomesmodid:machine.startvolumedefaults to1.0pitchdefaults to1.0cooldownis milliseconds between repeated plays, default250radiusandminVolumecontrol screen-space attenuation when used in scenes
<Amount>
<Amount> formats a numeric amount. Omitting unit (or using unit="none") displays only the number. unit="item" is also suffix-free. unit="fluid" follows the GTNHLib fluid preference and displays mB or L. The optional format is default, plain, compact, or scientific; decimals limits fractional digits. Keep rate suffixes such as /s outside the tag.
| Attribute | Meaning |
|---|---|
value |
required finite decimal value |
unit |
optional none, item, or fluid; defaults to none |
format |
optional number format; defaults to default |
decimals |
optional non-negative maximum fractional digits |
Example:
<Amount value="250" />
<Amount value="250" unit="fluid" />/s
<Amount value="1200000" format="compact" /> items
<PlayerName>
Inserts the current Minecraft session username:
Welcome, <PlayerName />!
<KeyBind>
Looks up a keybinding by id or action and renders the player's current bound key name.
Accepted ids:
- the binding description id, such as
key.jumporkey.guidenh.open_guide - the legacy
category.descriptionform, such askey.categories.movement.key.jump
Example:
Press <KeyBind id="key.jump" /> to jump.
Attack with <KeyBind action="key.attack" />.
MDX Comments
GuideNH ignores MDX comments in page content:
Visible text. {/* hidden inline comment */}
{/*
multiline comment
*/}
More visible text.
GuideNH also ignores explicit <Comment> tags:
Visible text. <Comment>This does not render.</Comment> Still visible.
<ItemImage>
Shows an inline item icon.
| Attribute | Meaning |
|---|---|
ore |
optional ore-dictionary selector; provide id as well |
id |
required item reference, including when ore is used |
nbt |
optional SNBT item data; merged onto any inline SNBT in id |
scale |
float, default 1 |
noTooltip |
truthy string or empty attribute suppresses tooltip (legacy; prefer showTooltip) |
showTooltip |
boolean, default true; false suppresses the hover tooltip |
showIcon |
boolean, default true; false hides the item icon graphic |
label |
left or right — shows the item display name as text on the specified side of the icon; omit for no label |
format |
format pattern for the label text; supports Markdown-style wrappers (**bold**, *italic*, ~~strike~~, __underline__, ^^wavy^^, ::dotted::) with optional %s placeholder for the item name; default (no attribute) renders the name in italic |
yOffset |
inline vertical offset at scale 1; default 0; positive moves down |
labelYOffset |
label-only vertical offset at scale 1; default 0 |
Notes:
oretakes precedence overidwhen both are provided- if GregTech is installed, the selected ore match is passed through
GTOreDictUnificator.setStack(...) labelrequires at least one ofshowIconorlabelto produce visible output; setting bothshowIcon="false"and omittinglabelrenders nothingformatonly applies whenlabelis set; ifformathas no%s, the literal format text is used as the label- inline SNBT in
idremains supported; when both forms are present, the standalonenbtattribute is merged last and overrides conflicting keys
Example:
<ItemImage id="minecraft:diamond" scale="2" />
<ItemImage id="minecraft:iron_ingot" ore="ingotIron" />
<ItemImage id="minecraft:diamond_sword" noTooltip="true" />
<ItemImage id="minecraft:diamond" label="right" />
<ItemImage id="minecraft:iron_ingot" label="left" format="**%s**" />
<ItemImage id="minecraft:book" showIcon="false" label="right" format="~~%s~~" />
<ItemImage id="minecraft:emerald" label="right" showTooltip="false" />
<ItemImage id="minecraft:diamond" nbt='{display:{Name:"Custom Diamond"}}' />
<ItemImage
id="minecraft:chest"
scale="2"
nbt='{display:{Name:"Storage Chest"}}'
/>
<ItemLink>
Creates a text link using the item's display name and item tooltip. If item_ids points to a guide page, clicking navigates to it. ore can be used to resolve the display stack from the first ore dictionary match instead of a fixed registry id.
| Attribute | Default | Meaning |
|---|---|---|
id |
— | item registry id, e.g. minecraft:compass or minecraft:wool:1 |
ore |
— | ore-dictionary name; uses the first matching item stack |
linksTo |
(auto) | overrides the link target; accepts a page id with optional #anchor, e.g. ./crafting.md#usage or #usage; when omitted the target is resolved from item_ids / ore_ids index |
showTooltip |
true |
set to false to suppress the hover tooltip; noTooltip is a legacy alias |
showIcon |
(none) | left or right (or any truthy value → right) — renders the item icon beside the link text; omit to show text only |
scale |
1.0 |
display scale for the optional item icon; has no effect when showIcon is omitted |
Examples:
<ItemLink id="appliedenergistics2:tile.BlockSkyChest" />
<ItemLink id="appliedenergistics2:tile.BlockSkyChest" showIcon="left" />
<ItemLink id="minecraft:diamond" showIcon="left" scale="2" />
<ItemLink id="minecraft:diamond" showIcon="right" showTooltip="false" />
<ItemLink ore="stickWood" />
<ItemLink id="minecraft:iron_ore" linksTo="./crafting.md#smelting" />
<ItemLink id="minecraft:compass" linksTo="#usage" />
<FluidImage>, <FluidLink>, and <FluidIcon>
Native fluid icons resolve the exact Forge fluid registry name, such as water, steam, or molten.iron. Persist names, never numeric fluid IDs or NEI display-item metadata. Rendering uses the Forge fluid texture and tint and does not require NEI.
Default hover tooltips show the fluid name, temperature in kelvin and gas/liquid state. An explicit amount, including zero, adds the quantity in the selected L/mB unit; an omitted amount adds no quantity. Advanced tooltips also show the registry name. When GregTech is loaded, material information such as chemical formulas follows its tooltip settings. Native tooltips, connected runtime previews and ExportSite share these details; disconnected Web previews only know the supplied name and amount. NEI is not required.
ExportSite displays item counts and fluid amounts as text overlays using its bundled Pixeloid Mono font. Item durability bars remain part of the icon image.
| Attribute | Contract |
|---|---|
id |
Required complete fluid registry name; no implicit namespace or item metadata |
amount |
Optional integer amount; display follows the selected fluid unit |
nbt |
Optional SNBT describing a private fluid stack tag |
showTooltip, noTooltip |
Same visibility precedence as item icons; hiding a tooltip does not disable G navigation |
scale, showIcon, label, format, yOffset, labelYOffset |
FluidImage shares ItemImage presentation options; scale must be finite and positive |
showIcon, showText, linksTo |
FluidLink shares ItemLink label, icon-side, and explicit page/anchor behavior |
FluidIcon is an ItemGrid child and accepts only id, amount, nbt, showTooltip, and noTooltip. A single ItemGrid may mix ItemIcon and FluidIcon children in source order. There is no separate FluidGrid. ore and item metadata are not fluid selectors.
<FluidImage id="water" amount={1000} scale="2" label="right" />
<FluidLink id="steam" showIcon="left">Steam</FluidLink>
<ItemGrid>
<ItemIcon id="minecraft:bucket" />
<FluidIcon id="water" amount={1000} />
<FluidIcon id="steam" />
</ItemGrid>
Bind pages with fluid_id / fluid_ids. Hold the remappable open-guide key (G by default) over native fluid icons or supported container/display representations. One match opens directly; multiple matches show a chooser with fluid pages before container pages. Amount and NBT affect display, while bindings match the registry name. Empty containers retain ordinary item navigation. Unrecognized fluid GUIs require a registered hover provider.
Use navigation.icon_fluid / icon_fluids for single/cycling page icons, and iconFluid in ContentTabs, FileTree directives, quote directives, chart Series / LineSeries / Slice. Fluid icon sources must not be combined with item, PNG, or text icon sources. Six Recipe/Usage tags accept fluid, inputFluid, and outputFluid; InputAnnotation accepts fluid, amount, and nbt. See Recipes, Guide Page Format, and Annotations for the remaining contracts.
Quest content (BetterQuesting)
<QuestLink> and <QuestCard> are only registered when the BetterQuesting mod is loaded. They are documented in detail on the Mod Compatibility page; the summary below covers the most common usage.
<QuestLink>
Left click opens the quest in BetterQuesting. Right click opens its bound guide pages; when no guide is bound, right click also opens BetterQuesting. Multiple pages open the same destination selector used for items, and distinct page anchors remain separate destinations.
| Attribute | Meaning |
|---|---|
id |
required BetterQuesting quest id; accepts canonical UUID strings and compact Base64 ids |
text |
optional override for the displayed text |
showTooltip |
optional boolean (default true); set to false to suppress the quest-description tooltip |
Visibility behavior is decided per player when the page mounts:
- visible / completed quests render as a clickable link (completed quests are tinted green and append a
✓mark) - locked but non-hidden quests still render as clickable quest links so they can open the BetterQuesting quest screen or the indexed guide page
- hidden / secret quests render as a darker italic placeholder using
guidenh.binding.state.hidden - unknown quest ids render as a red placeholder using
guidenh.binding.state.missing
Example:
See <QuestLink id="01234567-89ab-cdef-0123-456789abcdef" /> for the next step.
<QuestLink id="01234567-89ab-cdef-0123-456789abcdef" text="Stage 2 quest" />
<QuestLink id="01234567-89ab-cdef-0123-456789abcdef" showTooltip="false" />
See <QuestLink id="AAAAAAAAAAAAAAAAAAAMug==" text="Compact quest id example" /> after that.
<QuestCard>
Block-level summary card for a BetterQuesting quest. Renders the quest title with the same state-aware styling as <QuestLink>, plus the quest description as a body paragraph when the quest is visible to the player.
| Attribute | Meaning |
|---|---|
id |
required BetterQuesting quest id; accepts canonical UUID strings and compact Base64 ids |
title |
optional card-title override |
showDesc |
optional boolean (default true); set to false to suppress the description body |
showTooltip |
optional boolean (default true); set to false to suppress the quest-description tooltip on the clickable title |
The accent color of the card border follows the quest state: green for completed, gray for locked / hidden, red for missing, and the standard link color for visible quests. The title remains clickable for visible, completed, and locked-but-non-hidden quests.
Example:
<QuestCard id="01234567-89ab-cdef-0123-456789abcdef" />
<QuestCard id="01234567-89ab-cdef-0123-456789abcdef" showDesc="false" />
<QuestCard id="01234567-89ab-cdef-0123-456789abcdef" showTooltip="false" />
<QuestCard id="AAAAAAAAAAAAAAAAAAAMug==" />
Research and custom content
Research tags select Thaumcraft. Generic tags use type to select the content system. To bind a guide page, see Frontmatter.
Navigation
These rules apply to ResearchLink/Card and BindingLink/Card links or card title text.
target |
Left click | Right click |
|---|---|---|
auto |
Bound guides first, native UI as fallback | Bound guides, native UI as fallback |
native |
Native UI | Bound guides, native UI as fallback |
guide |
Guides only; report when none exist | Bound guides, native UI as fallback |
Native navigation opens the research tree at the selected icon, whether the research is completed or incomplete. It does not unlock research. Hidden research exposes no title, description or icon. Multiple guide destinations open a selector.
<ResearchLink>
Inline content link.
| Attribute | Meaning |
|---|---|
id |
Required original content ID; research IDs preserve case |
text / title |
Optional link text override |
target |
auto, native or guide; default auto, as above |
showTooltip |
Show tooltip; default true |
<ResearchLink id="INFUSION" text="Read the research" target="native" />
<ResearchCard>
Block content summary. Left-click the title to navigate; right-click the title to open bound guides.
| Attribute | Meaning |
|---|---|
id |
Required original content ID; research IDs preserve case |
title |
Optional title override |
showDesc |
Show the content description; default true |
showIcon |
Show the icon; default true |
showParents |
Show visible prerequisites; default false |
target |
auto, native or guide; default native, as above |
showTooltip |
Show tooltip; default true |
<ResearchCard id="INFUSION" title="Infusion research" showParents={true} />
<ResearchIcon>
Content icon and tooltip. Hold the open-guide key while hovering to open guides; clicking does not open native content.
| Attribute | Meaning |
|---|---|
id |
Required original content ID; research IDs preserve case |
scale |
Finite positive size multiplier; default 1 |
showTooltip |
Show tooltip; default true |
<ResearchIcon id="INFUSION" scale={1.5} />
<BindingLink>
Inline content link.
| Attribute | Meaning |
|---|---|
type |
Required registered content type, e.g. thaumcraft or betterquesting |
id |
Required original content ID; research IDs preserve case |
text / title |
Optional link text override |
target |
auto, native or guide; default auto, as above |
showTooltip |
Show tooltip; default true |
<BindingLink type="thaumcraft" id="INFUSION" text="Read the research" target="native" />
<BindingCard>
Block content summary. Left-click the title to navigate; right-click the title to open bound guides.
| Attribute | Meaning |
|---|---|
type |
Required registered content type, e.g. thaumcraft or betterquesting |
id |
Required original content ID; research IDs preserve case |
title |
Optional title override |
showDesc |
Show the content description; default true |
showIcon |
Show the icon; default true |
showParents |
Show visible prerequisites; default false |
target |
auto, native or guide; default native, as above |
showTooltip |
Show tooltip; default true |
<BindingCard type="thaumcraft" id="INFUSION" title="Infusion research" showParents={true} />
<BindingIcon>
Content icon and tooltip. Hold the open-guide key while hovering to open guides; clicking does not open native content.
| Attribute | Meaning |
|---|---|
type |
Required registered content type, e.g. thaumcraft or betterquesting |
id |
Required original content ID; research IDs preserve case |
scale |
Finite positive size multiplier; default 1 |
showTooltip |
Show tooltip; default true |
<BindingIcon type="thaumcraft" id="INFUSION" scale={1.5} />
Export and preview
Website exports and browser previews do not read the exporting player's progress. Bound guides become links or a destination list; native UI actions show an in-game explanation. Missing content mods produce unavailable placeholders for Research and Binding tags. Quest tags are registered only with BetterQuesting loaded.
<CommandLink>
Sends a chat command when clicked.
| Attribute | Meaning |
|---|---|
command |
required, must start with / |
title |
optional tooltip heading |
close |
parsed boolean attribute; currently parsed but not used to close the guide |
Example:
<CommandLink command="/tp @p 0 90 0" title="Teleport">Teleport!</CommandLink>
<Row> And <Column>
Flex-style containers for block content.
| Attribute | Meaning |
|---|---|
gap |
integer gap between children, default 5 |
alignItems |
start, center, end |
fullWidth |
boolean expression, default false |
width |
integer preferred width; useful for constraining list line width |
Example:
<Row gap="8" alignItems="center">
<ItemImage id="minecraft:iron_ingot" />
<ItemImage id="minecraft:gold_ingot" />
</Row>
To constrain the width of normal markdown lists, wrap them in a container:
<Column width="220">
- narrow list item
- another narrow item
</Column>
<FootnoteList>
GuideNH uses this block tag internally when runtime markdown footnotes are expanded. It can also be written manually if needed.
<FootnoteList width="220">
1. First footnote
2. Second footnote
</FootnoteList>
<ItemGrid>
Renders a compact icon grid. ItemIcon and FluidIcon children appear in source order. Item children select id or ore; fluid children select a registry-name id with optional amount and NBT.
<ItemGrid>
<ItemIcon id="minecraft:iron_ingot" />
<ItemIcon ore="ingotGold" />
<ItemIcon id="minecraft:gold_ingot" />
<ItemIcon id="minecraft:redstone" />
</ItemGrid>
<BlockImage>
Renders a non-interactive 3D single-block scene. The preview has no scene background, no scene
buttons, no layer controls, and no annotation features, but hovering the block still shows the
selection outline and tooltip. ore must resolve to a block item stack.
| Attribute | Meaning |
|---|---|
id |
block id; supports the normal modid:block[:meta][:{snbt}] spelling |
ore |
ore dictionary lookup; the first matching block item wins |
scale |
camera zoom multiplier, default 4 |
meta |
block metadata; overrides metadata in id |
width / height |
preview viewport in pixels; default 128 for each dimension |
wrap |
text wrapping mode; default inline |
align |
horizontal alignment: left (default), center, or right |
float |
legacy flow float support: left or right |
perspective |
isometric-north-east (default), isometric-north-west, or up |
nbt |
optional SNBT tile-entity data merged onto any inline SNBT from id |
Notes:
- inline SNBT inside
idis still accepted for compatibility, butnbt="..."is the preferred authoring form - when both inline SNBT and
nbtare present, thenbtattribute is merged last and therefore overrides conflicting keys - GuideNH 1.7.10 does not support modern block-state property syntax here, so GuideME-style
p:<state>attributes are intentionally not supported
<BlockImage id="minecraft:crafting_table" scale="3" />
<BlockImage ore="logWood" scale="3" perspective="isometric-north-west" />
<BlockImage
id="minecraft:chest"
scale="2"
nbt='{id:"Chest",Items:[{Slot:0b,id:"minecraft:diamond",Count:1b,Damage:0s}]}'
/>
<FloatingImage>
See Images And Assets for the full behavior.
<FloatingImage src="test1.png" displayWidth="128" wrap="inline" />
<FloatingImage src="test1.png" x="8" y="8" width="16" height="16" displayWidth="128" wrap="inline" />
<SubPages>, <Category>, And <Special>
See Navigation for full navigation behavior.
<Structure>
See Examples and GameScene when deciding whether to use a static structure preview or a full 3D scene.
<Mermaid>
Used for runtime Mermaid content. Current runtime support is focused on mindmap, either inline or through a page-relative src import:
<Mermaid src="./markdown-mindmap.mmd" />
<Mermaid width="340" height="240">
mindmap
root["**GuideNH** [Index](./index.md)"]
runtime["Runtime blocks"]
<NodeContent id="runtime">
Runtime nodes can embed normal blocks.
<ItemImage id="minecraft:diamond" />
</NodeContent>
</Mermaid>
```
- `width` and `height` constrain the runtime viewport box
- inside the viewport, drag pans and the mouse wheel zooms
- quoted Mermaid labels may use rich inline markdown such as `**bold**` and page links
- `<NodeContent id="...">...</NodeContent>` can be added as children of `<Mermaid>` to replace a node body with arbitrary runtime blocks
### `<CsvTable>`
Used to parse a CSV file into a runtime table:
````md
<CsvTable src="./markdown-table.csv" />
```
`src` resolves relative to the current page, the same way scene imports and normal asset links do.
Optional attributes:
- `header`
Defaults to `true`; set `header={false}` to keep the first row unbolded
- `widths`
Comma-separated integer width hints such as `widths="120,80"`
Examples:
````md
<CsvTable src="./markdown-table.csv" widths="120,80" />
<CsvTable src="./markdown-table.csv" header={false} />
```
The related fenced runtime CSV form also supports matching metadata:
````md
```csv widths="120,80" header=false
name,value
iron,42
gold,17
```
HTML <table>
The native HTML table tags are supported in GuideNH pages. Use <caption>, <colgroup> / <col>, and <thead> / <tbody> / <tfoot> to describe the table structure. Cells support colspan, rowspan, align, and valign; header cells additionally support scope, abbr, and headers. A table align value with commas (for example left,center,right) is retained as a per-column alignment extension; a single left, center, or right value positions the complete table. width, border, cellpadding, and cellspacing are supported in the game renderer and site export. The kramdown metadata line {: widths="130,70,150" } remains supported for Markdown tables.
<table width="100%" cellpadding="2">
<caption>Fuel rates</caption>
<colgroup><col width="40%" /><col width="60%" /></colgroup>
<thead><tr><th scope="col">Fuel</th><th scope="col">Rate</th></tr></thead>
<tbody><tr><td>Coal</td><td align="right">42</td></tr></tbody>
</table>
<Latex>
Renders a LaTeX math formula using jlatexmath. When used inline (inside a paragraph or text flow), it renders as a scaled glyph that expands the line height to fit the formula. When written as its own paragraph (block context), it renders centered as a display-mode formula.
| Attribute | Type | Default | Description |
|---|---|---|---|
formula |
string | (required) | LaTeX source string |
color |
#RRGGBB or #AARRGGBB |
#FFFFFF |
Glyph fill colour |
scale |
float | 1.0 |
Display size multiplier applied on top of the automatic line-height scaling |
sourceScale |
float | 100.0 |
jlatexmath layout size used as the measuring reference. In game the formula is always rasterized at the actual screen resolution; in site export it sets the PNG resolution |
tooltip |
string | (none) | Plain tooltip text shown on hover |
showTooltip |
boolean | false |
Show the raw LaTeX source as a tooltip on hover |
valign |
baseline / top / center / bottom |
baseline |
Inline-only. Vertical alignment within the text line: baseline (default) aligns the formula's math baseline with the text baseline; top aligns the formula top with the line top; center centers it on the text; bottom aligns the formula bottom with the text bottom |
offsetX |
int | 0 |
Horizontal pixel offset applied after alignment (positive = right) |
offsetY |
int | 0 |
Vertical pixel offset applied after alignment (positive = down) |
Examples:
Inline: <Latex formula="E=mc^2" />
Fraction that expands line height: <Latex formula="\frac{a+b}{c-d}" />
Gold colour: <Latex formula="\sqrt{x^2+y^2}" color="#FFD700" />
Scaled up: <Latex formula="\pi" scale="1.5" />
With hover tooltip: <Latex formula="\sum_{n=1}^{\infty} \frac{1}{n^2}" showTooltip={true} />
Plain custom tooltip: <Latex formula="E=mc^2" tooltip="Energy equals mass times the speed of light squared." />
Rich tooltip:
<Latex formula="\Delta G = \Delta H - T\Delta S">
**Gibbs free energy**
- <Latex formula="\Delta H" />: enthalpy change
- <Latex formula="T\Delta S" />: entropy term
</Latex>
Bottom-aligned (formula bottom matches text bottom): <Latex formula="\frac{a}{b}" valign="bottom" />
Explicit baseline alignment (same as default): <Latex formula="E=mc^2" valign="baseline" />
Top-aligned with an upward nudge: <Latex formula="x^2" valign="top" offsetY="-1" />
<Latex formula="\int_0^\infty e^{-x^2}\,dx = \frac{\sqrt{\pi}}{2}" />
<Latex formula="\begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} ax+by \\ cx+dy \end{pmatrix}" />
$$formula$$ shorthand
As a convenience you can write $$formula$$ directly in Markdown without using the <Latex> tag.
All rendering parameters use their defaults (white colour, scale 1.0, no tooltip, baseline-aligned).
- Inline:
$$formula$$embedded inside a paragraph renders as an inline formula. - Display: a paragraph whose entire content is
$$formula$$(with optional surrounding whitespace) renders as a centred display-mode block.
Inline shorthand: $$E=mc^2$$ and $$a^2+b^2=c^2$$
Inline fraction: $$\frac{a+b}{c-d}$$
$$\int_0^\infty e^{-x^2}\,dx = \frac{\sqrt{\pi}}{2}$$
$$\begin{pmatrix} a & b \\ c & d \end{pmatrix}$$
Notes:
- The formula height is calibrated to the current line text height. Simple formulas render at text height; taller formulas (fractions, summations, integrals, etc.) expand the enclosing line height automatically.
valignonly applies to inline formulas. Display-mode (block-level) formulas are always centered horizontally; useoffsetYto shift them vertically within the block.colordefaults to white (#FFFFFF). Use#AARRGGBBformat for a semi-transparent fill.sourceScaledoes not change the displayed size. In game, formulas are rasterized at the on-screen pixel size (GUI scale aware), so thin strokes such as fraction bars and minus signs stay visible on low-resolution displays;sourceScaleonly affects the site-export PNG resolution. Values below16are clamped to16.- Tooltip priority is: rich child Markdown content, then
tooltip="...", thenshowTooltip={true}raw source fallback. - Child tooltip content is compiled as regular guide Markdown, so it can include bold text, lists, links, item tags, and nested
<Latex>formulas. - The
$$formula$$shorthand always uses default parameters. Use the<Latex>tag for custom colour, scale, alignment or tooltip.
Scene Runtime Tags
These tags only work inside <GameScene> / <Scene>:
| Tag | Purpose | Key attributes |
|---|---|---|
<ImportStructure> |
import an external SNBT/NBT structure asset | src, x, y, z, offsetX, offsetY, offsetZ, formed |
<ImportStructureLib> |
import a StructureLib multiblock by controller id | controller, name, piece, facing, rotation, flip, tier, channel, channelName, value, locked, offsetX, offsetY, offsetZ, formed |
<RemoveBlocks> |
remove already-placed blocks that match a block matcher | id |
<BlockAnnotation> |
highlight one block | pos, color, colorMode, colorPeriod, thickness, alwaysOnTop |
<BoxAnnotation> |
highlight an arbitrary axis-aligned box | min, max, color, colorMode, colorPeriod, thickness, alwaysOnTop |
<OutlineAnnotation> |
outline the rendered silhouette of blocks or entities | pos, min, max, entity, target, mode, color, colorMode, colorPeriod, thickness, alwaysOnTop, pulse, pulsePeriod |
<BlockAnnotationTemplate> |
stamp the same child annotations onto every matching placed block | id |
colorMode: solid (default) or rainbow; rainbow rotates through 360 degrees around the projected annotation center, replacing RGB while preserving the alpha of color. colorPeriod: positive finite rainbow cycle period in seconds; default 2.4; invalid values produce a page error. Game and Site Export use the same rainbow gradient and cycle duration.
See GameScene for scene import/removal behavior and Annotations for annotation template rules.
Charts
<ColumnChart>, <BarChart>, <LineChart>, <PieChart>, and <ScatterChart> are interactive chart blocks. All charts share the following common attributes:
| Attribute | Description | Default |
|---|---|---|
title |
Chart title | none |
width / height |
Explicit size | 320 / 200 |
background / border |
Background and border colors (#RGB, #RRGGBB, #AARRGGBB, 0x...) |
dark grey |
titleColor / labelColor |
Title and value-label colors | light grey |
legend |
Legend position: none / top / bottom / left / right |
top |
labelPosition |
Value-label position: none / inside / outside / above / below / center |
none |
cornerLegend |
Internal plot legend position: none / topRight / topLeft / bottomRight / bottomLeft |
none |
cornerLegendWidth / cornerLegendHeight |
Maximum internal legend box size | 120 / 64 |
cornerLegendBackground |
Internal legend background color | #AA111922 |
Cartesian charts (Column / Bar / Line / Scatter) additionally accept axis attributes xAxisLabel, xAxisMin, xAxisMax, xAxisStep, xAxisUnit, xAxisTickFormat and the matching yAxis* set, plus showXGrid={true} / showYGrid={true} to toggle gridlines.
Invalid or oversized tick formats fall back to automatic number formatting. Format strings are limited to 256 characters, field widths to 128, and precision to 20. Overlapping numeric tick labels are omitted as needed without removing their grid lines.
ColumnChart, LineChart, and ScatterChart show a horizontal gold dashed guide while the pointer is inside the plot, including empty space; the current Y value is highlighted beside the left axis. BarChart uses a vertical guide and highlights the X value below the plot. Labels follow the axis tick format and unit. The guide has no text on the line and disappears outside the plot. Both axes use faint, sparse dashed grids; showXGrid and showYGrid control them independently. Extremely small positive tick steps are coarsened automatically to bound rendering work.
Children:
<Series name="..." color="#..." data="10,20,30"/>for category-based charts (Column / Bar / categorical Line).<Series name="..." color="#..." points="x:y,x:y,..."/>for numeric X (LinenumericX={true}, Scatter).<Slice name="..." value="..." color="#..."/>for<PieChart>only.<ReferenceLine y="100"/>draws a fixed horizontal line inColumnChart,LineChart, andScatterChart.BarChartuses<ReferenceLine x="100"/>for a vertical line, withyaccepted as an alias. The coordinate must be finite. Multiple lines are allowed;coloroverrides the translucent gray default and optionallabelappears inside the plot without covering axis tick labels. References remain visible when grids are disabled, do not expand the automatic range, and are hidden outside it.PieChartdoes not support this tag.
When color is omitted on a <Series> or <Slice>, GuideNH cycles through a built-in 16-color palette.
<Series> and <Slice> also accept the following optional icon / tooltip attributes:
icon="modid:item"(same syntax as<ItemImage>'sid, may include@metaand inline NBT JSON) — binds anItemStackto the entry; the legend swatch becomes the item icon and hovering the data point shows the vanilla item tooltip with the chart description appended at the end.iconImage="images/foo.png"— use a PNG asset as the legend swatch (overridden byicon).tooltip="..."— extra free-form text appended to the tooltip (use\nfor multi-line).
Example:
<PieChart title="Output share">
<Slice name="Iron" value="40" icon="minecraft:iron_ingot" tooltip="From smelting" />
<Slice name="Gold" value="15" icon="minecraft:gold_ingot" />
</PieChart>
<ColumnChart> / <BarChart>
Extra attributes: categories (X-axis or Y-axis labels, comma separated), barWidthRatio (default 0.7). <BarChart> puts the categories on the Y-axis and values on the X-axis.
Combo extensions
<ColumnChart> and <BarChart> accept two extra child element types so multiple chart styles can share one plot area:
<LineSeries name="…" data="v1,v2,…" color="#rrggbb" icon="…"/>— drawn as a polyline overlay on top of the bars. Each line point sits at the cluster center of the matching category index; the overlay shares the host chart's value axis. You can declare multiple<LineSeries>to overlay several trends.<PieInset size="60" position="topRight" title="…" startAngleDeg="-90" direction="clockwise" titleColor="#rrggbb">— a small pie chart drawn inside one of the four corners (topRight,topLeft,bottomRight,bottomLeft) of the plot area. Its<Slice>children share the same syntax as in<PieChart>.
PieInset slices take hover priority over the bars and lines below them: tooltips show the name, value, percentage, and optional tooltip text; in-game item tooltips are retained when an item icon is present. The main guide is hidden while a slice is hovered. Only the first inset is used. position="rightOutside" reserves a separate area on the right. startAngleDeg="0", direction="counterclockwise", and a single full-circle slice are supported.
<ColumnChart title="Quarterly output" categories="Q1,Q2,Q3,Q4">
<Series name="Iron" data="40,60,55,70" color="#a0a0a0"/>
<Series name="Gold" data="20,30,25,35" color="#e0c060"/>
<LineSeries name="Total" data="60,90,80,105" color="#ff5050"/>
<PieInset size="60" position="topRight" title="Total share">
<Slice name="Iron" value="225" color="#a0a0a0"/>
<Slice name="Gold" value="110" color="#e0c060"/>
</PieInset>
</ColumnChart>
<LineChart>
Extra attributes: numericX={true} to enable a numeric X-axis (children must use points); showPoints={false} hides point markers. The hovered point is pushed outward by 2px along the curve normal, enlarged, and outlined; the adjacent line segments thicken by 1px.
<LineChart> and <ScatterChart> can show a compact legend inside the plot area with cornerLegend="topRight" or another corner. Entries use existing series names and colors.
<PieChart>
Extra attributes: startAngle (default -90, i.e. 12 o'clock); clockwise={false} to reverse direction. The hovered slice pops outward 4px along its bisector.
<ScatterChart>
Renders points only; <Series> must use points. The X-axis is always numeric.
Function Graphs
<FunctionGraph> and the single-curve shorthand <Function> render an interactive Desmos-style panel. The same panel is also available through a ```funcgraph fenced code block; see the runtime Markdown sample for a full walkthrough.
Panel attributes (accepted by the container, the shorthand, and the fence header alike):
width/height(defaults320x220)title,background,border,axisColor,gridColorshowGrid/showAxes(defaulttrue)xRange="a..b"(orxMin/xMaxseparately),xStepfor tick spacing; same for the Y axisxLabel/yLabeladd Excel-style axis titles below and above the plot respectively. They support inline$$...$$LaTeX;domain="a..b"is a legacy alias forxRangewhen no explicit X range is presentquadrants="1,2,3,4"orquadrants="all"to force the visible quadrants; omit to start in quadrant 1 with auto-expansion when sampledy < 0cornerLegend,cornerLegendWidth,cornerLegendHeight, andcornerLegendBackgroundshow a compact legend inside the plot area using non-empty curve labels
Curve children (<Plot> / <Function>):
expr="..."— the expression. Operators+ - * / % ^, postfix factorial!(gamma-extended),|x|absolute value,√/sqrt/∛/cbrt, implicit multiplication, and the constantspi,tau,e,phiare supported. Built-in calls cover the standard trig/log/exp/rounding family plus two-argatan2,min,max,pow,hypot,mod.inverse={true}evaluates the expression asx = f(y)and rotates the curve.domain="a..b"(x bounds shorthand) or comma-separated clauses such asx>=0, x<5.color,label. Any curve with a non-empty label is automatically listed in a legend rendered just below the panel: a small color swatch followed by the label, with entries flowing left-to-right and wrapping onto a new row when the next entry would not fit.tooltipadds plain text below the computed tooltip.showFunctionandshowValuesdefault totrue; set either tofalseto hide the rendered equation or live(x, y)value respectively. A<Plot>/ nested<Function>withexprmay contain Markdown and GuideNH tags as a rich tooltip body. The order is always label, rendered equation, live values,tooltiptext, then rich child content; omitted or disabled computed fields are skipped in that order.pointEveryX="step"adds generated point markers at regular x intervals on that curve.pointEveryY="step"adds generated point markers where the curve intersects regular y intervals, using a bounded search.autoPointLabel="none|x|y|xy"controls generated point labels; default isnone.autoPointColor="#..."overrides the generated point color; omitted means inherit the curve color.
Marked points (<Point>):
- Explicit:
x="..."andy="...". - Plot-anchored:
plot="N"plusatX="v"oratY="v"(the runtime bisects on the plot's x-domain to find the matchingx). - Optional
color,label.
Interaction: hover a curve to highlight it; press and hold to scrub a point along the curve. The tooltip starts with label when supplied, then the equation and live (x, y) value unless their switches are disabled; it stays anchored above the point and flips below when there is no headroom.
GuideNH Wiki
English
- Home
- Installation
- Getting Started
- Live Preview
- Guide Page Format
- Navigation
- Search
- Images And Assets
- Tags Reference
- Syntax Completion
- GameScene
- Structure Export
- Annotations
- Ponder
- Recipes
- Localization
- Templates
- Examples
- Mod Compatibility
- Server Integration
- Debug Mode
- Developer Integration
- FAQ