graves

A white | on the floor with words on the headstone. Graveyards are rooms full of them.

Terminal
graves in Codex, first person
Codex: first person

Builtneeds review1 change builtSeen on some levelsLast touched November 19, 2026: a change of its own was written or changed. Commit 4643fea2e.

In the terminal

White '|', the same letter as a vertical wall. Engraving glyphs never replace it; its text is the headstone's. Farlook: "grave whose headstone you haven't read" or "grave with headstone reading: \"...\"".

Quotes from NetHack

"Who'd care to dig 'em," said the old, old man, "Those six feet marked in chalk?
dat/data.base:2242, W.B. Yeats, Three Songs to the Same Tune
5 more quotes
headstone ? "headstone reading" : "remembered text",
src/pager.c:1659
pline("%s is engraved here on the %s.", Something, eloc);
src/engrave.c:340, eloc is surface(), which is "headstone" for a grave (src/dungeon.c:1775)
Here lies Ezekiel, age 102. The good die young.
dat/epitaph.txt:28, one of the random epitaphs (voice.epitaph)
make_grave(m.x, m.y, dobell ? "Saved by the bell!" : (char *) 0);
src/mklev.c:2367, a random grave with a bell left on top
Sprintf(buf, "To Croesus: here's the gold recovered from %s the %s.",
src/vault.c:1231, the vault guard's grave for a hero who died owing the vault

In Codex

A grave is a pale headstone, a slab with a low round top, at the back of its square.

Builtneeds review3D form

Based on the real thing: A grave's headstone is an upright slab of pale stone under a low round top, about as wide as it is tall (0.4 of a square, to the hero's thigh) and a hand thick, the letter's white touched with the tile's slate, its foot darkened by earth and matte under the torch.

Details

A grave (S_grave, a white |, include/defsym.h:131) is drawn as the thing it is (N-260, N-228, D-18, D-67): an upright slab with straight sides under a low round top, as the DevTeam's grave tile stands it (win/share/other.txt, # tile 38 (grave): a stone twelve pixels wide and twelve high), built from the death's tombstone (mesh::tombstone) with its top pressed down to the tile's arch, 0.4 of a square tall and as wide, 0.09 thick, standing at the back (north) of its square so whoever stands on the grave stands in front of it and their letter stays whole. Its stone starts from the letter's own white (the game's color 15) moved a sixth of the way to the tile's slate, glowing a little in that white (0.22, as a tool's bundle glows in its letter's color) so it is seen as far off as the letter it replaces; matte (0.88), its foot darkened a hand's width up where the tile draws grass. It is hewn stone in the walls' material, so a lit room's light reaches its sides as it reaches the walls (N-2310, light.room_light_on_things), taken from the squares beside it since the map shows the grave and not lit floor on its own square, blended between them so it changes smoothly across a face; it keeps its own smooth face, without the walls' fine grain (N-680). Its face is plain: what is written on a grave is read in the game (Something is engraved here on the headstone. You read: ...), never shown on the stone. The | is not drawn while the stone stands for it; the minimap and the terminal view still show it. It is told by its letter in its color, so a player who changed the grave's character keeps the letter. Off (grave_headstone_strength 0, or grave_headstone_height 0), the letter as before.

Id
codex.grave_headstone
Exact state
Built, not reviewed
Playtests
gallery-furniture
Settings
dungeon.grave_headstone_strength, dungeon.grave_headstone_height, light.room_light_on_things
Code
crates/nh-scene/src/things/grave.rs, crates/nh-scene/src/mesh/things.rs, crates/nh-knobs/src/dungeon/grave_headstone.rs, crates/nh-scene/src/model.rs, crates/codex-client/src/draw/stone.rs, assets/shaders/stone.wesl
N-228DroppedA grave as a headstone
N-260In progressThe headstone, the sink, the throne
N-2310In progressAn upright face of a thing two or more squares from the hero in a lit room is near black:
Applies to everything on the map (4)
  • Altars, thrones, graves, sinks and traps stay letters that stand upright on the floor.
  • Every symbol is a plain keyboard character, even when the player's symbol set draws lines.
  • What the game showed on a square stays drawn under a monster or object that now stands there.
  • The map is drawn as a 3D world of walls and floors, lit by the hero's torch and a faint glow.

Accepted pictures and playtests

A change to how this looks is compared with these pictures before it is accepted.

  • graves in Codex, first personfirst person
Gallery scene gallery-furniture, grave 3. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • graves in Codex, first personfirst person
Gallery scene gallery-furniture, grave 2. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • graves in Codex, first personfirst person
  • graves in Codex, close third personclose third person
  • graves in Codex, director's viewdirector's view
  • graves in Codex, map viewmap view
Gallery scene gallery-furniture, grave. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • graves in Codex, first personfirst person
  • graves in Codex, close third personclose third person
  • graves in Codex, director's viewdirector's view
  • graves in Codex, map viewmap view
Gallery scene gallery-furniture, on grave. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.

Playtests: gallery-furniture

Planned and proposed

Planned A grave is drawn as a headstone of pale stone.

Planned A player's own forms for the hero, objects and features, not only monsters.

Details for builders

Id: grave. Lexicon subjects: feature.grave.

Design notes from NetHack

A headstone with an epitaph, over ground that can be dug. Tile 38 (other.txt): a gray slab with dark lettering on a green turf base.

Backlog rows

N-228DroppedA grave as a headstone
N-260In progressThe headstone, the sink, the throne
N-2310In progressAn upright face of a thing two or more squares from the hero in a lit room is near black:
N-353To doOwn forms for the hero, objects and features