Orthrus Research

Projectscubic worlds

Cubature

Research preview

A maintained fork of CubicChunks for Minecraft 1.12.2: cubic-world scheduling, lighting, storage and delivery. Worlds are built from 16-block cubes, so they reach as deep and as high as the generator needs.

Cubature replaces CubicChunks: install one or the other. It keeps the cubicchunks mod IDs and save format.

blocks per cube
16³
generation workers
1–4
install budget per tick
20 ms
cubes in flight
1,024

Cleanroom 0.7.14-alpha on Java 26, the runtime Riven pins.

What Cubature does

Cubature owns the infrastructure of cubic worlds: scheduling, lighting, the lifetime of each cube, storage, and delivery to clients. It is developed alongside Riven, which supplies the terrain and the biomes.

A block of world cut into cubes with one cube lifted out. Each cube is 16 blocks wide, long and tall. A Riven world is 2,048 blocks tall.16 × 16 × 162,048 blocks
One cube is 16 blocks wide, long and tall. A world is loaded, lit, saved and sent one cube at a time, so it can run as deep and as high as its generator needs.
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.CubatureDistant HorizonsRiven
A plan of the world around a player. Close in are Cubature's cubes. Beyond them, Distant Horizons draws coarser and coarser squares, which Cubature samples from the same terrain. Not to scale.

Changes from CubicChunks

  • Cleanroom and modern Java. Development is on JDK 25 and the tested runtime is Java 26. The Forge 14.23.5.2860 and Java 8 fallback was retired on October 30, 2026.
  • Loading and saving. Asynchronous load completion with clear ownership, and fixes to persistence, storage recovery, lighting and scheduled ticks.
  • A delivery scheduler. Bounded worker threads generate cubes and prepare columns off the server thread, and the server thread installs them within a budget each tick.
  • Distant Horizons, optionally. The integration is made through Mixins. The Distant Horizons JAR stays the unmodified upstream release, and none of its code is bundled.
  • Shaders. Packs under Demonica receive the camera's depth below the surface, and an option that is off by default adapts Complementary's cave fog at load time without changing its files.

The fork began at upstream commit 53847757. MODIFICATIONS.md records every change since.

The delivery scheduler

A world generator whose cubes are a pure function of seed and coordinates can declare concurrent generation. Cubature then generates its cubes on worker threads and installs them on the server thread, within three limits a server can change:

  1. 1–4 workers generate cubes and prepare columns, off the server thread
  2. 1,024 cubes at most, in flight or finished and waiting
  3. 20 ms a tick for the server thread to install what is ready
The delivery scheduler, for generators that declare their cubes a pure function of seed and position. Workers change when a cube is ready, never what it contains.
concurrentGenerationThreads
1–4
Worker threads. By default a quarter of the processors, within this range; 0 turns it off.
concurrentGenerationQueue
1,024
The most cubes, and separately columns, in flight or finished but not yet installed.
concurrentGenerationTickMillis
20 ms
Server-thread time each tick for installing what the workers finished.

Requirements

Minecraft
1.12.2
Cleanroom
0.7.14-alpha
Required. The official release, at the version Riven pins.
Java
26
The tested runtime.
Distant Horizons
3.3.3
Optional. The official release for 1.12.2, unmodified.

Cubature goes on the server and on every client that joins it: a client without Cubature is refused at connection.

Riven's runtime profile lists the exact files of the tested runtime.

Compatibility

  • It replaces CubicChunks. Install one or the other, never both.
  • Addons find what they expect. Cubature keeps the cubicchunks and cubicchunkscore mod IDs, the io.github.opencubicchunks packages, and the command and config identifiers.
  • Worlds load as CubicChunks worlds. The save format is CubicChunks' own. Cubature is a research preview, so no release yet makes compatibility promises of its own.
  • One runtime. Cubature is built for official Cleanroom, with Distant Horizons and with Demonica. Code that adapted CubicChunks to other platforms, such as OptiFine and Forge and Bukkit hybrid servers, was removed in November 2026.
  • Not an upstream release. Cubature is not an official OpenCubicChunks release and implies no endorsement by its authors. Report Cubature's problems to Cubature, not upstream.

For addon and mod developers

The public API is CubicChunksAPI/, unchanged in its packages. Beyond declaring concurrent generation, a generator can take each world's build pool through ICubeGenerator.useBuildPool for its own parallel work, so that work stays inside the worker budget, and it can prepare its regional plans ahead of the players there.

One behavior to know: with concurrent generation active, a teleport into a column that is neither loaded nor saved is held, for at most 600 ticks, while the workers prepare it. The player stays where they are meanwhile, so code that reads the player's position right after the call still sees the old one. PlayerCubeMap.arrivals().teleportNow moves a player at once.

cleanroom-port.md
Cleanroom and Java support
DISTANT-HORIZONS.md
The optional Distant Horizons adapter
lab/README.md
The optional in-game measurement lab

Changes

  1. 058abea Trim the local-tooling ignore block
  2. e917a1e Describe the fine-column guard in the Distant Horizons notes
  3. 5efaeb5 Count fine columns replaced by more complete data as upgraded, not lost
  4. 5daeb13 Keep LOD columns DH built from finer data against coarse answers
  5. ea73419 Trace the full data each render build reads
  6. 0a0f647 Count only answers as losses and record restorations

The latest commits to the repository. MODIFICATIONS.md records what each change means for players, and the full history is on GitHub.

Download

Cubature has no release yet. Releases will be published on GitHub Releases, and this page will link the newest one when it exists.

Until then it can be built from source: the build is the CleanroomGradle project in cleanroom/, which needs JDK 25.

License and upstream

Cubature keeps CubicChunks' terms: MIT, with the Forge-derived asynchronous I/O package under LGPL-2.1. Original authorship and copyright headers are intact. Riven's license does not apply to Cubature.

CubicChunks extends Minecraft's world height and depth to the limits of a 32-bit integer. It is the work of OpenCubicChunks and its contributors, and Cubature builds on all of it. The upstream project, its downloads and its community are theirs.

The full statements are in NOTICE.md, and upstream's authors are named in the README.

All projects About Orthrus Research Source on GitHub