<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Orthrus Research texts</title>
  <link href="https://orthrus.cc/texts"/>
  <link rel="self" href="https://orthrus.cc/texts/feed.xml"/>
  <id>https://orthrus.cc/texts</id>
  <updated>2026-11-17T00:00:00Z</updated>
  <author><name>Orthrus Research</name></author>
  <entry>
    <title>Getting a cubic world to the player sooner</title>
    <link href="https://orthrus.cc/texts/getting-a-cubic-world-to-the-player-sooner"/>
    <id>https://orthrus.cc/texts/getting-a-cubic-world-to-the-player-sooner</id>
    <updated>2026-11-17T00:00:00Z</updated>
    <category term="research"/>
    <summary>How Cubature prepares, orders and stores a cubic world so a player sees ground sooner, and what each step measured.</summary>
    <content type="html" xml:base="https://orthrus.cc/texts/getting-a-cubic-world-to-the-player-sooner">&lt;p&gt;A cubic world has far more to generate than a column world, so the order of the work decides what a player sees and when. Between 2026-10-30 and 2026-11-17, Cubature changed that order in five ways: it prepares terrain ahead of the players, sends the cubes a player can see first, makes empty sky nearly free, holds arrivals until their ground is ready, and writes the world to disk in fewer, larger batches. None of these changes what generates. Each changes only when the work happens.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;the-result&quot;&gt;The result&lt;/h2&gt;
&lt;p&gt;One capture shows the combined effect. The same lifecycle workload ran on the new Riven and Cubature builds and, in the same session, on the previous ones, with seed 8675309 and four Distant Horizons workers. The server went from launch to ready in 38.9 s instead of 86.9 s. The first cubes of the target view arrived 11.9 s after the capture started instead of 87.9 s, and the whole view was delivered in 22.9 s instead of 104.9 s. The worst tick during the full view fell from 277 ms to 173 ms.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-2&quot; id=&quot;ref-2&quot; aria-label=&quot;Source 2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;One number moved the other way. The 95th-percentile tick rose from 36.4 ms to 39.9 ms, because the same delivery now ran in 460 ticks instead of 2,100: the work is denser, not larger.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-2&quot; id=&quot;ref-2&quot; aria-label=&quot;Source 2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt; The sections below take the steps that produced this result one at a time.&lt;/p&gt;
&lt;h2 id=&quot;preparing-ahead-of-the-players&quot;&gt;Preparing ahead of the players&lt;/h2&gt;
&lt;p&gt;A generator such as Riven builds large regional plans before it can fill a single cube: drainage networks, hydrology plans, sediment and rock decisions. Cubature now asks the generator to prepare those plans before a player needs them, on a bounded pool of build threads.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-3&quot; id=&quot;ref-3&quot; aria-label=&quot;Source 3&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Once a second, Cubature ranks the regions within 8,192 blocks of any player by the time it would take that player to reach them: distance divided by the player's speed toward the region, plus a baseline of 8 blocks a second. A player standing still gets the nearest regions first, and a moving player gets the regions ahead. A governor sets how many regions run at once. It halves its permits when the machine saturates or the server thread waits while the cores are busy, and adds one a second when there is room.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-3&quot; id=&quot;ref-3&quot; aria-label=&quot;Source 3&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Preparation also yields to the near view. While the cubes around a player are still waiting to generate or be sent, no new region starts. On a fresh Riven world flown along a land route, the full view arrived in 30.4 s with this hold and in 40.2 s without it.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-4&quot; id=&quot;ref-4&quot; aria-label=&quot;Source 4&quot;&gt;4&lt;/a&gt;&lt;/sup&gt; Riven's side keeps preparation within its memory budget, so preparing never evicts a plan that a player's own terrain needs.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-5&quot; id=&quot;ref-5&quot; aria-label=&quot;Source 5&quot;&gt;5&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The server no longer waits for the first player either. A dedicated server between its ready message and the first join used to sit idle, because preparation ranked regions by players and there were none. It now prepares around the spawn point while no player is present, under the same rules.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-6&quot; id=&quot;ref-6&quot; aria-label=&quot;Source 6&quot;&gt;6&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;visible-cubes-first&quot;&gt;Visible cubes first&lt;/h2&gt;
&lt;p&gt;Distance alone is a poor order for a cubic world. A cube 40 blocks below the surface is closer than a hillside 60 blocks away, and a player sees only the hillside. Cubature now ranks the cubes it generates and sends by visibility class before distance, taking the highest class over all players:&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-7&quot; id=&quot;ref-7&quot; aria-label=&quot;Source 7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;the 5 by 5 by 5 cubes around a player;&lt;/li&gt;
&lt;li&gt;cubes inside their column's surface band, or whose band is unknown;&lt;/li&gt;
&lt;li&gt;cubes between the player's level and the surface band, so a player underground gets their own level and the way up;&lt;/li&gt;
&lt;li&gt;everything else.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The surface band comes from the generator, which can report the range of heights where a column's surface lies. Cubature caches it per column and asks for at most 64 new bands per tick.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-8&quot; id=&quot;ref-8&quot; aria-label=&quot;Source 8&quot;&gt;8&lt;/a&gt;&lt;/sup&gt; A hidden cube that has waited 200 ticks moves into a catch-up bucket ahead of the surface class, at most one per queue every 20 ticks, so visible work cannot starve the rest.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-7&quot; id=&quot;ref-7&quot; aria-label=&quot;Source 7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;empty-sky-costs-little&quot;&gt;Empty sky costs little&lt;/h2&gt;
&lt;p&gt;Most cubes above the ground hold nothing but air, and Cubature now treats them that way. When the generator classifies a missing cube as empty, Cubature builds the all-air cube directly instead of scheduling a worker and copying a 4,096-block buffer, then continues to population and lighting as before.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-9&quot; id=&quot;ref-9&quot; aria-label=&quot;Source 9&quot;&gt;9&lt;/a&gt;&lt;/sup&gt; For an empty cube above every column top in a sky-lit world, first light used to queue 4,096 sky light checks and surface tracking ran 4,096 updates that changed nothing. Both now return early, and a test compares blocks, light and height data on both paths.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-10&quot; id=&quot;ref-10&quot; aria-label=&quot;Source 10&quot;&gt;10&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Empty cubes are also not saved when they need not be. A generator may report a cube regenerable: empty, with population that creates nothing. Such a cube, generated in the current session and still holding nothing, is left out of the save and generated again on reload. The first save that does store it ends this, so a stored copy never goes stale.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-11&quot; id=&quot;ref-11&quot; aria-label=&quot;Source 11&quot;&gt;11&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The generator's classification is conservative by rule. Riven answers &quot;empty&quot; only when ordinary generation would produce nothing but air and no feature from a neighboring column reaches in, and answers &quot;unknown&quot; whenever the facts it needs are not already in memory.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-12&quot; id=&quot;ref-12&quot; aria-label=&quot;Source 12&quot;&gt;12&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;arrivals-that-wait-for-ground&quot;&gt;Arrivals that wait for ground&lt;/h2&gt;
&lt;p&gt;Joins, respawns, portal arrivals and teleports into unprepared terrain may now wait for their destination instead of generating it all at once on the server thread.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-13&quot; id=&quot;ref-13&quot; aria-label=&quot;Source 13&quot;&gt;13&lt;/a&gt;&lt;/sup&gt; Cubature prepares a held destination ahead of ordinary regional work, keeps the teleport waiting until its columns are ready, and keeps the prepared data until the columns are installed.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-14&quot; id=&quot;ref-14&quot; aria-label=&quot;Source 14&quot;&gt;14&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-15&quot; id=&quot;ref-15&quot; aria-label=&quot;Source 15&quot;&gt;15&lt;/a&gt;&lt;/sup&gt; Vanilla's movement corrections and immediate arrivals are preserved when workers are disabled.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-14&quot; id=&quot;ref-14&quot; aria-label=&quot;Source 14&quot;&gt;14&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;writing-less-often&quot;&gt;Writing less often&lt;/h2&gt;
&lt;p&gt;Saving a cubic world means many small writes, and each forced write to disk costs time. Three changes reduced the count.&lt;/p&gt;
&lt;p&gt;The background writer now gathers: after the first write is published it waits 250 ms by default, then writes everything pending in one round. A crash loses at most one window plus the round in progress, and a clean shutdown writes everything.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-16&quot; id=&quot;ref-16&quot; aria-label=&quot;Source 16&quot;&gt;16&lt;/a&gt;&lt;/sup&gt; During a flush, each region's whole backlog is now written in one batch. In a probe of the old and new patterns over the same writes, forced writes took 0.10 s instead of 0.92 s. In a flight capture the flush after the flight made 84 forced writes instead of 758 and took 1,495 ms instead of 2,298 ms.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-17&quot; id=&quot;ref-17&quot; aria-label=&quot;Source 17&quot;&gt;17&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Compression came next. Storage batches are now compressed with reused deflaters on a bounded set of workers. The same flush took 634 ms, against 1,495 ms with fresh streams on four workers, and the worst tick fell from 1,950 ms to 1,047 ms. A test checks the bytes against the game's own compression over 50 payloads.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-18&quot; id=&quot;ref-18&quot; aria-label=&quot;Source 18&quot;&gt;18&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;what-stays-the-same&quot;&gt;What stays the same&lt;/h2&gt;
&lt;p&gt;Every step here changes when work happens and never what is generated. Prepared plans are the same pure functions as plans built on demand, and the order of preparation cannot change a result.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; The visibility order was verified by tests but has not yet been measured on its own in a running server; the lifecycle result above measures it together with the other changes.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-7&quot; id=&quot;ref-7&quot; aria-label=&quot;Source 7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-2&quot; id=&quot;ref-2&quot; aria-label=&quot;Source 2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2&gt;Sources&lt;/h2&gt;&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: Preparation within bounds&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/114837d315a4c19f04b0b68f91a4abf9a6711dc8&quot;&gt;&lt;code&gt;Riven 114837d&lt;/code&gt; Record the lifecycle timing of the current Riven build&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/e14bbf9abcb0c450ce112aa41b874756019f467d&quot;&gt;&lt;code&gt;Cubature e14bbf9&lt;/code&gt; Prepare a generator's regional plans ahead of the players&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/ae97b3bf23bd9309ff319af085ac013429cc6b4c&quot;&gt;&lt;code&gt;Cubature ae97b3b&lt;/code&gt; Hold regional preparation while the native view is behind&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/fcbe4ecfbac3d5fb22d9db82247ddf3b06599fe8&quot;&gt;&lt;code&gt;Riven fcbe4ec&lt;/code&gt; Prepare Riven's regions ahead of the players&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/221ef55decfd5251f0d278a7dc1fee5ae75e965f&quot;&gt;&lt;code&gt;Cubature 221ef55&lt;/code&gt; Prepare regions around spawn while no player is present&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/2a0130c0100e206c28b7839d94396400ca115fb7&quot;&gt;&lt;code&gt;Cubature 2a0130c&lt;/code&gt; Deliver visible cubes first&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/f747c78f62825c92499feae8ad15d2f529db25b6&quot;&gt;&lt;code&gt;Cubature f747c78&lt;/code&gt; Expose cached cube classification and surface bands&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/07994a86247273d6b1b5b9d0ff7b571f55a9e26a&quot;&gt;&lt;code&gt;Cubature 07994a8&lt;/code&gt; Install generator-classified empty cubes without generating them&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/7e1702fe700bc202b49eccc01c4a0d38a9099837&quot;&gt;&lt;code&gt;Cubature 7e1702f&lt;/code&gt; Skip redundant initial light work for empty sky cubes&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/7bf7d5d531cf8f562a2612aea216c7d5b3f01c2c&quot;&gt;&lt;code&gt;Cubature 7bf7d5d&lt;/code&gt; Leave regenerable empty cubes unsaved&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: Conservative cached cube classification&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: Arrival waits&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/92fe8b2005c78d298aaa72fb521ac56c71117c5e&quot;&gt;&lt;code&gt;Cubature 92fe8b2&lt;/code&gt; Keep teleports waiting for prepared destination columns&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/50473870015a42355ebb1023bc6cc56d34732ec7&quot;&gt;&lt;code&gt;Cubature 5047387&lt;/code&gt; Retain prepared arrival columns until installation&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/39a1656db23c654b077871f13f7765770052e80e&quot;&gt;&lt;code&gt;Cubature 39a1656&lt;/code&gt; Gather background storage writes and drain them in rounds&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/f94587552ae75a112d9c62c6312d778b5e2ef0d4&quot;&gt;&lt;code&gt;Cubature f945875&lt;/code&gt; Write each region's whole backlog in one batch during a flush&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/a11dd9efba7590fd95cca5be17504d60e8fdb908&quot;&gt;&lt;code&gt;Cubature a11dd9e&lt;/code&gt; Compress storage batches with reused deflaters on bounded workers&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;</content>
  </entry>
  <entry>
    <title>Reading a cubic world from the client</title>
    <link href="https://orthrus.cc/texts/reading-a-cubic-world-from-the-client"/>
    <id>https://orthrus.cc/texts/reading-a-cubic-world-from-the-client</id>
    <updated>2026-11-17T00:00:00Z</updated>
    <category term="guide"/>
    <summary>Cubature's cube source gives client-side renderers a consistent view of loaded cubes, with events once a tick, versions, immutable snapshots with their neighbors, and threads to build on.</summary>
    <content type="html" xml:base="https://orthrus.cc/texts/reading-a-cubic-world-from-the-client">&lt;p&gt;A renderer for a cubic world needs the blocks and light of each 16-block cube, and it needs them in a state that holds still while it builds a mesh. The game's own client data does not hold still: whole-cube packets, small block changes, light updates and removals each arrive on their own schedule, so a renderer that reads the world directly can mesh half of an edit. Cubature's cube source is the contract that closes that gap. It gives a renderer one ordered stream of events, a version for every cube, immutable snapshots for its builds, and threads to run them.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-2&quot; id=&quot;ref-2&quot; aria-label=&quot;Source 2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The source lives in Cubature's public API, package &lt;code&gt;api.client&lt;/code&gt;; a renderer reads only those interfaces, never Cubature's internal classes. It replaces hooks written for one renderer at a time with one contract for any renderer.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;attaching-to-the-source&quot;&gt;Attaching to the source&lt;/h2&gt;
&lt;p&gt;The source exists on a client whose world is cubic. &lt;code&gt;CubeSource.get()&lt;/code&gt; returns it, or null on a dedicated server and before Cubature has initialized. A renderer registers one listener, and every event reaches it on the client thread.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-java&quot;&gt;ICubeSource source = CubeSource.get();
if (source != null) {
    source.setListener(new ICubeSourceListener() {
        @Override public void worldAttached(long worldIdentity) { /* start fresh */ }
        @Override public void worldDetached(long worldIdentity) { /* drop everything */ }
        @Override public void cubeLoaded(int x, int y, int z) { /* queue a build */ }
        @Override public void cubeUnloaded(int x, int y, int z) { /* drop its mesh */ }
        @Override public void cubeChanged(int x, int y, int z, int kinds,
                int minX, int minY, int minZ, int maxX, int maxY, int maxZ) { /* rebuild the bounds */ }
    });
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The world has an identity that changes when the client world is replaced, by a dimension change or a disconnect. Every snapshot and event belongs to one identity and is void after it. The source also states the world's height range in cubes and whether the dimension has sky light.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;events-and-versions&quot;&gt;Events and versions&lt;/h2&gt;
&lt;p&gt;Cubature translates every route by which a cube changes into four events: a cube loaded, a cube unloaded, a cube changed, and the world attached or detached. Events arrive once per client tick, at its end, in the order the changes were applied, and only after the data they describe is readable.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-2&quot; id=&quot;ref-2&quot; aria-label=&quot;Source 2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;A change event carries what changed (&lt;code&gt;BLOCKS&lt;/code&gt;, &lt;code&gt;LIGHT&lt;/code&gt;, &lt;code&gt;BIOMES&lt;/code&gt; or &lt;code&gt;NEIGHBOR&lt;/code&gt;) and the bounds of the change inside the cube. The bounds are a contract: they always contain every block that changed and may contain more, never less, so a renderer may rebuild exactly the box it is given.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-3&quot; id=&quot;ref-3&quot; aria-label=&quot;Source 3&quot;&gt;3&lt;/a&gt;&lt;/sup&gt; A change in a cube's outermost layer of blocks, or its arrival or removal, also raises a &lt;code&gt;NEIGHBOR&lt;/code&gt; change for each loaded cube that touches it, so faces drawn against a gap are rebuilt when the gap fills.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Every loaded cube has a version, a number that rises whenever anything a snapshot would capture changes. Versions come from one counter for the whole client world, so a cube that leaves and returns never repeats an old version. The version is split for a renderer that keeps light apart from geometry: &lt;code&gt;blockVersion&lt;/code&gt; moves with blocks and biomes, &lt;code&gt;lightVersion&lt;/code&gt; with block light and sky light. A mesh whose block version has not moved needs only its light redone.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-3&quot; id=&quot;ref-3&quot; aria-label=&quot;Source 3&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;An unload is final when it is delivered. By the time &lt;code&gt;cubeUnloaded&lt;/code&gt; arrives the cube is gone, so a renderer drops the mesh and nothing brings the cube back unless it arrives again. A renderer that wants to fade a departing cube keeps that mesh on its own side.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;snapshots&quot;&gt;Snapshots&lt;/h2&gt;
&lt;p&gt;A snapshot is an immutable copy of a cube and the 26 cubes around it, taken on the client thread. For each of the 27 it holds presence, 4,096 block states, block and sky light per block, biomes, the block entity map, and the three versions.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-2&quot; id=&quot;ref-2&quot; aria-label=&quot;Source 2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Four guarantees make a snapshot a safe source for a build. It never changes after it is returned, apart from the live block entity objects it holds, as the game's own chunk cache does. All 27 cubes are captured between two client ticks, so it never shows half of an edit. It can be read from any thread for as long as it is held. It presents the game's block access interface, so existing block models and color handlers run against it unchanged.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Absent neighbors read as air with implicit sky light, which lets a renderer mesh the edge of what the client holds with an ordinary snapshot; &lt;code&gt;present(dx, dy, dz)&lt;/code&gt; says which cubes it holds.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-4&quot; id=&quot;ref-4&quot; aria-label=&quot;Source 4&quot;&gt;4&lt;/a&gt;&lt;/sup&gt; A reader that needs only the cube itself, such as a mesher of interior faces, takes &lt;code&gt;snapshotCenter&lt;/code&gt; instead. Neighbor masks, the light at one block and a light checksum are available as queries without a snapshot.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-5&quot; id=&quot;ref-5&quot; aria-label=&quot;Source 5&quot;&gt;5&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Snapshots are cheap to share. A cube is copied once per version, and that copy serves every snapshot that includes it until its version moves, so a cube that sits in 27 neighborhoods is copied once instead of 27 times.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; A renderer releases a snapshot when its build finishes or is cancelled, and holding one never keeps a cube loaded.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;building-on-cubatures-threads&quot;&gt;Building on Cubature's threads&lt;/h2&gt;
&lt;p&gt;A renderer does not need to start threads. &lt;code&gt;buildWork()&lt;/code&gt; gives it a pool for work on cube snapshots, such as background meshing:&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-6&quot; id=&quot;ref-6&quot; aria-label=&quot;Source 6&quot;&gt;6&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-java&quot;&gt;IClientBuildWork work = source.buildWork();
Task&amp;#x3C;Mesh&gt; task = work.submit(priority, x, y, z, false,
        IClientBuildWork.STALE_ON_BLOCKS, (snapshot, t) -&gt; mesh(snapshot, t));
