mirror of
https://github.com/GTNewHorizons/GuideNH.git
synced 2026-12-06 17:17:04 +00:00
Page:
Examples
Pages
Annotations zh CN
Annotations
Debug Mode zh CN
Debug Mode
Developer Integration zh CN
Developer Integration
Examples zh CN
Examples
FAQ zh CN
FAQ
GameScene zh CN
GameScene
Getting Started zh CN
Getting Started
Guide Page Format zh CN
Guide Page Format
Home en US
Home zh CN
Home
Images And Assets zh CN
Images And Assets
Installation zh CN
Installation
Live Preview zh CN
Live Preview
Localization zh CN
Localization
Mod Compatibility zh CN
Mod Compatibility
Navigation zh CN
Navigation
Ponder zh CN
Ponder
Recipes zh CN
Recipes
Search zh CN
Search
Server Integration zh CN
Server Integration
Structure Export zh CN
Structure Export
Syntax Completion zh CN
Syntax Completion
Tags Reference zh CN
Tags Reference
Templates zh CN
Templates
No results
5
Examples
ABKQPO edited this page 2026-11-16 16:00:02 +08:00
Table of contents
- Examples
- Core Example Pages
- Asset Examples
- Example Snippets
- Frontmatter + Navigation
- Home Recommendation
- Relative Image
- Namespaced Guide Links
- Rooted Structure Asset
- StructureLib Scene Import
- Imported Structure Cleanup
- Scene Annotation Tooltip
- Recipe Filter
- Amount formatting
- When To Use Which Example
- Recommended Learning Order
Examples
GuideNH ships a runtime example guide in wiki/resourcepack/. This page maps the important example files to the feature areas they demonstrate.
Core Example Pages
These files are in wiki/resourcepack/assets/guidenh/guidenh/_en_us/.
| File | Purpose |
|---|---|
index.md |
Category overview |
markdown.md |
Markdown syntax |
markdown-table.md |
Tables and merged cells |
rendering.md |
Block layout |
images.md |
Images and cropped textures |
tooltips.md |
Hover content |
recipes.md |
Item/fluid recipes and filters |
charts.md |
Charts, reference lines and fluid icons |
function-graph.md |
Function plots |
content-embed.md |
Embedding and text wrapping |
ponder.md |
Animation timelines |
scene-blocks.md |
Blocks and material lists |
scene-import.md |
Structure imports and block edits |
scene-entities.md |
Entity previews |
scene-camera.md |
Camera controls |
scene-annotations.md |
Scene annotations |
scene-particles.md |
Particles and weather |
navigation-guide.md |
Navigation, bindings and icons |
page-lang-key.md |
Whole-page translations |
templates-demo.md |
Templates and include control |
debug.md |
Layout and interaction diagnostics |
japanese.md |
Language and navigation example |
Template definitions are in templates/. wiki/resourcepack/assets/gregtech/guidenh/ demonstrates another namespace and cross-guide links.
Asset Examples
| Runtime file | Purpose |
|---|---|
wiki/resourcepack/assets/guidenh/guidenh/_en_us/test1.png |
page-local image example |
wiki/resourcepack/assets/guidenh/guidenh/assets/example_structure.snbt |
rooted shared structure asset for <ImportStructure> and <RemoveBlocks> |
Example Snippets
Frontmatter + Navigation
item_ids:
- minecraft:book
navigation:
title: Root
icon_texture: test1.png
recommend: 3
Home Recommendation
navigation:
title: Markdown Basics
parent: index.md
recommend: 0
navigation:
title: Navigation & Index
parent: index.md
recommend: 5
Relative Image

Namespaced Guide Links
[Same namespace](guide.md)
[Same namespace from root](/guide.md)
[Other namespace](gregtech:guide.md)
[Other namespace from root](gregtech:/guide.md)
Rooted Structure Asset
<ImportStructure src="/assets/example_structure.snbt" />
StructureLib Scene Import
<GameScene width="384" height="256" zoom={4} interactive={true}>
<ImportStructureLib controller="gregtech:gt.blockmachines:1000">
<Tier value="4" />
<Channel name="hatch" value="1" />
<Facing value="north" />
<Rotation value="normal" />
<Flip value="none" />
<GregTechActiveController />
<GregTechPlaceHatches />
</ImportStructureLib>
</GameScene>
The child tags set StructureLib defaults for the scene and are restored when the scene view is reset.
Imported Structure Cleanup
<GameScene width="384" height="256" zoom={4} interactive={true}>
<ImportStructure src="/assets/example_structure.snbt" />
<RemoveBlocks id="minecraft:glowstone" />
</GameScene>
Scene Annotation Tooltip
<GameScene>
<DiamondAnnotation pos="0.5 2.2 0.5" color="#FFD24C">
### Activated Beacon
<RecipeFor id="minecraft:furnace" />
</DiamondAnnotation>
</GameScene>
Recipe Filter
<RecipesFor id="minecraft:redstone_torch" input="minecraft:stick&minecraft:redstone" limit="1" />
Amount formatting
Use <Amount> for quantities. The unit is optional and defaults to a suffix-free number; fluid follows the GTNHLib mB/L preference.
<Amount value="250" />
<Amount value="250" unit="fluid" />/s
<Amount value="1200000" format="compact" /> items
When To Use Which Example
- start with
markdown.mdfor Markdown syntax - use
index.mdto browse examples by category - use
scene-blocks.mdwhen you only need static block layout previews - use
example_structure.snbtwhen you need a reusable imported structure asset - use
templates-demo.mdwith thetemplates/folder for reusable content, conditionals and include control. See Templates
Recommended Learning Order
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