RegionIO/internal/world
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
..
testdata Implement multiplayer persistence and vanilla lighting 2026-07-21 09:21:44 +03:00
anvil_format_test.go Write chunk NBT vanilla reads: flat root, byte section Y, four-bit block palettes 2026-07-27 03:44:48 +03:00
aquifer_verify_test.go Implement the vanilla Aquifer; stop flooding caves 2026-07-27 02:02:12 +03:00
banding_verify_test.go Restore the subsurface layers: real above_preliminary_surface and surface depth 2026-07-27 02:15:14 +03:00
bench_test.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
biome_3d_test.go Resolve block names to the default state, not the first one 2026-07-27 03:35:39 +03:00
biome_bench_test.go 3D per-cell biomes (4x4x4) with surface/underground/cave layers 2026-06-24 01:04:01 +03:00
biome_lookup.go Biome-aware surface rules from the vanilla rule tree 2026-06-24 19:44:07 +03:00
biome_lookup_test.go 3D per-cell biomes (4x4x4) with surface/underground/cave layers 2026-06-24 01:04:01 +03:00
biome_parameters.json Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
block_properties.bin Send three real heightmaps instead of one repeated three times 2026-07-27 03:27:09 +03:00
block_properties.go Send three real heightmaps instead of one repeated three times 2026-07-27 03:27:09 +03:00
blocks.json Chunk persistence to Anvil .mca region files 2026-06-25 00:40:14 +03:00
cache.go Fix terrain streaming and surface spawning 2026-07-21 11:11:19 +03:00
cache_light.go Fix terrain streaming and surface spawning 2026-07-21 11:11:19 +03:00
cache_light_reuse_test.go Fix terrain streaming and surface spawning 2026-07-21 11:11:19 +03:00
cache_test.go Implement multiplayer persistence and vanilla lighting 2026-07-21 09:21:44 +03:00
cache_tickets.go Implement ticketed chunk lifecycle 2026-07-21 10:04:56 +03:00
cache_tickets_test.go Implement ticketed chunk lifecycle 2026-07-21 10:04:56 +03:00
chunk.go Implement multiplayer persistence and vanilla lighting 2026-07-21 09:21:44 +03:00
compress.go Implement multiplayer persistence and vanilla lighting 2026-07-21 09:21:44 +03:00
deepslate_verify_test.go Bind the surface rule tree to the world seed 2026-07-27 02:25:09 +03:00
encode.go Write the section fluid count instead of a hardcoded zero 2026-07-27 03:28:49 +03:00
encode_test.go Write the section fluid count instead of a hardcoded zero 2026-07-27 03:28:49 +03:00
entity.go Implement multiplayer persistence and vanilla lighting 2026-07-21 09:21:44 +03:00
features.go Resolve block names to the default state, not the first one 2026-07-27 03:35:39 +03:00
golden_test.go Implement multiplayer persistence and vanilla lighting 2026-07-21 09:21:44 +03:00
heightmap_test.go Resolve block names to the default state, not the first one 2026-07-27 03:35:39 +03:00
item_blocks.json Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
items.go Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
light.go Implement ticketed chunk lifecycle 2026-07-21 10:04:56 +03:00
light_test.go Resolve block names to the default state, not the first one 2026-07-27 03:35:39 +03:00
orevein_verify_test.go Ore veins from the noise router 2026-07-27 03:48:48 +03:00
regionfile.go Implement multiplayer persistence and vanilla lighting 2026-07-21 09:21:44 +03:00
spawn_surface_test.go Resolve block names to the default state, not the first one 2026-07-27 03:35:39 +03:00
state_names.go Resolve block names to the default state, not the first one 2026-07-27 03:35:39 +03:00
state_names_test.go Resolve block names to the default state, not the first one 2026-07-27 03:35:39 +03:00
store.go Ore veins from the noise router 2026-07-27 03:48:48 +03:00
store_test.go Resolve block names to the default state, not the first one 2026-07-27 03:35:39 +03:00
surface_verify_test.go Resolve block names to the default state, not the first one 2026-07-27 03:35:39 +03:00
terrain.go Implement multiplayer persistence and vanilla lighting 2026-07-21 09:21:44 +03:00
terrain_bench_test.go Resolve block names to the default state, not the first one 2026-07-27 03:35:39 +03:00
terrain_debug_test.go Resolve block names to the default state, not the first one 2026-07-27 03:35:39 +03:00
vanilla.go Ore veins from the noise router 2026-07-27 03:48:48 +03:00
vanilla_bench_test.go Resolve block names to the default state, not the first one 2026-07-27 03:35:39 +03:00
vanilla_parity_test.go Resolve block names to the default state, not the first one 2026-07-27 03:35:39 +03:00
worldtime_test.go Run the world clock so day and night happen 2026-07-27 02:45:28 +03:00