// each frame, on the client thread:
for (Task&amp;#x3C;?&gt; done; (done = work.poll()) != null; ) { /* take the result */ }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A task waits on the client thread without a snapshot and takes its snapshot only when a thread is ready for it, so a task that waits a long time builds from the cube as it is when it runs. Lower priorities run first, and &lt;code&gt;reprioritizeAll&lt;/code&gt; re-sorts every waiting task when the camera moves or turns. A task becomes stale when its cube leaves, or after the changes its &lt;code&gt;staleOn&lt;/code&gt; mask names, and a stale task never comes back from &lt;code&gt;poll&lt;/code&gt;; the renderer hears the change as an event and submits a new task.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-6&quot; id=&quot;ref-6&quot; aria-label=&quot;Source 6&quot;&gt;6&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The pool is bounded. It runs a quarter of the processors' threads by default, between one and four, one step above the lowest priority, and never the common pool. It shares one budget of work permits with the preview pool described below, so the number of jobs running across both is set in one place.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-6&quot; id=&quot;ref-6&quot; aria-label=&quot;Source 6&quot;&gt;6&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-7&quot; id=&quot;ref-7&quot; aria-label=&quot;Source 7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;the-held-box-and-the-settled-signal&quot;&gt;The held box and the settled signal&lt;/h2&gt;
&lt;p&gt;The server keeps a box of cubes sent to each player, set by its horizontal and vertical view distances. It now tells the client where that box is: &lt;code&gt;heldBox()&lt;/code&gt; returns its center and extents, and the listener hears &lt;code&gt;heldBoxChanged()&lt;/code&gt; when the player moves to another cube or a distance changes.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-8&quot; id=&quot;ref-8&quot; aria-label=&quot;Source 8&quot;&gt;8&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The settled signal tells a frame capture when to take its picture. It has two parts. First, the server reports that every cube of the box has been sent. Second, &lt;code&gt;quietTicks()&lt;/code&gt; counts the client ticks in a row in which no cube arrived, left or changed and the client's light engine had nothing queued. &lt;code&gt;settled(20)&lt;/code&gt;, one second of quiet after the whole box arrived, is the intended use.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-9&quot; id=&quot;ref-9&quot; aria-label=&quot;Source 9&quot;&gt;9&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The signal is narrow on purpose. It says nothing about whether the renderer has built what arrived, which is the renderer's own queue, and nothing about Distant Horizons' distant terrain. Any world in which something changes every tick, such as flowing water, keeps it false, which is why the quiet count is a parameter.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-9&quot; id=&quot;ref-9&quot; aria-label=&quot;Source 9&quot;&gt;9&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;the-terrain-preview-on-the-client&quot;&gt;The terrain preview on the client&lt;/h2&gt;
&lt;p&gt;A generator can describe any column of its world as vertical runs of block states from the seed alone, without generating a cube. A renderer that draws terrain beyond the loaded cubes can now sample that preview on the client, so the server does no preview work for it.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-10&quot; id=&quot;ref-10&quot; aria-label=&quot;Source 10&quot;&gt;10&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;When a player joins, the generator sends an offer: a factory name, an identity hash, the seed, the world's generator options and its recorded definitions. The client's factory computes its own identity from those inputs and builds the preview only if the two match, so a client with a different build of the generator draws nothing the server would not generate. A server can keep its seed private with &lt;code&gt;sendSeedForClientPreview&lt;/code&gt; off; the identity is then withheld too, because it hashes the seed, and that client builds no preview.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-10&quot; id=&quot;ref-10&quot; aria-label=&quot;Source 10&quot;&gt;10&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Sampling runs on &lt;code&gt;previewWork()&lt;/code&gt;, Cubature's preview pool, with the same task model as the build pool. One governor sets the permits for both pools. Once a second it reads the last 120 frame times and, in single player, the integrated server's ticks: it halves the permits when the frames' 95th percentile reaches the frame budget (25 ms by default) and adds one when there was demand and the frames have room. Each change is logged with what decided it.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-7&quot; id=&quot;ref-7&quot; aria-label=&quot;Source 7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-11&quot; id=&quot;ref-11&quot; aria-label=&quot;Source 11&quot;&gt;11&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-12&quot; id=&quot;ref-12&quot; aria-label=&quot;Source 12&quot;&gt;12&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The source itself answers a column's ground and liquid surface heights, from loaded cubes or from the preview, and says what a cube holds, so a renderer can place distant ground before any cube arrives.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-13&quot; id=&quot;ref-13&quot; aria-label=&quot;Source 13&quot;&gt;13&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-14&quot; id=&quot;ref-14&quot; aria-label=&quot;Source 14&quot;&gt;14&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;what-is-not-built-yet&quot;&gt;What is not built yet&lt;/h2&gt;
&lt;p&gt;Two pieces remain design. A client keeps no derived-data directory, so a preview's regional data stays in memory and is rebuilt each session. A server whose seed is withheld cannot yet fall back to sending its own preview tiles.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2&gt;Sources&lt;/h2&gt;&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/b11401750a9353fe42d940162dfba27d631dddf2/docs/CUBE-SOURCE.md&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; Cube source&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/af1b9da836cfcf1757feb6494065c32831447dfa&quot;&gt;&lt;code&gt;Cubature af1b9da&lt;/code&gt; Add the cube source for client-side renderers&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/747de17595e18909079f9cb4ac5751fc08817b3e&quot;&gt;&lt;code&gt;Cubature 747de17&lt;/code&gt; Split a cube's version into blocks and light, and state the bounds of a change&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/64bd46b22a161718a7d2a254f763fa67259c2bf1&quot;&gt;&lt;code&gt;Cubature 64bd46b&lt;/code&gt; Say that a snapshot serves a cube at the edge of what is loaded&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/4467e91fda8aeb75b041bfb299443cacaeb927b2&quot;&gt;&lt;code&gt;Cubature 4467e91&lt;/code&gt; Read neighbors, one block's light, the center alone and the state limit from the cube source&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/7b1bd62ddcede8966c41f0767accc5641ca0422c&quot;&gt;&lt;code&gt;Cubature 7b1bd62&lt;/code&gt; Give renderers Cubature's threads for building from cube snapshots&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/3ea2664986213b2c9ac36c67a0e0b05ff924e0ff&quot;&gt;&lt;code&gt;Cubature 3ea2664&lt;/code&gt; Let the client pools grow on queued work, and log each permit change&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/99de89fea4e9cab3d5b19457402b3da4327272d1&quot;&gt;&lt;code&gt;Cubature 99de89f&lt;/code&gt; Tell the client which box of cubes the server keeps sent to it&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/c87e86ca860ba89b9bbb0da114ee06bb2353d51d&quot;&gt;&lt;code&gt;Cubature c87e86c&lt;/code&gt; Say when the client's view is settled, for frame captures&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/802bab6d40b96b6adc4681938128ddfc8d2f94dc&quot;&gt;&lt;code&gt;Cubature 802bab6&lt;/code&gt; Give a client the generator's terrain preview through the cube source&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/9d66a235cfbc1768141eaffcb537463d13efc6da&quot;&gt;&lt;code&gt;Cubature 9d66a23&lt;/code&gt; State the terrain preview's threading contract&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/a6065ac5ffe6df40e0ed6f9be5a11586dfb4b9ff&quot;&gt;&lt;code&gt;Cubature a6065ac&lt;/code&gt; Give renderers Cubature's own threads for sampling the client terrain preview&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/158b9a0a88e05c24074c9559a67840e633a242c2&quot;&gt;&lt;code&gt;Cubature 158b9a0&lt;/code&gt; Answer a chunk column's ground and liquid surface from the cube source&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/6bf47ee37a74bfa41de6518f2cfeab723d40d9b5&quot;&gt;&lt;code&gt;Cubature 6bf47ee&lt;/code&gt; Let surface heights skip the preview, say what a cube holds, and find ground that passes light&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;</content>
  </entry>
  <entry>
    <title>Riven grows its own world</title>
    <link href="https://orthrus.cc/texts/update-2026-11-17"/>
    <id>https://orthrus.cc/texts/update-2026-11-17</id>
    <updated>2026-11-17T00:00:00Z</updated>
    <category term="update"/>
    <summary>Riven now decides every block, plant and first animal in its worlds, the land has a new shape from continents down to footpaths, and the stack moves to Cleanroom 0.7.14 with GTCEu: Reloaded.</summary>
    <content type="html" xml:base="https://orthrus.cc/texts/update-2026-11-17">&lt;p&gt;The last three weeks were about ownership. Riven took over the last things another mod still placed in its worlds, and then reshaped the land at every scale, from where continents gather down to the slope of a footpath. Around it, the runtime moved to Cleanroom 0.7.14 so GTCEu: Reloaded can run beside it.&lt;/p&gt;
&lt;p&gt;One thing first, because it affects anyone with a test world: every change below alters what a seed generates, so each needs a new world. Worlds made before Biomes O' Plenty left do not take up the new definitions.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;riven-places-every-block-itself&quot;&gt;Riven places every block itself&lt;/h2&gt;
&lt;p&gt;A Riven world is now made entirely by Riven. Until this period, Biomes O' Plenty still lent a few things while Riven's own were being made: some soils, cave fungi, water plants and its decorators. Each of those now comes from Riven, and Biomes O' Plenty is neither used nor installed.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-2&quot; id=&quot;ref-2&quot; aria-label=&quot;Source 2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The ground is the most visible change. Soil under grass is chosen by the climate at its own height. Cold wet flats take peat, the cool wet band podzol over loam, and cold ground silt; sandy loam forms where it is warm and dry, loam where it is wet, and red sand on the hottest dry ground. Across a 16 km survey grid, grass-topped land came out about a third loam, a quarter dirt, a fifth silt and most of the rest sandy loam, with podzol and peat as small accents.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-3&quot; id=&quot;ref-3&quot; aria-label=&quot;Source 3&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Life fills the water and the caves as well. Under the water, waterweeds grow in the shallows, kelp beds rise up to 14 blocks on the open sea floor, and reefs of corals and anemones fill warm shallows.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-4&quot; id=&quot;ref-4&quot; aria-label=&quot;Source 4&quot;&gt;4&lt;/a&gt;&lt;/sup&gt; Underground, ink caps and pale cave mushrooms grow in the caves, and glowing mushrooms light their floors.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-5&quot; id=&quot;ref-5&quot; aria-label=&quot;Source 5&quot;&gt;5&lt;/a&gt;&lt;/sup&gt; Cactus and pumpkins come from Riven's own ground cover, one plant per cell so no two stand side by side.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-6&quot; id=&quot;ref-6&quot; aria-label=&quot;Source 6&quot;&gt;6&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Animals followed. Riven now plans a chunk's first animals from the creature list of the biome at the chunk's center. Each one is placed only where the block below can carry it and its feet and head are clear.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-7&quot; id=&quot;ref-7&quot; aria-label=&quot;Source 7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Riven's rule is that it owns every placement in its worlds, so the distant view drawn by Distant Horizons uses the same models and rules as the ground at your feet.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-8&quot; id=&quot;ref-8&quot; aria-label=&quot;Source 8&quot;&gt;8&lt;/a&gt;&lt;/sup&gt; A mod that decorates the world on its own terms breaks that link, because the distant preview cannot know what it will do.&lt;/p&gt;
&lt;p&gt;For developers, the first animals are a pure function of the seed, the world's recorded definitions and the chunk, and population writes no block. That keeps the world independent of the order in which its cubes populate. We checked the separation on a fixed tour of seed 2485331: every planned animal that fit was found at all seven stops, 1,670 in all, and the block digests matched the previous version's exactly.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-7&quot; id=&quot;ref-7&quot; aria-label=&quot;Source 7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-2&quot; id=&quot;ref-2&quot; aria-label=&quot;Source 2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;continents-coasts-and-mountains&quot;&gt;Continents, coasts and mountains&lt;/h2&gt;
&lt;p&gt;The land has a new shape at the largest scale. Continents now gather in clusters, with archipelagos between them and open ocean beyond, and a separate island tier adds scattered islands and aligned chains. Land is set to cover about 45% of a world on average, and fjords cut into its coasts.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-9&quot; id=&quot;ref-9&quot; aria-label=&quot;Source 9&quot;&gt;9&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Coasts are built piece by piece. Each stretch of shoreline takes a type (cliff, headland, bluff, platform, beach or marsh) and is shaped as that kind of coast.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-10&quot; id=&quot;ref-10&quot; aria-label=&quot;Source 10&quot;&gt;10&lt;/a&gt;&lt;/sup&gt; Sea stacks and arches stand as natural rock bodies with lobed outlines, where earlier they were smooth domed cylinders in rows.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-11&quot; id=&quot;ref-11&quot; aria-label=&quot;Source 11&quot;&gt;11&lt;/a&gt;&lt;/sup&gt; Marsh coasts grow branching tidal creeks inland from the sea, with mud along their beds and edges.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-12&quot; id=&quot;ref-12&quot; aria-label=&quot;Source 12&quot;&gt;12&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Mountains follow the land. Ranges now run along each landmass's spine, the line farthest from its coasts, and mountain forms stand at points along that spine, covering about 17% of land.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-13&quot; id=&quot;ref-13&quot; aria-label=&quot;Source 13&quot;&gt;13&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-14&quot; id=&quot;ref-14&quot; aria-label=&quot;Source 14&quot;&gt;14&lt;/a&gt;&lt;/sup&gt; Volcanoes appear where tectonics puts them, along rifts, arcs and hotspots, in any climate.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-15&quot; id=&quot;ref-15&quot; aria-label=&quot;Source 15&quot;&gt;15&lt;/a&gt;&lt;/sup&gt; Climate responds to height as well. Land more than 70 blocks above the sea cools by 0.2 C a block. Cold peaks take snow above a snowline near Y 158 in cool climates, Y 208 in mild ones, Y 258 in warm ones and Y 298 in hot ones.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-16&quot; id=&quot;ref-16&quot; aria-label=&quot;Source 16&quot;&gt;16&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-17&quot; id=&quot;ref-17&quot; aria-label=&quot;Source 17&quot;&gt;17&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The reasons are two standing rules. Riven follows real Earth geology and ecology at every level, and it places no wonders: no pillar forests, hoodoos or other spectacle forms, with arches and stacks kept as coast forms only.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-18&quot; id=&quot;ref-18&quot; aria-label=&quot;Source 18&quot;&gt;18&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-19&quot; id=&quot;ref-19&quot; aria-label=&quot;Source 19&quot;&gt;19&lt;/a&gt;&lt;/sup&gt; Mountains along spines and volcanoes from tectonics are both that rule applied to high ground.&lt;/p&gt;
&lt;h2 id=&quot;forests-rivers-and-ground-you-can-walk&quot;&gt;Forests, rivers and ground you can walk&lt;/h2&gt;
&lt;p&gt;Forests now differ in more than their species. Each kind of forest has a signature band of tree heights, and broadleaf trees grow in one of six forms (dome, veteran, ovoid, weeping, emergent, multi-stem) while conifers take crown shapes from spires to flat-topped pines.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-20&quot; id=&quot;ref-20&quot; aria-label=&quot;Source 20&quot;&gt;20&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-21&quot; id=&quot;ref-21&quot; aria-label=&quot;Source 21&quot;&gt;21&lt;/a&gt;&lt;/sup&gt; Stands open into groves and clearings, thin toward the treeline, and blend at their edges.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-22&quot; id=&quot;ref-22&quot; aria-label=&quot;Source 22&quot;&gt;22&lt;/a&gt;&lt;/sup&gt; Each species now grows where its temperature and moisture suit it, so oaks reach dry ground and tree ferns keep to the mountains.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-23&quot; id=&quot;ref-23&quot; aria-label=&quot;Source 23&quot;&gt;23&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Biomes gained variants: named countries inside a biome that change its trees, ground cover, boulders and soil without changing its terrain. The first three are Lichen Woodland, Tallgrass Prairie and Pine Barrens, in patches about 500 blocks across.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-24&quot; id=&quot;ref-24&quot; aria-label=&quot;Source 24&quot;&gt;24&lt;/a&gt;&lt;/sup&gt; A variant is used instead of a new biome whenever the grass color, weather and spawns can stay the same.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-25&quot; id=&quot;ref-25&quot; aria-label=&quot;Source 25&quot;&gt;25&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Rivers reach the sea the way rivers do. A river's level now grades toward the water it joins, rising no faster than 2% on a river and 12% on a stream, so mouths no longer drop into the sea over a step of up to six blocks. Mouths flare at the coast, channels run 2 to 14 blocks deep, and beds vary, with gravel on the riffles.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-26&quot; id=&quot;ref-26&quot; aria-label=&quot;Source 26&quot;&gt;26&lt;/a&gt;&lt;/sup&gt; Where a river's water steps down by a block, its top now carries flowing water, the state Minecraft itself settles on, so the step no longer pours the moment something touches it.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-27&quot; id=&quot;ref-27&quot; aria-label=&quot;Source 27&quot;&gt;27&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;High ground got a clearer order. Stable land now climbs a ladder of levels: plains and basins, then a new rolling downs band 30 to 70 blocks above the sea, then upland and tableland. Calm land in the upland band takes one of 15 new upland biomes, one per climate region, from Tundra Rise to Rainforest Slopes.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-28&quot; id=&quot;ref-28&quot; aria-label=&quot;Source 28&quot;&gt;28&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-29&quot; id=&quot;ref-29&quot; aria-label=&quot;Source 29&quot;&gt;29&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The last change is underfoot. Land outside the mountain ranges should be walkable without building, so no generated form on its own climbs more than about a block per block.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-30&quot; id=&quot;ref-30&quot; aria-label=&quot;Source 30&quot;&gt;30&lt;/a&gt;&lt;/sup&gt; A traversal check found that most walls of two blocks or more came from erosion gullies, pass forms and stream valleys, not from scarps alone, and those are now eased while mountain walls stay.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-31&quot; id=&quot;ref-31&quot; aria-label=&quot;Source 31&quot;&gt;31&lt;/a&gt;&lt;/sup&gt; Gentle soil slopes also lost their printed look: short relief breaks the contour lines into notches, islands and broken treads.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-32&quot; id=&quot;ref-32&quot; aria-label=&quot;Source 32&quot;&gt;32&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-33&quot; id=&quot;ref-33&quot; aria-label=&quot;Source 33&quot;&gt;33&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;one-stack-cleanroom-0-7-14-and-gtceu-reloaded&quot;&gt;One stack: Cleanroom 0.7.14 and GTCEu: Reloaded&lt;/h2&gt;
&lt;p&gt;The runtime moved from Cleanroom 0.7.9 to 0.7.14, because GTCEu: Reloaded and OrthLib both need 0.7.14 or later. GTCEu: Reloaded, our continuation of GTCEu, now replaces GregTech CE Unofficial as Riven's optional ore provider.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-34&quot; id=&quot;ref-34&quot; aria-label=&quot;Source 34&quot;&gt;34&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;GTCEu: Reloaded now ships under its own name, so the mod list, crash reports and jar name point reports to us rather than to GTCEu's maintainers. Its mod ID stays the same, and its version numbers sort after the GTCEu release they build on, so addons that name a version range still match.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-35&quot; id=&quot;ref-35&quot; aria-label=&quot;Source 35&quot;&gt;35&lt;/a&gt;&lt;/sup&gt; Pack makers should note one breaking change: recipe and content authoring moved from CraftTweaker to native Java and Groovy definitions, with the migration documented in the repository.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-36&quot; id=&quot;ref-36&quot; aria-label=&quot;Source 36&quot;&gt;36&lt;/a&gt;&lt;/sup&gt; It also draws terrain again under Demonica, where an inherited bloom hook had stopped Celeritas from building any terrain section.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-37&quot; id=&quot;ref-37&quot; aria-label=&quot;Source 37&quot;&gt;37&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;With GTCEu: Reloaded loaded, Riven registers 15 of its own minerals as GTCEu materials, from anglesite and cerussite to sperrylite and vanadinite, each with a composition from the mineral's formula and its own color.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-38&quot; id=&quot;ref-38&quot; aria-label=&quot;Source 38&quot;&gt;38&lt;/a&gt;&lt;/sup&gt; The same world also generates identically on every machine now: the generator's remaining floating-point functions use exact math, so content no longer depends on the CPU or Java build.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-39&quot; id=&quot;ref-39&quot; aria-label=&quot;Source 39&quot;&gt;39&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;where-to-read-more&quot;&gt;Where to read more&lt;/h2&gt;
&lt;p&gt;Cubature's work in this period gets texts of its own. One shows how a cubic world now reaches a player sooner, a guide covers the cube source that client-side renderers read, and a third looks at the distant view and shader packs so far.&lt;/p&gt;
&lt;h2&gt;Sources&lt;/h2&gt;&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/4b95cc341daee8dd2d09e5d952327bc7a4d1b801&quot;&gt;&lt;code&gt;Riven 4b95cc3&lt;/code&gt; Drop Biomes O' Plenty's pin: no instance or CI run installs it&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/f024283871ce22accd293f1eff9598cdce76fb31&quot;&gt;&lt;code&gt;Riven f024283&lt;/code&gt; Remove Biomes O' Plenty from Riven's code&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/cde19ebaecb73b9459c79aad61bca68d05f0f496&quot;&gt;&lt;code&gt;Riven cde19eb&lt;/code&gt; Choose soils by climate: loam, silt, sandy loam, peat, podzol, mud, red sand&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/f5600b760cc87a89df0e011611852b165cc75547&quot;&gt;&lt;code&gt;Riven f5600b7&lt;/code&gt; Grow waterweeds, kelp beds and reefs under Riven's waters&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/ce11a18ef30869da1bda20d0c38e42c0b5b3316a&quot;&gt;&lt;code&gt;Riven ce11a18&lt;/code&gt; Replace BoP cave fungi with Riven's ink caps, pale cave mushrooms and glowing mushrooms&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/9a062404fa7a04f368fa8c749f8590159f00e9a1&quot;&gt;&lt;code&gt;Riven 9a06240&lt;/code&gt; Run no BoP generator; ground cover places cactus and pumpkins&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/48de63def73f841402bbba93669b463f0febd7a9&quot;&gt;&lt;code&gt;Riven 48de63d&lt;/code&gt; owns population: a chunk's first animals&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: Full worldgen ownership&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/4e0cc2f007f3e6722d08493783a4620eb08db832&quot;&gt;&lt;code&gt;Riven 4e0cc2f&lt;/code&gt; terrain-v125: landmass shape, fjords, island tier, coast-style shelves and coast types&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/60dd71521f187ec6a8427c1c2466d0fc58d889dc&quot;&gt;&lt;code&gt;Riven 60dd715&lt;/code&gt; Shape coasts by segment bands&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/85659d99fff3dd96d953140bed610b9b210a0b1a&quot;&gt;&lt;code&gt;Riven 85659d9&lt;/code&gt; Shape stacks and arches as natural bodies&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/cc2988618bffe1d384f4170a99705578ec5f9822&quot;&gt;&lt;code&gt;Riven cc29886&lt;/code&gt; Grow tidal creeks and mud on marsh coasts&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/c2aa69355f03632609317621d7b6b58dae97b70b&quot;&gt;&lt;code&gt;Riven c2aa693&lt;/code&gt; terrain-v127: continent spines and drainage lakes&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/7e31edb9ce48cfc9fb35d039d3e7e2490bc42647&quot;&gt;&lt;code&gt;Riven 7e31edb&lt;/code&gt; terrain-v130: mountains on spines, tectonic volcanoes, legacy sites retire&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: Volcanoes&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/f5ef8ed57adc7fd62fc785093e2bf4bc9486ceb8&quot;&gt;&lt;code&gt;Riven f5ef8ed&lt;/code&gt; Cool high ground by a lapse rate&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/4814ba462e084e7c7c89c0b772b9d03339472d61&quot;&gt;&lt;code&gt;Riven 4814ba4&lt;/code&gt; Cover cold peaks with snow above a snowline&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: Real science at every level&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: No wonders&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/26440e03c9f59c01667a9a76f8b76b0ee634e7e3&quot;&gt;&lt;code&gt;Riven 26440e0&lt;/code&gt; terrain-v135: forest signatures&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/612f26f6bb0e293047c0699aa91f7dd7da76e3d8&quot;&gt;&lt;code&gt;Riven 612f26f&lt;/code&gt; terrain-v136: tree growth forms&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/6e6816839ee150124703e71d070a5fc25e6d9a42&quot;&gt;&lt;code&gt;Riven 6e68168&lt;/code&gt; terrain-v137: stand structure&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/fbb4372539a08bfd51cc2f5563af5578d1c048e9&quot;&gt;&lt;code&gt;Riven fbb4372&lt;/code&gt; terrain-v138: species niches&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/16bfd2ee922db0134a3710bdff34cf1f6b4d3168&quot;&gt;&lt;code&gt;Riven 16bfd2e&lt;/code&gt; terrain-v134: biome variants&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: Biome variants&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/f7d468176e133d51764d5192d4b813d9bb59f5b9&quot;&gt;&lt;code&gt;Riven f7d4681&lt;/code&gt; terrain-v140: graded rivers, flared mouths, deeper channels, varied beds&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/aefdc1382560198a77bec7dc33d13be84854e3a9&quot;&gt;&lt;code&gt;Riven aefdc13&lt;/code&gt; terrain-v141: flowing water at river steps&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/f60775e4b47c5609a34112f5acffb89b2e8ce234&quot;&gt;&lt;code&gt;Riven f60775e&lt;/code&gt; terrain-v142: elevation ladder with ordered levels and downs&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/ad107ee72dce3559702c9a8707766b98ada195c6&quot;&gt;&lt;code&gt;Riven ad107ee&lt;/code&gt; terrain-v145: upland biome band between lowland and highland&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: Traversal&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/0d4960fc8e2cb114859cb8994b908b90a2c172a6&quot;&gt;&lt;code&gt;Riven 0d4960f&lt;/code&gt; Ease the slopes walkers meet most (terrain-v146 Ledges)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/b9be187b64c7704b07c56a9788b6ed994816939a&quot;&gt;&lt;code&gt;Riven b9be187&lt;/code&gt; Jitter soil contours and hold route banks (terrain-v147)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/de28fc9557028c57d7fce965795394270427737d&quot;&gt;&lt;code&gt;Riven de28fc9&lt;/code&gt; Break printed soil contours with micro-relief (terrain-v148)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/c07260bced6bc4a68e0556ffe6ca753d76d90278&quot;&gt;&lt;code&gt;Riven c07260b&lt;/code&gt; Move the runtime to Cleanroom 0.7.14 with GTCEu: Reloaded and OrthLib&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/GTCEu-Reloaded/commit/a5d6122284203a454197f21f1ade0e521c624be2&quot;&gt;&lt;code&gt;GTCEu-Reloaded a5d6122&lt;/code&gt; Ship under the GTCEu: Reloaded name instead of upstream's&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/GTCEu-Reloaded/commit/b01447cae11d5be1d50d9902e624a9594bd67683&quot;&gt;&lt;code&gt;GTCEu-Reloaded b01447c&lt;/code&gt; Replace CraftTweaker authoring with native Java and Groovy definitions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/GTCEu-Reloaded/commit/58e4e76faaecacdac7678fae2095886d1e336692&quot;&gt;&lt;code&gt;GTCEu-Reloaded 58e4e76&lt;/code&gt; Skip the bloom pass under Celeritas and Demonica&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/f1f3db6c573871cbaf3dd891fddcf3fe2d16bc1d&quot;&gt;&lt;code&gt;Riven f1f3db6&lt;/code&gt; Register Riven's own GTCEu materials in a riven registry&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/7e2b3fbe85bdba74ea19eb615f03cfb3c8d7a703&quot;&gt;&lt;code&gt;Riven 7e2b3fb&lt;/code&gt; terrain-v139: exact math&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;</content>
  </entry>
  <entry>
    <title>The distant view and shading so far</title>
    <link href="https://orthrus.cc/texts/the-distant-view-and-shading-so-far"/>
    <id>https://orthrus.cc/texts/the-distant-view-and-shading-so-far</id>
    <updated>2026-11-17T00:00:00Z</updated>
    <category term="research"/>
    <summary>How Riven's worlds draw land beyond the loaded cubes with Distant Horizons, how the distant view is kept from competing with the near one, and how shader packs shade both.</summary>
    <content type="html" xml:base="https://orthrus.cc/texts/the-distant-view-and-shading-so-far">&lt;p&gt;A cubic world loads only the cubes near a player, so everything past that box has to come from somewhere else. In Riven's worlds it comes from Distant Horizons, which draws levels of detail (LODs): coarse stand-ins for distant terrain, built from a preview that describes each column without generating it. This text records how that distant view is now fed, how it is kept from slowing the ground at a player's feet, and how shader packs shade both views.&lt;/p&gt;
&lt;h2 id=&quot;two-views-of-one-world&quot;&gt;Two views of one world&lt;/h2&gt;
&lt;p&gt;The distant view and the near view describe the same world. Riven owns every placement in its worlds so that the Distant Horizons preview draws the same models as the native cubes, boulders, trees and ground cover included.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; Distant Horizons 3.3.3 is the long-term base, and Cubature takes ownership of its generation, scheduling and delivery: its own code where Distant Horizons' API allows, and patches under Distant Horizons' LGPL-3.0 license otherwise.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-2&quot; id=&quot;ref-2&quot; aria-label=&quot;Source 2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The two views compete for the same machine. Every distant tile is sampled on the server, and the cubes a player stands among are generated there too, so the order between them decides what a player sees first.&lt;/p&gt;
&lt;h2 id=&quot;near-ground-first&quot;&gt;Near ground first&lt;/h2&gt;
&lt;p&gt;The first rule is that near ground comes first. A player's native view is the box of loaded cubes around them. While more than one face of it still waits to generate or be sent, as after a join or a teleport, no new preview tile starts; tiles already running finish.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-3&quot; id=&quot;ref-3&quot; aria-label=&quot;Source 3&quot;&gt;3&lt;/a&gt;&lt;/sup&gt; Preview tiles also run on a bounded pool of their own, a quarter of the processors by default, between one and eight threads, in place of Distant Horizons' own executor. A governor halves that pool's permits when the 95th-percentile server tick reaches 45 ms and tiles ran.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-4&quot; id=&quot;ref-4&quot; aria-label=&quot;Source 4&quot;&gt;4&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Riven keeps the two kinds of work apart on its side as well. A distant tile can start large regional builds that native generation will need much later, and on a shared pool those builds held threads needed by native generation's own builds. Preview columns now build alone on their own thread, and native generation keeps the shared pool.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-5&quot; id=&quot;ref-5&quot; aria-label=&quot;Source 5&quot;&gt;5&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Smaller costs went too. Each preview tile wrote about 20,000 data points through a shared lookup of Distant Horizons' block-state wrapper, which held 460 of 17,568 preview-thread samples in a profile of one flight. Each tile now keeps its own map, and the data Distant Horizons receives is identical.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-6&quot; id=&quot;ref-6&quot; aria-label=&quot;Source 6&quot;&gt;6&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;asking-in-the-order-the-player-arrives&quot;&gt;Asking in the order the player arrives&lt;/h2&gt;
&lt;p&gt;Distant Horizons asks for sections of distant terrain nearest first, which suits a player standing still and fails one in flight. Cubature's arrival plan, on by default, asks for sections by when the player will reach them instead, at an on-time level of detail that starts at 4-block cells. Sections the native view already covers, or will cover before their data could arrive, are held back, and the server starts the waiting tile whose request came first.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-7&quot; id=&quot;ref-7&quot; aria-label=&quot;Source 7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The plan was measured on a fixed land route. At 16 blocks a second, the share of 1-block tiles that landed inside the native view, wasted work, fell from 42% to 5%. At 34 blocks a second, terrain stood ahead in every flight screenshot where Distant Horizons' own order left none in the last third, and 1-block waste fell from 45% to 17%.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-7&quot; id=&quot;ref-7&quot; aria-label=&quot;Source 7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Three rules refine when detail is spent. When a player stops, the plan recovers fine detail again: before, a player at rest after a flight saw 16-block placeholder cells immediately beyond the native view, because finer sections waited behind every coarser one.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-8&quot; id=&quot;ref-8&quot; aria-label=&quot;Source 8&quot;&gt;8&lt;/a&gt;&lt;/sup&gt; The 1-block ring around the native view gets priority only while the server can afford it, since ranking it first in flight starved the middle distances.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-9&quot; id=&quot;ref-9&quot; aria-label=&quot;Source 9&quot;&gt;9&lt;/a&gt;&lt;/sup&gt; At a join and after a teleport, coverage comes first.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-10&quot; id=&quot;ref-10&quot; aria-label=&quot;Source 10&quot;&gt;10&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The last rule follows the shape of a cubic view. The native view is a box, not a column: from Y 320 with a 12-cube view it reaches down only to Y 128, and ground lower than that was never asked of the server. Sections the native view covers are now held back only where that view shows their ground.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-11&quot; id=&quot;ref-11&quot; aria-label=&quot;Source 11&quot;&gt;11&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;keeping-detail-once-it-is-built&quot;&gt;Keeping detail once it is built&lt;/h2&gt;
&lt;p&gt;Distant Horizons merges an incoming column into its store when the new data is at least as complete as the old. Preview tiles report the same completeness at every level of detail, so a coarse answer could replace columns that Distant Horizons had built from full-detail tiles, and land already shown in detail turned coarse again. Cubature now keeps those columns against coarse answers.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-12&quot; id=&quot;ref-12&quot; aria-label=&quot;Source 12&quot;&gt;12&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;A pregenerated world keeps its distant data too. The server normally hands Distant Horizons at most two changed columns a tick, and a pregenerator unloads its columns long before that feed reaches them. A pregenerator can now hand a column to Distant Horizons at once.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-13&quot; id=&quot;ref-13&quot; aria-label=&quot;Source 13&quot;&gt;13&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;shading-both-views&quot;&gt;Shading both views&lt;/h2&gt;
&lt;p&gt;Riven targets three shader packs under Demonica, each pinned by hash to an official release: BSL 10.1.8, Complementary Reimagined r5.9.3 and Complementary Unbound r5.9.3. A pack qualifies only if its pinned release lists Minecraft 1.12.2 and carries Distant Horizons programs, so the same pack shades near and distant terrain. Pack files are never committed or redistributed.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-14&quot; id=&quot;ref-14&quot; aria-label=&quot;Source 14&quot;&gt;14&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Each pack was checked on a fixed tour of six views: coast and high horizons, a woodland, a chasm at Y -60, and a night horizon with lights. Every pack captured all six views without a shader compile error, drew the far islands and water in its own fog and color, and held the 120 fps cap except on the woodland canopy and BSL's first view.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-15&quot; id=&quot;ref-15&quot; aria-label=&quot;Source 15&quot;&gt;15&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;A cubic world needed a few adjustments for packs written for flat ones. Demonica reports the world's bottom as Y 0, and BSL fades sky, fog, clouds and sun within six blocks below it. Cubature reports the cubic world's real floor instead, and a camera in a chasm at Y -60 now sees the sky. Riven's cloud base sits at Y 256, which both vanilla clouds and the packs read. For BSL, the &lt;code&gt;/riven shaderprops&lt;/code&gt; command writes a local copy of the active pack that maps Riven's blocks and biomes to the vanilla entries they behave like, so Riven's plants wave and its glowing rocks glow along their streaks.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-15&quot; id=&quot;ref-15&quot; aria-label=&quot;Source 15&quot;&gt;15&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;One fix waits on permission. Complementary sets its cave fog by depth below a fixed Y 61.9, so Riven's caves above sea level get none. Cubature carries an opt-in patch that measures depth below the camera's own column surface instead. In a dripstone cave above sea level it gives the fog the pack intends, halving the far contrast (a standard deviation of 15.5 to 8.0), and the six surface views are unchanged. Complementary's license allows no modified copy, so nothing distributed enables the patch until its authors permit it.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-14&quot; id=&quot;ref-14&quot; aria-label=&quot;Source 14&quot;&gt;14&lt;/a&gt;&lt;/sup&gt;&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-15&quot; id=&quot;ref-15&quot; aria-label=&quot;Source 15&quot;&gt;15&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;a-fix-for-gtceu-reloaded-under-demonica&quot;&gt;A fix for GTCEu: Reloaded under Demonica&lt;/h2&gt;
&lt;p&gt;With Demonica installed, GTCEu: Reloaded stopped the world from drawing at all: Celeritas never built a terrain section. The cause was GTCEu's bloom hook, inherited from upstream, which wrapped the same rendering call that Demonica redirects. GTCEu: Reloaded now skips that hook when Celeritas or Demonica is present, since Celeritas already draws the bloom layer in its own passes.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-16&quot; id=&quot;ref-16&quot; aria-label=&quot;Source 16&quot;&gt;16&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;open-questions&quot;&gt;Open questions&lt;/h2&gt;
&lt;p&gt;Two questions remain on the record. With the arrival plan at 34 blocks a second, more native cubes were not ready in time than without it, 1,126 against 615, and the cause is not yet known.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-7&quot; id=&quot;ref-7&quot; aria-label=&quot;Source 7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt; Client rendering as a whole is not yet qualified on the current Cubature build.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-17&quot; id=&quot;ref-17&quot; aria-label=&quot;Source 17&quot;&gt;17&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2&gt;Sources&lt;/h2&gt;&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: Full worldgen ownership&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: Own the Distant Horizons pipeline&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/ad21203dbf76a6e0f490b99064e788b05e1cffeb&quot;&gt;&lt;code&gt;Cubature ad21203&lt;/code&gt; Hold Distant Horizons previews while the native view is behind&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/b5e2ecd9b155ec7e7307c5c4a4cc1c5b8951624e&quot;&gt;&lt;code&gt;Cubature b5e2ecd&lt;/code&gt; Sample previews on Cubature's own pool, paced by the tick's tail&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/bbfe137862b417823a7262cb921b3b33fbf200f6&quot;&gt;&lt;code&gt;Riven bbfe137&lt;/code&gt; Keep the build pool for native generation: previews build alone&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/c9db89f0cf3ab18bbb0eb5acae8ed66e821c576e&quot;&gt;&lt;code&gt;Cubature c9db89f&lt;/code&gt; Cache DH's block-state wrapper per preview tile&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/5e134f4e41563ba0fe57698bca718e8430a4779d&quot;&gt;&lt;code&gt;Cubature 5e134f4&lt;/code&gt; Ask for Distant Horizons sections in the order the player reaches them&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/dc756593bc8ec1f62c86efea24e06821204b7ab5&quot;&gt;&lt;code&gt;Cubature dc75659&lt;/code&gt; Recover LOD detail at rest and request the 1-block ring on time&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/18b01d2d9385eca58f3dff1c314d1d4950060505&quot;&gt;&lt;code&gt;Cubature 18b01d2&lt;/code&gt; Give the 1-block ring priority only while the server can afford it&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/90715a3cd0edcac5a3a28e9f8ac3dc59ba7772e5&quot;&gt;&lt;code&gt;Cubature 90715a3&lt;/code&gt; Keep coverage first at a join and after a teleport&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/6db2f82c8dc17ada1e97fe57701f5fd3ed5d5305&quot;&gt;&lt;code&gt;Cubature 6db2f82&lt;/code&gt; Hold a covered section only where the native view shows its ground&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/5daeb1344f45246d4106617af2eac4931f985ea2&quot;&gt;&lt;code&gt;Cubature 5daeb13&lt;/code&gt; Keep LOD columns DH built from finer data against coarse answers&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/e3782418d6c33e258030870b756068751a3c579e&quot;&gt;&lt;code&gt;Cubature e378241&lt;/code&gt; Let a pregenerator hand a column to Distant Horizons at once&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: Shader packs&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/docs/RUNTIME.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Runtime: shader packs&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/GTCEu-Reloaded/commit/58e4e76faaecacdac7678fae2095886d1e336692&quot;&gt;&lt;code&gt;GTCEu-Reloaded 58e4e76&lt;/code&gt; Skip the bloom pass under Celeritas and Demonica&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/dd14808841bea375787e50ee7930fe67126090a8/dev/cc.lock.json&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Cubature lock: qualification limits&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;</content>
  </entry>
  <entry>
    <title>Same seed, any order: how Orthrus Research builds tall worlds that stay fast</title>
    <link href="https://orthrus.cc/texts/same-seed-any-order"/>
    <id>https://orthrus.cc/texts/same-seed-any-order</id>
    <updated>2026-11-05T00:00:00Z</updated>
    <category term="guide"/>
    <summary>A Riven world depends only on its seed. That one rule lets our engine work fast without changing the world, so every player gets the same one. This is how the pieces fit, what the rule cost, and how we check it.</summary>
    <content type="html" xml:base="https://orthrus.cc/texts/same-seed-any-order">&lt;p&gt;A Riven world depends only on its seed. It doesn't depend on which cube loads first, how many
threads the server runs, or what the server happens to have cached. Ask for the same place in any
order, on any machine, and you get the same blocks.&lt;/p&gt;
&lt;p&gt;We're Orthrus Research, and that rule sits underneath everything we build for Minecraft 1.12.2.
Riven, our terrain generator, makes the promise. Cubature, our cubic world engine, depends on it to
build the world in parallel and ahead of the players. Distant Horizons depends on it to draw a
horizon that matches the ground. This guide explains how those pieces fit together, why we chose
the rule, what it has cost us, and how we check that it holds. Each part has a longer text of its
own, linked as we go. To see why the rule matters, start with how big these worlds are.&lt;/p&gt;
&lt;h2 id=&quot;tall-worlds-built-in-cubes&quot;&gt;Tall worlds, built in cubes&lt;/h2&gt;
&lt;p&gt;A Riven world runs from &lt;span class=&quot;nw&quot;&gt;Y-1664&lt;/span&gt; up to &lt;span class=&quot;nw&quot;&gt;Y383,&lt;/span&gt; eight times the height of a vanilla world.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;
The surface and its crust come first, down to &lt;span class=&quot;nw&quot;&gt;Y-512&lt;/span&gt;. Below that lies the Beneath, and below the
Beneath a realm with a Nether's heat and rock, reaching the world's floor at &lt;span class=&quot;nw&quot;&gt;Y-1664&lt;/span&gt;. There are no
barrier layers between them: you can, in principle, dig from a beach to the bottom of the
world.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-2&quot; id=&quot;ref-2&quot; aria-label=&quot;Source 2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Vanilla Minecraft can't hold a world like that. It loads, saves and lights the world one chunk at
a time, and a chunk is a whole column, 16 blocks square and as tall as the world. At Riven's
height, every column would be 2,048 blocks tall, most of it far from anyone. Cubature, our fork
of &lt;a href=&quot;https://github.com/OpenCubicChunks/CubicChunks&quot;&gt;CubicChunks&lt;/a&gt;, cuts the world into 16-block
cubes instead and loads only the cubes near players. Our earlier text
&lt;a href=&quot;/texts/cubes-and-columns&quot;&gt;Cubes and columns&lt;/a&gt; covers what that changes for code that reads and
writes blocks.&lt;/p&gt;
&lt;figure&gt;&lt;figcaption&gt;Figure 1. A block of world cut into cubes, with one lifted out of its slot: what a Cubature cube is, next to the world it belongs to.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Four projects share the work, and each owns one thing. Riven decides what is in the world: every
block, every biome, every cave. Cubature decides when each cube is generated, lit, saved and sent
to players. Distant Horizons draws the terrain beyond your render distance, and it stays the
official release, byte for byte. Cleanroom, the modern loader underneath, runs all of it
unchanged.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-3&quot; id=&quot;ref-3&quot; aria-label=&quot;Source 3&quot;&gt;3&lt;/a&gt;&lt;/sup&gt; We drew those lines early. When something goes wrong, the line usually
tells us which project to open. Riven sits at the top of that stack, and it makes one promise.&lt;/p&gt;
&lt;h2 id=&quot;the-rule-same-seed-any-order&quot;&gt;The rule: same seed, any order&lt;/h2&gt;
&lt;p&gt;Everything Riven places is a pure function of three things: the world's seed, the definitions the
world was created with, and its layout scale.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-4&quot; id=&quot;ref-4&quot; aria-label=&quot;Source 4&quot;&gt;4&lt;/a&gt;&lt;/sup&gt; A pure function always gives the same
answer for the same inputs, and nothing else feeds in. Request order, thread count, cache state
and what the cache threw away must not change any result.&lt;/p&gt;
&lt;p&gt;The seed part is easy; every Minecraft generator is seeded. The hard part is &quot;any order&quot;. A server
never builds a world tidily from one corner outward. It builds where players stand, where they're
heading, and, with Distant Horizons, everywhere they can see. Two players walking toward each other
from opposite ends of a continent ask for its rivers from opposite sides. If the answer could
depend on who asked first, we'd have to generate the whole world in one fixed order on one thread.&lt;/p&gt;
&lt;p&gt;So we treat a Riven world as a map rather than a diary. A diary records what happened in the
order it happened. A map has every point already decided, and visiting one doesn't change another.
Riven keeps no order-dependent state and starts no threads of its own.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-5&quot; id=&quot;ref-5&quot; aria-label=&quot;Source 5&quot;&gt;5&lt;/a&gt;&lt;/sup&gt; Its caches
follow the same rule. When one throws an entry away and rebuilds it later, the rebuilt entry
equals the old one, and code compares entries by what they describe, never by which copy it
holds.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-4&quot; id=&quot;ref-4&quot; aria-label=&quot;Source 4&quot;&gt;4&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;We don't take this on faith. Before any change reaches our repositories, a check renders our
reference worlds twice: once in order, and once in reverse on a different number of threads. It
compares a fingerprint (a SHA-256 digest) of every layer and every feature decision. One differing
decision anywhere, and the push is refused.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-5&quot; id=&quot;ref-5&quot; aria-label=&quot;Source 5&quot;&gt;5&lt;/a&gt;&lt;/sup&gt; A change that is meant to alter terrain
updates those fingerprints in the same commit and says why.&lt;/p&gt;
&lt;p&gt;Once the world can't tell what order you asked in, the engine can ask in any order it likes.&lt;/p&gt;
&lt;h2 id=&quot;what-the-rule-lets-us-do&quot;&gt;What the rule lets us do&lt;/h2&gt;
&lt;p&gt;The rule pays off three ways, one for each kind of work Cubature takes on for the world. Underneath
all three is the one rule we hold Cubature to: &lt;strong&gt;timing, never content&lt;/strong&gt;. Cubature may change when
a cube is ready. It never changes what the cube contains.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;In parallel.&lt;/strong&gt; A world generator that is a pure function of seed and position can tell Cubature
so. Cubature then generates its cubes on a small pool of worker threads, away from the server
thread. The server thread installs the finished cubes within a fixed budget each tick, so a burst
of new ground can't stall the game.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-6&quot; id=&quot;ref-6&quot; aria-label=&quot;Source 6&quot;&gt;6&lt;/a&gt;&lt;/sup&gt; Riven's own heavy work, such as tracing a
continent's drainage from its headwaters to the sea, runs on a second bounded pool that Cubature
lends it for each world.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-7&quot; id=&quot;ref-7&quot; aria-label=&quot;Source 7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Ahead of you.&lt;/strong&gt; Because a region's plans don't depend on who asks for them, Cubature can prepare
them before anyone arrives: the drainage, the coastline and the sediment of the regions a player
will reach soonest.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-8&quot; id=&quot;ref-8&quot; aria-label=&quot;Source 8&quot;&gt;8&lt;/a&gt;&lt;/sup&gt; When a player teleports into ground that doesn't exist yet, Cubature
holds them where they are for a moment while the workers build it, then lets them arrive.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-9&quot; id=&quot;ref-9&quot; aria-label=&quot;Source 9&quot;&gt;9&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Out to the horizon.&lt;/strong&gt; Distant Horizons draws far terrain as coarse tiles. In a Riven world,
Cubature samples those tiles itself, and we call them previews. They come from the same terrain
model and the same column engine that build the cubes under your feet, sampled at the tile's
resolution.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-10&quot; id=&quot;ref-10&quot; aria-label=&quot;Source 10&quot;&gt;10&lt;/a&gt;&lt;/sup&gt; The horizon is a lower-resolution photograph of the place you're walking
toward, not a painting of somewhere like it.&lt;/p&gt;
&lt;figure&gt;&lt;figcaption&gt;Figure 2. A plan of the world around a player. Close to the player are Cubature's cubes. Beyond them, Distant Horizons draws coarser and coarser squares from the same Riven terrain. Not to scale.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;A photograph at lower resolution loses detail. Distant Horizons builds each coarse cell from four
finer ones and keeps the tallest block it finds, so a single tree can lift a distant cell above the
ground around it. Heights are otherwise close: when a medium-distance tile arrives, its ground is
within 3 blocks of the real thing in 95% of cells.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-11&quot; id=&quot;ref-11&quot; aria-label=&quot;Source 11&quot;&gt;11&lt;/a&gt;&lt;/sup&gt; We've measured the merge's effect and
planned a fix; it isn't built yet.&lt;/p&gt;
&lt;p&gt;That last payoff didn't come for free. The first time we measured it, the horizon cost us the
ground.&lt;/p&gt;
&lt;h2 id=&quot;a-worked-example-the-horizon-cost-us-the-ground&quot;&gt;A worked example: the horizon cost us the ground&lt;/h2&gt;
&lt;p&gt;When we first measured previews in a Riven world, on October 30, the distant view made the near
one worse. We use a fixed test. A server and a client run on our workstation, a fresh world is
created, and a player joins and flies a set route for 60 seconds at 16 blocks a second. With
previews on, the player's native view (the 15,625 cubes Cubature loads around them at a view
distance of 12) took 21% longer to fill at join. During the flight the server's median tick
tripled. Between 46% and 57% of the most detailed previews arrived after the player had already
flown into the area they covered, where Cubature's own cubes take over.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-11&quot; id=&quot;ref-11&quot; aria-label=&quot;Source 11&quot;&gt;11&lt;/a&gt;&lt;/sup&gt; That's wasted work,
and the most expensive kind.&lt;/p&gt;
&lt;p&gt;The obvious suspect was the preview sampler, and it wasn't guilty. Once an area's plans existed,
a coarse preview column cost a fraction of a millisecond. The first tile into a new area, though,
took 11.8 seconds, of which only 2.6 seconds was work. The rest was waiting for that continent's
drainage network, the plan of where its rivers run. That plan was being built on Java's shared
thread pool, and every other task that needed it parked and waited. Over the run, threads spent
972 seconds parked on those plans, and the pool grew to 63 threads to replace the ones stuck
waiting.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-11&quot; id=&quot;ref-11&quot; aria-label=&quot;Source 11&quot;&gt;11&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;We fixed it in the order the evidence pointed:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Plans before the scan.&lt;/strong&gt; Riven now builds a continent's river plans before the scan that
reads them, so no task waits on another's plan. In an offline test with 12 scattered players,
time spent waiting fell from 305 seconds to 12.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-12&quot; id=&quot;ref-12&quot; aria-label=&quot;Source 12&quot;&gt;12&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A bounded pool of our own.&lt;/strong&gt; Riven's parallel work moved off Java's shared pool onto the pool
Cubature lends each world, sized from the machine's core count.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-7&quot; id=&quot;ref-7&quot; aria-label=&quot;Source 7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Native view first.&lt;/strong&gt; Cubature now starts no preview while more than one face of the native
view (625 cubes at distance 12) is still waiting to be built or sent.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-13&quot; id=&quot;ref-13&quot; aria-label=&quot;Source 13&quot;&gt;13&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The third fix taught us something about tall worlds. A cubic view is a box around the player. At
the join point of our test world, a player arriving at &lt;span class=&quot;nw&quot;&gt;Y320&lt;/span&gt; has a view from &lt;span class=&quot;nw&quot;&gt;Y128&lt;/span&gt; to &lt;span class=&quot;nw&quot;&gt;Y528,&lt;/span&gt; over
ground at &lt;span class=&quot;nw&quot;&gt;Y77&lt;/span&gt; to &lt;span class=&quot;nw&quot;&gt;Y121&lt;/span&gt;. The box holds nothing but sky. &quot;Wait for the native view&quot; meant &quot;draw no
horizon&quot;, and for about 16 seconds the player looked down into a pit. The rule now waits only for a
view that can show its ground.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-14&quot; id=&quot;ref-14&quot; aria-label=&quot;Source 14&quot;&gt;14&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;None of these fixes changed a block. Each one changed when work happened, the fingerprints held,
and so we could make them quickly and without second-guessing the world. The work isn't finished:
with previews running, each tile in flight still adds about 4 milliseconds to the server's tick,
and the next steps in our delivery plan aim at that.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-11&quot; id=&quot;ref-11&quot; aria-label=&quot;Source 11&quot;&gt;11&lt;/a&gt;&lt;/sup&gt; The rule itself had a price too.&lt;/p&gt;
&lt;h2 id=&quot;what-it-cost-us&quot;&gt;What it cost us&lt;/h2&gt;
&lt;p&gt;The first cost is that every terrain version needs a fresh world. Changing a definition, the order
in which stages run, or even how ties are broken changes what a seed produces, so no version yet
promises compatibility with existing worlds.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; Riven is at terrain-v132 as we write.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-15&quot; id=&quot;ref-15&quot; aria-label=&quot;Source 15&quot;&gt;15&lt;/a&gt;&lt;/sup&gt;
That is the price of a research preview, and it's why there are no releases yet.&lt;/p&gt;
&lt;p&gt;The second cost is the wider worldgen ecosystem. Riven decides every block in its worlds, and no
other mod's world generator runs there.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; A generator that places its own trees or ores
after Riven would make the distant view wrong, since Distant Horizons can only draw what one model
decides. Packs bind Riven's materials to their own blocks through mapping layers instead, resolved
once when a world is created.&lt;/p&gt;
&lt;p&gt;The third cost is features we liked. We removed Biomes O' Plenty's generators and soils and grew
Riven's own plants, trees and creatures in their place.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-16&quot; id=&quot;ref-16&quot; aria-label=&quot;Source 16&quot;&gt;16&lt;/a&gt;&lt;/sup&gt; We also removed a set of &quot;wonders&quot;,
such as pillar forests, hoodoos and tower karst, because they didn't fit the world we wanted and
complicated everything around them.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-17&quot; id=&quot;ref-17&quot; aria-label=&quot;Source 17&quot;&gt;17&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Finally, we carry no compatibility code. When we decide a stage was wrong, we change it rather
than keep the old one alive beside the new, and the world changes with it. We'd rather hand you a
fresh world that's right than an old one we've decided was wrong.&lt;/p&gt;
&lt;p&gt;A rule is only as good as the checking behind it.&lt;/p&gt;
&lt;h2 id=&quot;how-we-hold-ourselves-to-it&quot;&gt;How we hold ourselves to it&lt;/h2&gt;
&lt;p&gt;We try to make every claim about speed a measurement. Our captures run a real Minecraft server and
client on a fixed route, from a fresh world on the same seed, at least twice per condition, and
record every tick, frame and cube delivery.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-18&quot; id=&quot;ref-18&quot; aria-label=&quot;Source 18&quot;&gt;18&lt;/a&gt;&lt;/sup&gt; When we say a change helped, there is a
capture before it and a capture after it.&lt;/p&gt;
&lt;p&gt;We're also careful about where we measure. Our captures run on one workstation with 24 cores. Our
designs assume the median player has 8, and every pool and budget is sized from the machine's
core count with that in mind.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-19&quot; id=&quot;ref-19&quot; aria-label=&quot;Source 19&quot;&gt;19&lt;/a&gt;&lt;/sup&gt; That's a design target, not a result: we haven't yet
measured an 8-core machine, and we won't claim numbers we don't have.&lt;/p&gt;
&lt;p&gt;We build with AI coding assistants, mainly Claude Code and Codex, and the same checks apply to
everything whoever drafted it. An assistant's output is a draft until one of us has read it,
understood it and accepted it.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-20&quot; id=&quot;ref-20&quot; aria-label=&quot;Source 20&quot;&gt;20&lt;/a&gt;&lt;/sup&gt; Our pre-push hook refuses a push without a passing local check
of formatting, tests, both projects' builds and the twice-rendered fingerprints. A terrain change
carries its new fingerprints and a reason. Our decision log holds only what's true today:
when a decision changes, we rewrite it in the same commit, and the history stays in git.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-21&quot; id=&quot;ref-21&quot; aria-label=&quot;Source 21&quot;&gt;21&lt;/a&gt;&lt;/sup&gt;
None of that cares who typed the change. The same habits run through the projects around Riven.&lt;/p&gt;
&lt;h2 id=&quot;the-stack-around-it&quot;&gt;The stack around it&lt;/h2&gt;
&lt;p&gt;Distant Horizons is the official release, and we keep its JAR exactly as published. Cubature
changes how some of its classes behave at runtime, to put the native view first and to ask for
distant tiles in the order the player reaches them.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-22&quot; id=&quot;ref-22&quot; aria-label=&quot;Source 22&quot;&gt;22&lt;/a&gt;&lt;/sup&gt; An unchanged file isn't an unchanged
program, so we treat those patches as what they are: changes to Distant Horizons' code, under its
own license, with their source published alongside ours.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-3&quot; id=&quot;ref-3&quot; aria-label=&quot;Source 3&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;GTCEu: Reloaded is our continuation of &lt;a href=&quot;https://github.com/GregTechCEu/GregTech&quot;&gt;GregTech CE Unofficial&lt;/a&gt;
for 1.12.2, keeping its machines and progression and bringing back a selection of features from
its modern versions.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-23&quot; id=&quot;ref-23&quot; aria-label=&quot;Source 23&quot;&gt;23&lt;/a&gt;&lt;/sup&gt; Riven reads GregTech's overworld ore veins as a catalog and places
them with its own geology, so a vein sits in the rock that would hold it. GregTech's own world
generator never runs. Riven is designed for GTCEu: Reloaded; so far we've checked the ore names
against the upstream GTCEu release.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-24&quot; id=&quot;ref-24&quot; aria-label=&quot;Source 24&quot;&gt;24&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Riven's blocks get their look from Riven Resources and Asset Factory, our art projects. Riven asks
for a set of textures and a team of AI authors draws it. Every set is checked pixel by pixel and
reviewed, and Riven takes each one by the hashes of its exact files.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-25&quot; id=&quot;ref-25&quot; aria-label=&quot;Source 25&quot;&gt;25&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;same-seed-any-order&quot;&gt;Same seed, any order&lt;/h2&gt;
&lt;p&gt;Each of those projects leans on the same promise. Because a Riven world can't tell what order you
asked in, Cubature can build it on many threads and ahead of you. Distant Horizons can draw it to
the horizon, and every player still gets the same world. The rule cost us fresh worlds, a narrower
ecosystem and a few features we liked. It bought an engine we can make faster without worrying
about what it builds.&lt;/p&gt;
&lt;p&gt;The longer texts take each part further:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;how Cubature delivers the distant view;&lt;/li&gt;
&lt;li&gt;how it generates in parallel;&lt;/li&gt;
&lt;li&gt;how Riven plans a world from one seed;&lt;/li&gt;
&lt;li&gt;how we verify AI-assisted work;&lt;/li&gt;
&lt;li&gt;how Riven's art is made;&lt;/li&gt;
&lt;li&gt;what GTCEu: Reloaded brings to 1.12.2.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Everything here is a research preview, public for study and testing. Questions are welcome on
&lt;a href=&quot;https://discord.gg/qCVqhXtSzR&quot;&gt;Discord&lt;/a&gt;, and bugs go to each project's issues.&lt;/p&gt;
&lt;h2&gt;Sources&lt;/h2&gt;&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven#status&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; README: Status, What Riven generates, For addon and mod developers&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/main/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: Realms by height; Subsurface (adopted 2026-10-26)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/main/docs/PROJECT-COMMITMENTS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Project commitments (accepted 2026-10-19)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/main/docs/ARCHITECTURE.md#determinism-contract&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Architecture: Determinism contract&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/main/CONTRIBUTING.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Contributing to Riven: Rules that keep worlds reproducible; Checks&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature#for-addon-and-mod-developers&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; README: For addon and mod developers&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/c6d2bce57c5a661e0beb418062c58cec1d812728&quot;&gt;&lt;code&gt;Cubature c6d2bce&lt;/code&gt; Offer each world's generator a bounded build pool&lt;/a&gt;; &lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/ac713301861468b88fd07784f3ec0fbf35928db1&quot;&gt;&lt;code&gt;Riven ac71330&lt;/code&gt; Run Riven's in-build parallelism on Cubature's build pool&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/e14bbf9abcb0c450ce112aa41b874756019f467d&quot;&gt;&lt;code&gt;Cubature e14bbf9&lt;/code&gt; Prepare a generator's regional plans ahead of the players&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/5a8bf296eb5f66221a67f96057764f047bd471e2&quot;&gt;&lt;code&gt;Cubature 5a8bf29&lt;/code&gt; Keep a held teleport through vanilla's move corrections&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/main/docs/ARCHITECTURE.md#entry-points&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Architecture: Entry points; The column engine&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/main/docs/LOD-DELIVERY.md&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; Distant terrain delivery: Evidence; Plan&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/5d4904876af10c85f2acdf776d329da5f0a973f4&quot;&gt;&lt;code&gt;Riven 5d49048&lt;/code&gt; Build a continent's hydrology plans before its drainage scan&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/ad21203dbf76a6e0f490b99064e788b05e1cffeb&quot;&gt;&lt;code&gt;Cubature ad21203&lt;/code&gt; Hold Distant Horizons previews while the native view is behind&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/ca52295dd78f0baa0617345ef65db61aa2ffb007&quot;&gt;&lt;code&gt;Cubature ca52295&lt;/code&gt; Hold preview tiles only for a native view that shows its ground&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/6be08046b6111ba2bb0295f3e98b50d1eb5f39f7&quot;&gt;&lt;code&gt;Riven 6be0804&lt;/code&gt; terrain-v132: continuous fjord walls and strait unions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/f024283871ce22accd293f1eff9598cdce76fb31&quot;&gt;&lt;code&gt;Riven f024283&lt;/code&gt; Remove Biomes O' Plenty from Riven's code&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/dba3558fbea9e58c07bb601cc1a755ad02161bc1&quot;&gt;&lt;code&gt;Riven dba3558&lt;/code&gt; Remove wonders and compatibility paths&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/main/docs/OBSERVABILITY.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Debugging Riven, Cubature and Distant Horizons&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/c95ca460618731263d78262161d2f04711630d64&quot;&gt;&lt;code&gt;Riven c95ca46&lt;/code&gt; Decide an 8-core baseline and ownership of the DH pipeline&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/.github/blob/main/AI.md&quot;&gt;&lt;code&gt;.github&lt;/code&gt; AI usage&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/095a266dcdab8c4fc4bb66a1f1929b0fab0a8c3f&quot;&gt;&lt;code&gt;Riven 095a266&lt;/code&gt; Gate pushes on a ci pass for the pushed tree&lt;/a&gt;; &lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/main/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/5e134f4e41563ba0fe57698bca718e8430a4779d&quot;&gt;&lt;code&gt;Cubature 5e134f4&lt;/code&gt; Ask for Distant Horizons sections in the order the player reaches them&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/GTCEu-Reloaded&quot;&gt;&lt;code&gt;GTCEu-Reloaded&lt;/code&gt; GTCEu: Reloaded README&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/commit/f0262aaea41894ca2eb54a9a4d367c86a83c10db&quot;&gt;&lt;code&gt;Riven f0262aa&lt;/code&gt; Record the GTCEu load check of Riven's ore names and materials&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/main/docs/DECISIONS.md&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; Decisions: Art lives outside the repositories (adopted 2026-11-01)&lt;/a&gt;; &lt;a href=&quot;https://github.com/orthrus-research/RivenResources&quot;&gt;&lt;code&gt;RivenResources&lt;/code&gt; Riven Resources&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;</content>
  </entry>
  <entry>
    <title>Cubes and columns</title>
    <link href="https://orthrus.cc/texts/cubes-and-columns"/>
    <id>https://orthrus.cc/texts/cubes-and-columns</id>
    <updated>2026-10-29T00:00:00Z</updated>
    <category term="guide"/>
    <summary>Cubature cuts a Minecraft 1.12.2 world into 16-block cubes and loads only the ones near players. This is what that changes for a mod that reads, writes or generates blocks.</summary>
    <content type="html" xml:base="https://orthrus.cc/texts/cubes-and-columns">&lt;p&gt;Vanilla Minecraft 1.12.2 loads, saves and lights the world one chunk at a time, and a chunk is a
