trees

A green # that blocks the way. Forests in some quest levels and in gardens.

Terminal
No picture of this is on the site yet.
Codex

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

In the terminal

Green '#'. On arboreal levels (Ranger quest home) solid stone and secret corridors are drawn as trees too.

Quotes from NetHack

I think that I shall never see A poem lovely as a tree.
dat/data.base:5592, Joyce Kilmer, Trees
4 more quotes
Some %s fall from the tree!
src/dokick.c:1153
You've attracted the tree's former occupants!
src/dokick.c:1185
The tree shudders but is unharmed.
src/dig.c:1701
You cut down the tree.
src/dig.c:478

In Codex

Walls bulge and recede and their tops rise and fall, so rooms and corridors look like caves.

Builtneeds review3D form

Based on the real thing: Cave rock bulges and recedes by hand-widths and its tops rise and fall, nothing flat or square.

Details

Lumpy caves (N-52): every solid shell is subdivided and pushed by a world-space value-noise field (two octaves, periodic every 8 squares) so faces bulge and recede by up to wall_bumps and tops rise and fall by up to wall_top_bumps, faceted like rock; neighbors move together and stay joined, the foot stays on the floor, and a floor is laid under each wall so receding rock leaves ground, not a gap. Faithful to the grid: lumps decorate a square, never move it. 0 and 0 bring back the flat blocks.

Id
codex.lumpy_caves
Exact state
Built, not reviewed
Playtests
journey-game, gallery-dark-corridor
Settings
dungeon.wall_bumps, dungeon.wall_top_bumps
Code
crates/nh-scene/src/mesh/shell.rs, crates/nh-scene/src/noise.rs
N-52DoneCaves less square
Applies to everything on the map (4)
  • 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.
  • A tree is drawn as a lumpy rock pillar tinted green, like a wall.
  • 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

Playtests: journey-game, gallery-dark-corridor

Planned and proposed

Planned A tree is drawn as a tree, not a green pillar of rock.

Details for builders

Id: tree. Lexicon subjects: terrain.tree.

Design notes from NetHack

Kicking drops fruit or lets out bees; a digging beam can make it shudder; an axe cuts it down. Tile 18 (other.txt): round green crown, brown trunk.

Backlog rows

N-52DoneCaves less square
N-25To do"Things look like they feel" (D-18) for the rest: