RegionIO/internal/worldgen
Master290 0f76058db6 Ore veins from the noise router
The router has carried vein_toggle, vein_ridged and vein_gap since the whole of
it was parsed, and nothing read them. So the copper and iron mega-veins -- the
long branching sheets that run through the deepslate and the copper band, not
the small scattered ore blobs -- did not exist.

OreVeinifier is not a decoration feature. It is the second entry of the same
MaterialRuleList the aquifer heads: the aquifer answers first, and only where it
says the position is solid rock does the veinifier get a turn at what would
otherwise be plain stone. That is why a vein never opens into a cave, and it is
why this lands in the density pass rather than in decorate.

Three random draws per position, in a fixed order, from a factory hashed off
"minecraft:ore": solidness, then richness, then the rare raw-ore block.
Reordering them or hoisting the vein_gap compute above the second draw would
change every vein in the world, so the code follows the bytecode's order rather
than the one that reads better.

The Y windows are the sharp edge worth knowing about: a vein's type comes from
the sign of the veininess noise, but its window comes from the type, so
veininess <= 0 anywhere outside -60..-8 is simply not a vein. Over 49 sampled
chunks copper lands in 0..49 and iron in -57..-8, and raw ore comes out at 1.9%
of ore blocks against vanilla's 2%.
2026-07-27 03:48:48 +03:00
..
data Add StructureManager and NBT template loader for large structures 2026-06-27 21:28:11 +03:00
aquifer.go Implement the vanilla Aquifer; stop flooding caves 2026-07-27 02:02:12 +03:00
bandlands.go Real badlands clay bands and a real biome temperature table 2026-07-27 02:31:10 +03:00
biome.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
biome_temperature.go Real badlands clay bands and a real biome temperature table 2026-07-27 02:31:10 +03:00
biome_test.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
blended.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
blended_test.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
blendedcompute_test.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
blockids.go Bind the surface rule tree to the world seed 2026-07-27 02:25:09 +03:00
climate_sampler.go 3D per-cell biomes (4x4x4) with surface/underground/cave layers 2026-06-24 01:04:01 +03:00
density.go Parse aquifer and ore-vein noise routers 2026-07-27 01:44:45 +03:00
density_bench_test.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
generated_blocks.go Add StructureManager and NBT template loader for large structures 2026-06-27 21:28:11 +03:00
improved_noise.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
improved_noise_test.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
loader.go Ore veins from the noise router 2026-07-27 03:48:48 +03:00
loadtest_test.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
noise_test.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
normal_noise.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
orevein.go Ore veins from the noise router 2026-07-27 03:48:48 +03:00
perlin_noise.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
random.go Parse aquifer and ore-vein noise routers 2026-07-27 01:44:45 +03:00
random_test.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
randomstate.go Restore the subsurface layers: real above_preliminary_surface and surface depth 2026-07-27 02:15:14 +03:00
router_test.go Parse aquifer and ore-vein noise routers 2026-07-27 01:44:45 +03:00
simple.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
spline.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
structure.go Bind the surface rule tree to the world seed 2026-07-27 02:25:09 +03:00
structure_manager.go Fix structures tearing apart and floating due to inconsistent baseY calculations 2026-06-27 21:54:08 +03:00
surface.go Real badlands clay bands and a real biome temperature table 2026-07-27 02:31:10 +03:00
surface_level.go Parse aquifer and ore-vein noise routers 2026-07-27 01:44:45 +03:00
surface_system.go Restore the subsurface layers: real above_preliminary_surface and surface depth 2026-07-27 02:15:14 +03:00
surface_test.go Real badlands clay bands and a real biome temperature table 2026-07-27 02:31:10 +03:00
template_cache.go Add StructureManager and NBT template loader for large structures 2026-06-27 21:28:11 +03:00