whole column: 16 blocks square and 256 blocks tall. Cubature, our fork of
&lt;a href=&quot;https://github.com/OpenCubicChunks/CubicChunks&quot;&gt;CubicChunks&lt;/a&gt;, swaps that unit for a 16-block cube.
A world can then run far above and below the vanilla limits and still load only the parts near
players.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;This guide is for mod developers. It covers what the swap changes for code that checks heights,
reads nearby blocks or generates terrain. The reasons we build worlds this way are in
&lt;a href=&quot;/texts/same-seed-any-order&quot;&gt;Same seed, any order&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Cubature's public API is the &lt;code&gt;CubicChunksAPI/&lt;/code&gt; module, and its packages still begin
&lt;code&gt;io.github.opencubicchunks.cubicchunks.api&lt;/code&gt;. We kept those names, the mod IDs and the save format,
so addons built for CubicChunks find what they expect.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;two-units-of-storage&quot;&gt;Two units of storage&lt;/h2&gt;
&lt;p&gt;A &lt;strong&gt;cube&lt;/strong&gt; (&lt;code&gt;ICube&lt;/code&gt;) is 16 × 16 × 16 blocks, and the API names its edge &lt;code&gt;ICube.SIZE&lt;/code&gt;. A &lt;strong&gt;column&lt;/strong&gt;
(&lt;code&gt;IColumn&lt;/code&gt;) is the stack of cubes that share an X and a Z. A column is still a vanilla &lt;code&gt;Chunk&lt;/code&gt;:
&lt;code&gt;ICube.getColumn()&lt;/code&gt; returns an object that is both.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-2&quot; id=&quot;ref-2&quot; aria-label=&quot;Source 2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt; Code that asks the world for a chunk
still gets one.&lt;/p&gt;
&lt;p&gt;What changes is what the chunk holds. A column holds only the cubes that are loaded right now, and
it keeps what belongs to the whole stack, such as the height map.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-3&quot; id=&quot;ref-3&quot; aria-label=&quot;Source 3&quot;&gt;3&lt;/a&gt;&lt;/sup&gt; Which cubes those are
depends on where the players are. Cubature adds a view distance for the vertical axis,
&lt;code&gt;verticalCubeLoadDistance&lt;/code&gt;, which is 8 cubes by default.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-4&quot; id=&quot;ref-4&quot; aria-label=&quot;Source 4&quot;&gt;4&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;figure&gt;&lt;figcaption&gt;Figure 1. A block of world cut into cubes, with one lifted out of its slot. The lifted cube is the unit Cubature loads, and the stack it came from is its column.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;how-tall-the-world-is&quot;&gt;How tall the world is&lt;/h2&gt;
&lt;p&gt;A cubic world has no fixed range of 0 to 256. &lt;code&gt;ICubicWorld&lt;/code&gt; extends &lt;code&gt;IMinMaxHeight&lt;/code&gt;, whose
&lt;code&gt;getMinHeight()&lt;/code&gt; gives the world's bottom block and whose &lt;code&gt;getMaxHeight()&lt;/code&gt; gives the block above
its top one. &lt;code&gt;ICubicWorld.isCubicWorld()&lt;/code&gt; tells you which kind of world you're in.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-5&quot; id=&quot;ref-5&quot; aria-label=&quot;Source 5&quot;&gt;5&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;A cubic world has two ranges, and they answer different questions:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Range&lt;/th&gt;
&lt;th&gt;Read it with&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Where blocks can exist&lt;/td&gt;
&lt;td&gt;&lt;code&gt;getMinHeight()&lt;/code&gt;, &lt;code&gt;getMaxHeight()&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where the generator makes terrain&lt;/td&gt;
&lt;td&gt;&lt;code&gt;getMinGenerationHeight()&lt;/code&gt;, &lt;code&gt;getMaxGenerationHeight()&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The first is set from &lt;code&gt;defaultMinHeight&lt;/code&gt; and &lt;code&gt;defaultMaxHeight&lt;/code&gt; in &lt;code&gt;config/cubicchunks.cfg&lt;/code&gt; when
the world is created. The second is whatever the world type's &lt;code&gt;calculateGenerationHeightRange&lt;/code&gt;
returns.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-6&quot; id=&quot;ref-6&quot; aria-label=&quot;Source 6&quot;&gt;6&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The two can disagree. Riven generates terrain from &lt;span class=&quot;nw&quot;&gt;Y-1664&lt;/span&gt; to &lt;span class=&quot;nw&quot;&gt;Y383&lt;/span&gt;. Our test profile used to set
&lt;code&gt;defaultMinHeight&lt;/code&gt; to &lt;code&gt;-128&lt;/code&gt;, and a test player teleported to &lt;span class=&quot;nw&quot;&gt;Y-500&lt;/span&gt; took out-of-world damage and
died. Cubature fixes a new world's range, including where that damage starts, from the config
values and not from the generator's range. A Riven server sets them to &lt;code&gt;-1664&lt;/code&gt; and &lt;code&gt;384&lt;/code&gt; before
the world is created.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-7&quot; id=&quot;ref-7&quot; aria-label=&quot;Source 7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;coordinates&quot;&gt;Coordinates&lt;/h2&gt;
&lt;p&gt;A block coordinate splits into a cube coordinate and a position inside the cube. &lt;code&gt;Coords&lt;/code&gt; holds
the conversions, and they're bit operations: &lt;code&gt;blockToCube(b)&lt;/code&gt; is &lt;code&gt;b &gt;&gt; 4&lt;/code&gt;, and &lt;code&gt;blockToLocal(b)&lt;/code&gt;
is &lt;code&gt;b &amp;#x26; 0xf&lt;/code&gt;.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-8&quot; id=&quot;ref-8&quot; aria-label=&quot;Source 8&quot;&gt;8&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The shift rounds toward negative infinity, not toward zero. Block −1 is in cube −1 at local
position 15, not in cube 0. Integer division gets this wrong, because &lt;code&gt;-1 / 16&lt;/code&gt; is 0 in Java.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th align=&quot;right&quot;&gt;Block Y&lt;/th&gt;
&lt;th align=&quot;right&quot;&gt;&lt;code&gt;blockToCube&lt;/code&gt;&lt;/th&gt;
&lt;th align=&quot;right&quot;&gt;&lt;code&gt;blockToLocal&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;−1664&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;−104&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;−17&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;−2&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;−1&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;−1&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;0&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;0&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;15&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;0&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;16&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;1&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;383&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;23&lt;/td&gt;
&lt;td align=&quot;right&quot;&gt;15&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The first and last rows are the bottom and top blocks of a Riven world, which makes it 128 cubes
tall.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-9&quot; id=&quot;ref-9&quot; aria-label=&quot;Source 9&quot;&gt;9&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Going the other way, &lt;code&gt;cubeToMinBlock(c)&lt;/code&gt; is &lt;code&gt;c &amp;#x3C;&amp;#x3C; 4&lt;/code&gt;, &lt;code&gt;cubeToMaxBlock(c)&lt;/code&gt; adds 15 to that, and
&lt;code&gt;localToBlock(c, l)&lt;/code&gt; adds a local offset. &lt;code&gt;CubePos&lt;/code&gt; addresses a cube by its three cube coordinates
and carries the same conversions as methods, such as &lt;code&gt;getMinBlockY()&lt;/code&gt; and
&lt;code&gt;CubePos.fromBlockCoords(x, y, z)&lt;/code&gt;.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-8&quot; id=&quot;ref-8&quot; aria-label=&quot;Source 8&quot;&gt;8&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Biomes are stored in three dimensions. Each cube holds one biome for every 4 × 4 × 4 block
section, 64 in all.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-10&quot; id=&quot;ref-10&quot; aria-label=&quot;Source 10&quot;&gt;10&lt;/a&gt;&lt;/sup&gt; &lt;code&gt;Coords.blockToLocalBiome3d(b)&lt;/code&gt; gives a section's index along one
axis: &lt;code&gt;(b &amp;#x26; 15) &gt;&gt; 2&lt;/code&gt;.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-8&quot; id=&quot;ref-8&quot; aria-label=&quot;Source 8&quot;&gt;8&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2 id=&quot;reading-and-writing-blocks&quot;&gt;Reading and writing blocks&lt;/h2&gt;
&lt;p&gt;The world's own &lt;code&gt;getBlockState&lt;/code&gt; and &lt;code&gt;setBlockState&lt;/code&gt; keep working, because Cubature changes the
vanilla &lt;code&gt;Chunk&lt;/code&gt; code underneath them to use cubes. Vanilla's own height check keeps working too:
in a cubic world, &lt;code&gt;World.isOutsideBuildHeight&lt;/code&gt; compares against the world's range.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-11&quot; id=&quot;ref-11&quot; aria-label=&quot;Source 11&quot;&gt;11&lt;/a&gt;&lt;/sup&gt; Two
habits from vanilla code still break.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Height checks written by hand.&lt;/strong&gt; A test such as &lt;code&gt;y &amp;#x3C; 0 || y &gt;= 256&lt;/code&gt; rejects valid positions
above and below that range. Ask the world, through &lt;code&gt;ICubicWorld&lt;/code&gt;'s &lt;code&gt;getMinHeight()&lt;/code&gt; and
&lt;code&gt;getMaxHeight()&lt;/code&gt; or through &lt;code&gt;isOutsideBuildHeight&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Loading by accident.&lt;/strong&gt; On the server, &lt;code&gt;IColumn.getCube(cubeY)&lt;/code&gt; and
&lt;code&gt;ICubeProvider.getCube(x, y, z)&lt;/code&gt; do whatever it takes to hand you the cube. If it isn't loaded,
the server loads it. If it was never generated, the server generates it before it
returns.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-12&quot; id=&quot;ref-12&quot; aria-label=&quot;Source 12&quot;&gt;12&lt;/a&gt;&lt;/sup&gt; Code that only looks at what's nearby should call &lt;code&gt;getLoadedCube&lt;/code&gt;, which
returns &lt;code&gt;null&lt;/code&gt; for a cube that isn't loaded.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-13&quot; id=&quot;ref-13&quot; aria-label=&quot;Source 13&quot;&gt;13&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;An early version of Cubature's delivery got the second one wrong in the other direction. A
&lt;code&gt;getCube&lt;/code&gt; that needed generation while cubes were being delivered to players went to the workers
and came back as an empty cube, whoever had called. A population step could read air where the
cube would hold ground. In one 60-second test flight we counted thousands of those reads, nearly
all from Riven's population. Delivery requests now say what they are. Every other caller gets the
real cube, built on its own thread or by the worker that had already started it.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-14&quot; id=&quot;ref-14&quot; aria-label=&quot;Source 14&quot;&gt;14&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;For finer control, &lt;code&gt;ICubeProviderServer.getCube(x, y, z, requirement)&lt;/code&gt; names how far the server
may go, and returns &lt;code&gt;null&lt;/code&gt; when that isn't far enough to produce the cube. Each level includes the
ones above it in this table, and the plain &lt;code&gt;getCube&lt;/code&gt; asks for &lt;code&gt;GENERATE&lt;/code&gt;.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-13&quot; id=&quot;ref-13&quot; aria-label=&quot;Source 13&quot;&gt;13&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;The server may&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;GET_CACHED&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Return the cube only if it is already loaded&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;LOAD&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Load it from disk&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;GENERATE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Generate it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;POPULATE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Populate it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;LIGHT&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Light it&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id=&quot;generating-cubes&quot;&gt;Generating cubes&lt;/h2&gt;
&lt;p&gt;A cubic world type implements &lt;code&gt;ICubicWorldType&lt;/code&gt;, and its &lt;code&gt;createCubeGenerator(World)&lt;/code&gt; returns the
world's &lt;code&gt;ICubeGenerator&lt;/code&gt;. Generation runs in three stages, each with its own method.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-15&quot; id=&quot;ref-15&quot; aria-label=&quot;Source 15&quot;&gt;15&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;What it makes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;code&gt;generateColumn(Chunk)&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;What belongs to the whole column, such as biome data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;code&gt;generateCube(x, y, z, primer)&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;One cube's blocks and biomes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;&lt;code&gt;populate(ICube)&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Features that cross cube edges, such as trees and ore veins&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;code&gt;generateCube&lt;/code&gt; fills a &lt;code&gt;CubePrimer&lt;/code&gt; with block states at cube-local coordinates from 0 to 15, and
with biomes at section coordinates from 0 to 3.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-10&quot; id=&quot;ref-10&quot; aria-label=&quot;Source 10&quot;&gt;10&lt;/a&gt;&lt;/sup&gt; The primer passed in is a hint that saves
an allocation. A generator may fill it, or it may return a different primer and leave the one it
was given untouched. The three-argument &lt;code&gt;generateCube&lt;/code&gt; is deprecated but still abstract, so an
implementation hands it on to the four-argument form.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-15&quot; id=&quot;ref-15&quot; aria-label=&quot;Source 15&quot;&gt;15&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-java&quot;&gt;// An excerpt: ICubeGenerator's other methods are left out.
public final class StoneBelowZero implements ICubeGenerator {
    private static final CubePrimer STONE =
            CubePrimer.createFilled(Blocks.STONE.getDefaultState());

    @Override
    public CubePrimer generateCube(
            int cubeX, int cubeY, int cubeZ, CubePrimer primer) {
        // Cubes below Y 0 are solid stone, and the rest stay air.
        // When STONE is returned, the primer that was passed in
        // is left as it came.
        return cubeY &amp;#x3C; 0 ? STONE : primer;
    }

    @Override
    @Deprecated
    public CubePrimer generateCube(int cubeX, int cubeY, int cubeZ) {
        return generateCube(cubeX, cubeY, cubeZ, new CubePrimer());
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Sharing one primer this way is safe. The server copies a returned primer's blocks and biomes into
the new cube, and it resets only the primer it passed in.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-12&quot; id=&quot;ref-12&quot; aria-label=&quot;Source 12&quot;&gt;12&lt;/a&gt;&lt;/sup&gt; The rule that follows is to
never change a primer after returning it.&lt;/p&gt;
&lt;p&gt;Features that cross cube edges belong in &lt;code&gt;populate(ICube)&lt;/code&gt;. Unlike vanilla population, it never
causes recursive generation. Two methods tell Cubature how far a generator's population reaches.
&lt;code&gt;getPopulationPregenerationRequirements(cube)&lt;/code&gt; returns the box of cubes that populating this cube
may read or change, and Cubature generates those first. &lt;code&gt;getFullPopulationRequirements(cube)&lt;/code&gt;
returns the box of cubes whose population can write into this one, and the cube is fully populated
once all of them have been.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-15&quot; id=&quot;ref-15&quot; aria-label=&quot;Source 15&quot;&gt;15&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The API's recommended value for the second box is &lt;code&gt;RECOMMENDED_FULL_POPULATOR_REQUIREMENT&lt;/code&gt;:
offsets −1 to 0 on each axis, which is eight cubes with the cube itself included.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-15&quot; id=&quot;ref-15&quot; aria-label=&quot;Source 15&quot;&gt;15&lt;/a&gt;&lt;/sup&gt;
Riven needs less. Its population places a column's first animals and writes no block, so nothing
reaches into another cube and the second box is &lt;code&gt;NO_REQUIREMENT&lt;/code&gt;. For the first box it asks for
the cube above and the cube below, because an animal's ground may lie in the cube below and its
head in the cube above.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-16&quot; id=&quot;ref-16&quot; aria-label=&quot;Source 16&quot;&gt;16&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;A generator can also ask to run off the server thread. If its cubes are a pure function of the
seed and their coordinates, and its code is thread-safe, it returns &lt;code&gt;true&lt;/code&gt; from
&lt;code&gt;supportsConcurrentCubeGeneration()&lt;/code&gt;. Cubature then generates its cubes on worker threads, and the
server thread installs them within a budget each tick.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-1&quot; id=&quot;ref-1&quot; aria-label=&quot;Source 1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt; The &lt;code&gt;concurrentGenerationThreads&lt;/code&gt;
setting sizes the pool. By default that is a quarter of the processors, at least one and at most
four, and 0 turns the workers off.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-4&quot; id=&quot;ref-4&quot; aria-label=&quot;Source 4&quot;&gt;4&lt;/a&gt;&lt;/sup&gt; The workers also call
&lt;code&gt;prepareColumn(columnX, columnZ)&lt;/code&gt;, an optional hook for warming the generator's own caches. It
must be thread-safe, must not touch the world, and must not change what generation
produces.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-15&quot; id=&quot;ref-15&quot; aria-label=&quot;Source 15&quot;&gt;15&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Riven returns &lt;code&gt;true&lt;/code&gt;: its cubes are pure functions of the seed, the world's definitions and their
coordinates.&lt;sup class=&quot;ref&quot;&gt;&lt;a href=&quot;#source-16&quot; id=&quot;ref-16&quot; aria-label=&quot;Source 16&quot;&gt;16&lt;/a&gt;&lt;/sup&gt; What we get from that, and what it cost, is the subject of
&lt;a href=&quot;/texts/same-seed-any-order&quot;&gt;Same seed, any order&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Sources&lt;/h2&gt;&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature#readme&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; README: Changes from CubicChunks; For players and pack makers; For addon and mod developers; Upstream&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/CubicChunksAPI/src/main/java/io/github/opencubicchunks/cubicchunks/api/world/ICube.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; API: ICube.java&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/CubicChunksAPI/src/main/java/io/github/opencubicchunks/cubicchunks/api/world/IColumn.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; API: IColumn.java&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/src/main/java/io/github/opencubicchunks/cubicchunks/core/CubicChunksConfig.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; source: CubicChunksConfig.java&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/CubicChunksAPI/src/main/java/io/github/opencubicchunks/cubicchunks/api/world/IMinMaxHeight.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; API: IMinMaxHeight.java&lt;/a&gt;; &lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/CubicChunksAPI/src/main/java/io/github/opencubicchunks/cubicchunks/api/world/ICubicWorld.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; API: ICubicWorld.java&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/CubicChunksAPI/src/main/java/io/github/opencubicchunks/cubicchunks/api/world/ICubicWorldType.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; API: ICubicWorldType.java&lt;/a&gt;; &lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/src/main/java/io/github/opencubicchunks/cubicchunks/core/CommonEventHandler.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; source: CommonEventHandler.java, where a world's two ranges are set&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/main/docs/RUNTIME.md#profile&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; runtime: Profile&lt;/a&gt;; &lt;a href=&quot;https://github.com/orthrus-research/Riven#for-players-and-pack-makers&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; README: For players and pack makers&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/CubicChunksAPI/src/main/java/io/github/opencubicchunks/cubicchunks/api/util/Coords.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; API: Coords.java&lt;/a&gt;; &lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/CubicChunksAPI/src/main/java/io/github/opencubicchunks/cubicchunks/api/util/CubePos.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; API: CubePos.java&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven#what-riven-generates&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; README: What Riven generates&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/CubicChunksAPI/src/main/java/io/github/opencubicchunks/cubicchunks/api/worldgen/CubePrimer.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; API: CubePrimer.java&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/src/main/java/io/github/opencubicchunks/cubicchunks/core/asm/mixin/core/common/MixinChunk_Cubes.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; source: MixinChunk_Cubes.java&lt;/a&gt;; &lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/src/main/java/io/github/opencubicchunks/cubicchunks/core/asm/mixin/core/common/MixinWorld_HeightLimits.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; source: MixinWorld_HeightLimits.java&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/src/main/java/io/github/opencubicchunks/cubicchunks/core/server/CubeProviderServer.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; source: CubeProviderServer.java&lt;/a&gt;; &lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/src/main/java/io/github/opencubicchunks/cubicchunks/core/world/cube/Cube.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; source: Cube.java&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/CubicChunksAPI/src/main/java/io/github/opencubicchunks/cubicchunks/api/world/ICubeProvider.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; API: ICubeProvider.java&lt;/a&gt;; &lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/CubicChunksAPI/src/main/java/io/github/opencubicchunks/cubicchunks/api/world/ICubeProviderServer.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; API: ICubeProviderServer.java&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/commit/c8223c9b559d2d52bb762cae7f8e85dcac0881b6&quot;&gt;&lt;code&gt;Cubature c8223c9&lt;/code&gt; Make delivery generation requests explicit&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/CubicChunksAPI/src/main/java/io/github/opencubicchunks/cubicchunks/api/worldgen/ICubeGenerator.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; API: ICubeGenerator.java&lt;/a&gt;; &lt;a href=&quot;https://github.com/orthrus-research/Cubature/blob/058abea7ec26e1edb95acd91d3e95b545cc4eacc/CubicChunksAPI/src/main/java/io/github/opencubicchunks/cubicchunks/api/world/ICubicWorldType.java&quot;&gt;&lt;code&gt;Cubature&lt;/code&gt; API: ICubicWorldType.java&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/orthrus-research/Riven/blob/94bb75c1c1ccb9e693423ef7b0a770cbb29fc437/src/main/java/cc/orthrus/riven/RivenWorldType.java&quot;&gt;&lt;code&gt;Riven&lt;/code&gt; source: RivenWorldType.java&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;</content>
  </entry>
</feed>
