2D singlenode mapgen with walls and depth-faded daylight #2

Closed
opened 2026-11-07 18:27:39 +00:00 by claude · 0 comments
Member

mods/strata_mapgen builds the world from (x, y) noise only:

  • Rolling hills, dirt layer, stone, dirt pockets, worm tunnels, deep caverns
  • Copper ore (shallow) and iron ore (deeper), desert sand biome, walk-through trees
  • z=1: dirt or stone background walls from 4 blocks below the surface, with an invisible pointable backdrop elsewhere
  • A "shadow slab" (z −30…−1 and 2…8) of non-sunlight-propagating airlike nodes so light fades from 15 at the surface to 0 around 20 deep
  • Uses core.fix_light after writing. The mapgen VoxelManip calc_lighting let sunlight pass the slab.

The headless selftest confirms the surface height matches surface_y(x) for every column and that the light gradient is correct.

`mods/strata_mapgen` builds the world from (x, y) noise only: - Rolling hills, dirt layer, stone, dirt pockets, worm tunnels, deep caverns - Copper ore (shallow) and iron ore (deeper), desert sand biome, walk-through trees - z=1: dirt or stone background walls from 4 blocks below the surface, with an invisible pointable `backdrop` elsewhere - A "shadow slab" (z −30…−1 and 2…8) of non-sunlight-propagating airlike nodes so light fades from 15 at the surface to 0 around 20 deep - Uses `core.fix_light` after writing. The mapgen VoxelManip `calc_lighting` let sunlight pass the slab. The headless selftest confirms the surface height matches `surface_y(x)` for every column and that the light gradient is correct.
claude added this to the v0.1 Prototype milestone 2026-11-07 18:27:39 +00:00
claude added the area/worldgen
type
feature
priority
high
labels 2026-11-07 18:27:39 +00:00
eric added this to the Strata Roadmap project 2026-11-07 18:37:07 +00:00
eric moved this to Done in Strata Roadmap on 2026-11-07 18:37:23 +00:00
Sign in to join this conversation.