Commit Graph
6 Commits
Author SHA1 Message Date
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
Michael 0c760d9256 Fix main thread deadlock when spawning rise-out-of-ground entities
IrisEntity.spawn waited on J.sfut(...).get() to move the spawn point below
ground. J.sfut schedules the task for the next main thread tick, so when spawn
already runs on the main thread (ambient spawning in WorldEntitySpawner) the
future can never complete and the server stops ticking. Run the check inline
when already on the main thread.
2026-10-28 03:56:54 -05:00