Commit Graph
1560 Commits
Author SHA1 Message Date
Brian Neumann-Fopiano f7ddd68d26 Child lineage review fixes
- Terrain source test samples a self-cycle and a two-cycle child graph and checks every lineage link and inherited value
- Shore biome lookups skip the lineage unless some policy sets a positive shoreBiomeWidth
- IrisBiome.CHILD_HOPS is the one child hop limit for implosion and datapack river areas
- A missing shore biome error names the biome, region or dimension that lists it
2026-11-02 01:15:37 -05:00
Brian Neumann-Fopiano ff0a95a6fd Inherit parent biome policy
- IrisHydrologyPolicy.inherited walks the column's biome lineage (child, then the parents it grew inside), then region, then dimension
- IrisComplex.baseBiomeLineage recovers the per-column child chain from the implosion and fails closed if it disagrees with the base biome
- BiomeLineages limits chain recovery to biomes a policy-bearing biome can implode into and interns lineages for identity caches
- Terrain source, shore biomes and water decorators resolve by lineage; cave pools keep the cave biome alone
- Datapack river areas enumerate each region's child chains and RiverLimits attributes inherited values to the parent
- Policy description names the parent step; schema digest recaptured
2026-11-02 00:57:34 -05:00
Brian Neumann-Fopiano 95fa3ce105 Resolve medieval engine late
- MedievalPregenMethod re-resolves its engine on each call until one exists, then caches it
- Hydrology prefetch opens its epoch at the first prepare that sees the engine, with the stored region bounds
- MedievalPregenMethodTest covers a null first prepare followed by concurrent prepares opening the epoch once
2026-11-02 00:18:58 -05:00
Brian Neumann-Fopiano 6cbe4b2c09 Remove studio render paths
- Drop IrisRenderer.renderStudio, renderStudioBase and refineStudioBiome with their adaptive, height and river atlases
- Drop RenderType.RIVER and the test-only WaterMap.draw
- Port the river renderer tests to the live WaterTile path
- Use a settled WaterTile as the map overlay test oracle
2026-11-02 00:00:10 -05:00
Brian Neumann-Fopiano 490016b56a Remove transition hydrology weight
- Drop test-only TransitionGenerationPlan.hydrologyWeightAt
- Drop TerrainSample.hydrologyWeight and its validation
2026-11-02 00:00:10 -05:00
Brian Neumann-Fopiano df7aa2ef16 Remove dead cave cell code
- Drop HydrologyCaveAction.FALLING_FLUID; saved code 2 stays reserved and loads as WET_SOURCE
- Drop the flooded biome key from cave cells, Engine.floodedCaveBiome and the sea inlet rasterizer argument
- Write the retired biome slot empty and skip it on read so saved plates keep loading
- Drop the constant protectsPlacement check from every caller
- Drop the test-only of() factories and the default fluid key; tests use real keys
- Drop the unused falling-fluid carve state and isFalling
2026-11-02 00:00:10 -05:00
Brian Neumann-Fopiano 549eaa7e20 Report seams and defer areas
- RIVER_FLUID reports the seam of a river fluid whose blocks match the exported dimension fluid
- River export areas are built only after the hydrology enabled and density checks pass
- Tests cover matching-fluid seams, an unknown policy fluid failing the export, deferred area building, and the stage's exported-biome filter with child traversal
2026-11-01 23:09:43 -05:00
Brian Neumann-Fopiano 8e048944ec Report datapack hydrology limits
- Datapack export warns with RIVER_FLUID when a tier or hydrology policy fluid differs from the dimension fluid, naming its seam
- Hydrology policy rainfall and streams BLOCK report RIVER_POLICY on the dimension, region or biome that sets them
- Wet and dry climate zones report RIVER_CLIMATE unless every exported area opts out
- Shore biomes with a width report RIVER_SHORE_BIOME, and tier or policy water decorators report RIVER_DECORATOR
- Enabled sea inlets and cave pools report SEA_INLET and CAVE_POOL
- River stage resolves policies per region and exported surface biome, reporting each limit once per scope in a fixed order
- Dimension stage shares its fluid block resolution with the river limits
2026-11-01 22:54:48 -05:00
Brian Neumann-Fopiano 81b47a8f9b Refresh recorded cave pools
- Generation history keeps a river revision that moves after recorded river features or cave pools become readable
- Studio water tiles reload cave pools when that revision moves instead of the hydrology preview revision
- Water tiles at 4 blocks per pixel or closer keep their water state and base colors after completion, counted in the cache weight
- The Vision controller re-renders those completed tiles when the river revision moves, after the first retry delay, redrawing only their water
- Tests cover the revision counter, completed and coarse tiles through the controller and pools recorded after a raster lands
2026-11-01 22:27:50 -05:00
Brian Neumann-Fopiano 0c59e698cd Rank studio water features
- Plan-mode pond and lake masks keep the strongest feature per pixel instead of overwriting channels and falls
- Water map ranks come from an explicit switch per feature type, with ponds above lakes
- Studio water tiles redraw recorded cave pools when the hydrology preview revision changes
- Tests cover channels over ponds, ponds over lakes and cave pool refresh on a completed tile
2026-11-01 22:11:42 -05:00
Brian Neumann-Fopiano c0169d6dcd Bound planned search by recorded
- nearestRiver limits the planned search to the recorded water's distance, rounded up, when generated chunks hold a match
- Explored areas end with a confirmed Found instead of waiting out the 30 s timeout; nearer planned water inside the bound still wins
- Tests cover the bounded radius in queries and a bounded search that finishes under a short timeout when nothing near is eligible
2026-11-01 21:57:14 -05:00
Brian Neumann-Fopiano 9afd70e69f Report stopped river searches
- A timed-out hydrology search throws HydrologySearchTimeoutException carrying the nearest feature found so far
- nearestRiver answers RiverSearch.Stopped with the nearer of that feature and recorded water, and a message saying a nearer one may exist
- Bukkit and modded find river print the stopped message and never teleport on a stopped search
- Both commands catch every throwable while delivering a result and log it before telling the player
- Modded logs a result that cannot reach the server thread instead of dropping it
- The four-argument nearestFeature is removed; tests call the six-argument form
2026-11-01 21:48:10 -05:00
Brian Neumann-Fopiano 474b1e873a Bound find river search
- HydrologyFeatureSearch stops after its timeout or when the caller cancels, waiting on plans in 50 ms slices
- Types the dimension cannot form answer at once without planning, naming the setting that turns them off
- channelType reads the tier name (stream, river, major or major_river) and falls back to rank, so one-tier packs match stream
- HydrologyRuntime adds unavailable(type) and passes FEATURE_SEARCH_TIMEOUT (30 s) and a running check to the search
- nearestRiver returns a RiverSearch outcome, reports disabled and timed-out searches, and keeps recorded water on timeout
- startRiverSearch keeps one search per player; a new search cancels the previous one without a message
- Bukkit and modded find river run through the shared per-player search
- Tier name description and schema digest follow the new tier naming
- HydrologyFeatureSearchTest plus new query, Bukkit and modded cases cover the bounds
2026-11-01 21:27:50 -05:00
Brian Neumann-Fopiano 1ae68646b4 Seal inlets and headroom
- Seal covered inlet passages with rock where they come within two blocks of a historical chunk
- Add inlet headroom bands from the water up to the passage ceiling plus roofClearance to CaveCeilingMask
- Join the headroom bands into the carver and orphan sweep protection
- Keep subterrain cells out of the headroom bands in carving, the carve resolver and preserveSubterrain
- Apply seal guards inside upper-dimension and dimension-stack protected ranges
- Add old-chunk seal, headroom mask, carving wiring, subterrain and protected-range tests
2026-11-01 20:42:33 -05:00
Brian Neumann-Fopiano 0ca3a61046 Resolve cut-off inlet competitors
- Let a cut-off inlet still make a later conflicting inlet yield, and never list it
- Throw when a window's own inlet reaches the edge of its planning span
- Check the planner's chamber and step lookups against the sea-inlet extent guard
- Remove the reach ownership filter, which never removed a span reach
- Plan inlet tests on window spans and add bay, guard, edge and fail-closed tests
2026-11-01 19:56:27 -05:00
Brian Neumann-Fopiano 21ed677bf4 Agree sea inlets across windows
- Pass the planning window to SeaInletPlanner from WindowPlanner
- Mark a site clipped when its candidate area or any trace, cover, mouth or chamber lookup reaches the span edge
- Keep clipped inlets out of separation and the planned list unless the planning window owns them
- Avoid only reaches owned by the planning window or its 8 neighbours
- Add InletTerrain span views and an open-coast 3x3 window agreement test
2026-11-01 19:07:41 -05:00
Brian Neumann-Fopiano 9c95e7901c Pin persisted enum codes
- Give HydrologyFeatureType, ReachStyle and PondKind explicit codes equal to their old ordinals
- Add PersistedCodes lookup tables that reject duplicate, out-of-range and unknown codes
- Write and read codes in HydrologyPlanCodec; unknown codes decode as malformed plans
- Write and read codes in GenerationSemanticIndex shard records and region summaries
- Order summary river types and the river feature comparator by code
- Pin the code tables and a captured plan byte fixture in tests
2026-11-01 18:31:01 -05:00
Brian Neumann-Fopiano f6fbf9147f Keep reserved subterrain over transforms
- Let reserved subterrain cells without hydrology answer before a transformed column in every post-transform reader
- Move the transformed override into CarveOwnership.carved so the five readers share one order
- Read the natural opening and the cavern only when hydrology and subterrain leave the cell open
- Cover reserved passages and the reserved-solid transform case in the ownership tests
2026-11-01 18:15:28 -05:00
Brian Neumann-Fopiano b11ff94737 Restore transformed carve override
- Rank CarveOwnership as hydrology over subterrain over natural opening over cavern
- Share the subterrain claim predicate and the carved answer through CarveOwnership
- Let a transformed column override MantleWriter point and column readers and EngineMantle.isCarved again
- Resolve the untransformed MantleWriter column readers per block through CarveOwnership
- Keep IrisCarveModifier.carveOwner package-private and test it in its own package
2026-11-01 18:04:26 -05:00
Brian Neumann-Fopiano ccd5551854 Share carve ownership rule
- Add CarveOwnership, ranking hydrology over subterrain over transformed over natural
- Resolve IrisCarveModifier cell ownership through IrisCarveModifier.carveOwner and CarveOwnership
- Let hydrology win over subterrain rooms and transformed columns in MantleWriter isCarved and isPrerequisiteCarved
- Check subterrain rooms in EngineMantle.isCarved and let hydrology win over transformed columns
- Add CarveOwnershipTest running every reader over every flag combination
2026-11-01 17:48:15 -05:00
Brian Neumann-Fopiano 6f38d98e9e Check reachable biome fluids
- Engine start validates every reachable biome policy fluid while cave pools are enabled
- caveFluidPolicies stays computed from cave biomes, regions and the dimension only
2026-11-01 17:30:19 -05:00
Brian Neumann-Fopiano 1e41c9eca0 Inherit cave pool fluids
- Cave pools resolve fluid from the cave biome, then region, then dimension
- Engine.getCaveBiomeBelowSurface returns no biome where caves fall back to the surface
- caveFluidPolicies turns on only for cave biome, region or dimension fluids
- IrisDimension.getReachableCaveBiomes lists region cave biomes and carving bands
- Recapture the schema digest for the cavePools.fluid description
2026-11-01 17:19:24 -05:00
Brian Neumann-Fopiano 701b3191eb Supply structure sea surface
- GenerationWritePolicy.seaSurface returns minHeight + fluidHeight and the first fluid of the dimension fluidPalette
- Dimensions with no sea fluid or a sea at the world floor return StructureSeaSurface.NONE
- Bukkit and modded structure stage policies supply the sea surface to native structure fitting
- Native fitter tests pass SeaSurface.NONE to keep their expectations
- FLATTEN descriptions state the sea-surface clamp and sea-fluid fill
- Schema digest recaptured for the description change
2026-11-01 16:50:57 -05:00
Brian Neumann-Fopiano 8bc1ed760e Key cave pool walls
- Cave pool walls carry the pool's fluid key instead of the unknown default profile
- A wall shared by two pools keeps the lowest fluid key, whatever the chunk order
- The carve waterlogging pass resolves a fluid only for wet hydrology cells
- Tests cover unknown-fluid logging for pool walls and shared-wall chunk-order independence
2026-11-01 16:25:32 -05:00
Brian Neumann-Fopiano bd44272802 Schema digest
- Studio schema digest covers seam and sound category fields
2026-10-31 22:07:15 -04:00
Brian Neumann-Fopiano 31da551c04 Merged effect sound and vine fixes 2026-10-31 22:03:58 -04:00
Brian Neumann-Fopiano 067fffe066 Ceiling vine curtains
- A vine under a sturdy ceiling keeps its authored side faces
- Vines below it hold those faces through the vine above
- The vine-above check reads the facing before the material key
2026-10-31 22:03:49 -04:00
Brian Neumann-Fopiano c2eb8b5f42 Fixed effect sounds and vines
- Store the effect sound category as a vanilla category name
- Resolve the sound category to a Bukkit category when an effect plays
- Send modded effect sounds on the authored category
- Skip the sound and warn once for an unknown sound category
- Keep authored vine side faces only where a sturdy block or the vine above holds them
- Attach kept vine faces upward under a sturdy block
- Reattach multi-face blocks with no holdable side face to sturdy neighbours
- Cover sound category and vine face rules on Bukkit and modded
- Repin the studio schema digest
2026-10-31 21:58:58 -04:00
Brian Neumann-Fopiano 52989ce88d Fluid seam fixes
- Fluid seams seal from the 3x3 neighbour rasters in the effective water stage
- Seam bands spread across chunk edges like any other column
- Raw rasters keep their fluid so falls and history capture see the real fluid
- Seams no longer change the hydrology fingerprint
- Seam profiles may hold solid blocks but cannot fill tiers, ponds, cave pools or policies
- A seam profile cannot name a seam of its own
- Pack validation reports a policy fluid that names a seam profile
- Inland water skips columns outside the transition seam weight
- Channel fluid test covers the per-reach rule
2026-10-31 21:42:35 -04:00
Brian Neumann-Fopiano 64dc22025e Merged pack authoring features
- Rivers take the hydrology policy fluid of the area where each reach starts
- Policy fluid lookups for reach starts run in a sparse bake scope
- Effects, vine faces, inland water biomes and fluid seams come from the contributed branch
2026-10-31 21:26:16 -04:00
Brian Neumann-Fopiano b0860f94fc Gap-free object rotation
- Rotations off the right angles fill every target cell from the nearest source block
- Source blocks that no target cell samples still place at their rotated position
- Right-angle rotations keep the direct transform
- Markers, canopy and tile data follow their resampled source blocks
- Datapack export bakes off-angle variants with the same resampler
- The unused rotateCopy paths are removed
- Placement goldens match the resampled output
2026-10-31 19:23:25 -04:00
Brian Neumann-Fopiano 2462330787 Transition water caps
- Saved and blended columns find solid layers that cap water at the water head
- Surface search passes over a water cap to the ground below it
- A capped column keeps its fluid height at the top of the cap
- A painted cap counts only where the blended column keeps the same blocks
- Saved terrain sources report their water surface
- Displacement fluid keys come from the first fluid at or below the fluid height
- Empty fluid keys never win the fluid blend
2026-10-31 19:23:25 -04:00
Brian Neumann-Fopiano c2eca3e6bd Hydrology climate zones
- Hydrology climate splits the land into wet and dry zones with a noise style
- Dry zones keep only the dryRainfall share of rainfall and pond density
- Zone edges ease across the transition band
- Policy climateZones exempts an area from the dry zones
- Policy fluid also fills streams and rivers that flow through the area
- Bank steepness reads the steepest natural ground between the bank and the water
- Bank edges roughen with smooth noise
- Natural ground heights reach the rasterizer at full precision
- Settings reject climate values outside 0..1
- Hydrology probes read the full precision natural heights
2026-10-31 19:23:25 -04:00
Brian Neumann-Fopiano 9339c0869e Saved world on create
- /iris create saves a new world before spawn preparation
- A crash before the first autosave keeps the world's seed
2026-10-31 12:39:29 -04:00
Brian Neumann-Fopiano 7ff4292013 Datapack export fidelity fixes
- Aquatic decorators place on the sea floor in water only
- Decorator waterlogging follows the placement site
- Templates never bake waterlogged blocks
- Object blocks outside the nominal box stay in the template
- Procedural objects export their pre-built variants as content-keyed templates
- Surface objects anchor on the ocean floor heightmap
- Surface objects reject leaf, log, or fluid ground under the origin
- Surface support checks test base corners with a slope-scaled drop
- Support ground search covers the full 16 block window
- MIN_HEIGHT, MAX_HEIGHT, and stilt modes sample terrain across every allowed rotation
- Procedural tree roots extend down to the ground
- Underwater objects need water and stay below the surface
- On-water objects anchor at the fluid surface
- Unsupported coral, sea pickles, and wall fans are left out of templates
- Object placements honor slopeCondition
- Two-block plants place both halves
- Shore decorators need solid ground below
- Decorator coverage matches the Iris style density
- Patchy decorator styles export as noise threshold patches
- Palette end weights round to the nearest count
- Ores in deepslate place their deepslate variants
- Pack description tells players to keep the Default pack selected
- Aquifer floods open sea cells near the fluid height
2026-10-31 03:36:32 -04:00
Michael 4a499c18c4 Let a fluid set the block that forms where it meets another fluid
World generation places fluids without updates, so where lava meets water or the sea the two sit
side by side instead of reacting. A fluid profile can now name a seam: another fluid profile that
fills its edge where it touches a different fluid or the sea (a dry column whose ground is below
sea level). A profile used as a seam may hold solid blocks, e.g. lava with a seam of obsidian,
magma and basalt gets a cooled crust where it meets water. Every touching cell (diagonals included)
seals, plus about 60% of the cells next to those, picked by a world-position hash, so the seam is a
ragged band rather than a straight line. Without a seam nothing changes.
2026-10-31 02:12:22 -05:00
Michael 09d6e4b720 Let hydrology policies set the fluid of rivers
A hydrology policy's fluid filled ponds and lakes, but channels always used their tier's fluid, so a
volcanic region could have lava lakes but only water rivers. Each reach now takes the fluid its
policy (biome, then region, then dimension) names where the reach starts, its upstream end, falling
back to the tier's fluid when no policy names one, and keeps it to its downstream end. Deciding per
reach rather than per column keeps a river one fluid from source to confluence, so two fluids only
meet where streams join or flow into a lake, not along every border a river crosses. River plans
and the plan cache are unchanged.
2026-10-31 02:12:13 -05:00
Michael 6ed70b3856 Keep the land biome under inland water above sea level
The surface biome is typed from the ground height, so a pond or stream whose floor dips below the
dimension's fluid height became the region's sea biome (ocean colours and ocean spawns in a small
pond on low land). When the hydrology raster marks the column as inland water (pond, channel,
cascade or waterfall; not a mouth or sea inlet) whose surface is above sea level, and the base biome
is a land biome, keep that land biome.
2026-10-31 02:12:01 -05:00
Michael 6d6bd4f054 Keep a pack's side faces on hanging vines
DecoratorCore.fixFacesForHunk cleared every face of a placed vine and re-attached it to solid
neighbours, falling back to UP. A ceiling decorator that stacks vines downward therefore made a flat
sheet under every block instead of a hanging curtain, whatever faces the pack set. When the pack
already gives a vine a side face, keep it (the vine above holds it, as in vanilla) and add UP only
where a solid ceiling is directly above. Vines without authored side faces are fixed as before.
2026-10-31 02:12:01 -05:00
Michael bce7efaa72 Let biome effects choose their sound category
IrisEffect played its sound with Player.playSound(location, sound, volume, pitch), which Paper
sends on SoundCategory.MASTER, so packs that use effects for biome music or ambience could only be
turned down with the master slider. A new soundCategory field (default MASTER, so existing packs
sound the same) picks the category: music can follow the music slider, moods the ambient slider.
2026-10-31 02:12:01 -05:00
Brian Neumann-Fopiano 1ed1044474 Datapack export
- /iris datapack export compiles one pack dimension into a worldgen datapack for Minecraft 26.3 and later
- Bukkit and mod loaders take the same version, mode, namespace, output, format, objects and replace arguments
- The default overworld mode replaces the Overworld of a new world with the default world type
- Preset and dimension modes write a selectable world preset or a separate dimension
- The export runs in the background and publishes the zip or folder atomically
- Pack compiler stages turn noise, terrain, caves, subterrain, biomes, surface, decoration, objects and structures into a version-neutral IR
- Capability lowering fits every field to 26.3 density function ranges
- Disjoint min and max nodes fold to the input that always wins
- The 26.3 writer emits density functions, noise settings, biomes, features, structures, presets and dimensions
- Every export carries the Iris logo as its pack.png
- Unused objects, templates and features are pruned from the output
- The pruner keeps pack.png without reading references from its bytes
- Imported pack datapacks are bundled into the export
- Every approximation reports an export limit diagnostic
- Generation cost is counted against a node budget and reported as a warning
- Cave biomes over the wall palette limit use the closest kept palette
- Jigsaw exports share the template encoder, block states, destinations and publisher with the worldgen export
- DataVersion carries the pack format minor and world data version
- Both platforms expose vanilla data from the server classpath
- GoldenHashEngine and the export probes share one chunk spiral scan
- Headless 26.3 probes measure export cost and compare column and chunk likeness against Iris
- Real-codec tests decode the exported resources with the 26.3 registries
- Paper registry tests run in isolated registry scopes
- Command help and messages cover the export in every language file
2026-10-30 22:59:04 -04:00
Brian Neumann-Fopiano 618bb28591 Fixed lattice eviction race
- Lattice eviction sorts a snapshot of tile access stamps
- Concurrent tile use during eviction no longer breaks the sort
- Test covers eviction under concurrent fills
2026-10-30 22:47:20 -04:00
Brian Neumann-Fopiano b475d20aec Merge branch 'perf-gen' into perf-review 2026-10-30 21:42:42 -04:00
Brian Neumann-Fopiano e9c18cdc08 Merge branch 'perf-raster' into perf-review 2026-10-30 21:29:13 -04:00
Brian Neumann-Fopiano b10966af47 Merge branch 'perf-dem' into perf-review 2026-10-30 21:29:13 -04:00
Brian Neumann-Fopiano 0d148c69b5 Shared concurrent raster builds
- Made concurrent demands for one chunk wait for a single water raster build
- Added a test that a second demand reuses the build already running
2026-10-30 21:02:36 -04:00
Brian Neumann-Fopiano 806e847e90 Bounded column rereads
- Natural cave decoration reads columns in sixteen-row windows and drops the window after each decorated zone
- Perfection reads cells directly after a spike is normalized instead of rereading the column below it
2026-10-30 21:02:23 -04:00
Brian Neumann-Fopiano ed83c6fdeb Unqueued history claim waits
- Semantic claims and saved biome writes elect one writer per batch instead of queueing every caller on the monitor
- Waiting callers park until their batch settles and wake the next queued caller when the writer leaves
- Admission tests count parked followers as queued behind the history writer
2026-10-30 20:55:54 -04:00
Brian Neumann-Fopiano b2990104d2 Sped up hydrology sampling
- Bounds sampling answers a column from its region, land or sea type, or noise-picked biome when every biome it can still become shares the group bounds
- Base terrain heights are kept in a shared per-column memo for hydrology batches, terrain3D anchors and scalar sampling
- Hydrology height batches skip columns whose base height is already known
- The per-batch base height map and its thread local are removed
- The four inferred biome streams share one context region stream
- BakedStream exposes a baked-plane lookup without falling back to the source
- Tests cover region constants, the base height memo and bit-exact heights with and without region constants
2026-10-30 20:54:55 -04:00
Brian Neumann-Fopiano def73cff96 Clipped pregen prefetch
- Limited chunk prefetch rings to the windows a bounded pregeneration still needs
- Forwarded pregeneration region bounds from the async, medieval and modded methods
- Restored unclipped prefetch when the pregeneration closes
- Added a runtime test for clipped and restored prefetch
2026-10-30 20:54:55 -04:00