-
Notifications
You must be signed in to change notification settings - Fork 0
Annotations
GuideNH scene annotations are child tags inside <GameScene> / <Scene>. They render in world space and may contain child markdown/tag content that becomes a rich tooltip.
- annotations only work inside a scene
- child content becomes the tooltip body
- annotations can be hidden with the scene UI toggle
-
alwaysOnTopdraws above scene geometry when supported by the annotation type
<BlockAnnotation><BoxAnnotation><LineAnnotation><DiamondAnnotation>
GuideNH also registers <BlockAnnotationTemplate>, but the current built-in implementation is a no-op stub and does not produce any visible annotation yet.
Highlights a single 1x1x1 block volume.
| Attribute | Required | Meaning |
|---|---|---|
pos |
yes |
x y z vector |
color |
no |
#RRGGBB, #AARRGGBB, or transparent
|
thickness |
no | line thickness float |
alwaysOnTop |
no | boolean expression |
Example:
<BlockAnnotation pos="2 0 2" color="#33DDEE" alwaysOnTop={true}>
Highlights the controller block.
</BlockAnnotation>Highlights an arbitrary axis-aligned box.
| Attribute | Required | Meaning |
|---|---|---|
min |
yes |
x y z minimum vector |
max |
yes |
x y z maximum vector |
color |
no | annotation color |
thickness |
no | line thickness float |
alwaysOnTop |
no | boolean expression |
GuideNH automatically swaps min/max coordinates per axis when they are provided in reverse order.
Example:
<BoxAnnotation min="0 1 0" max="1 1.6 0.6" color="#EE3333" thickness="0.04">
Half-height area highlight.
</BoxAnnotation>Draws a line segment in world space.
| Attribute | Required | Meaning |
|---|---|---|
from |
yes |
x y z start vector |
to |
yes |
x y z end vector |
color |
no | annotation color |
thickness |
no | line thickness float |
alwaysOnTop |
no | boolean expression |
Example:
<LineAnnotation from="0.5 1.2 0.5" to="2.5 1.2 2.5" color="#FFD24C" thickness="0.08">
Signal path.
</LineAnnotation>Places a screen-facing diamond marker at a world position.
| Attribute | Required | Meaning |
|---|---|---|
pos |
yes |
x y z marker position |
color |
no | tint color; omitted defaults to bright green |
Example:
<DiamondAnnotation pos="0.5 2.2 0.5" color="#FFD24C">
### Activated Beacon
Hover for rich content.
</DiamondAnnotation>Annotation children are compiled as normal GuideNH content, so tooltips may contain:
- markdown paragraphs and headings
- item/block images
- recipes
- nested non-interactive scenes
Example:
<DiamondAnnotation pos="0.5 1.5 0.5">
**Machine Core**
<RecipeFor id="minecraft:furnace" />
</DiamondAnnotation><BlockAnnotationTemplate> is currently registered but the built-in compiler body is empty. Treat it as reserved for future work.