A cave value is a plain number, {min, max} that a smooth noise picks
from, or {min, max, style} where the pack's style picks. The noise's low
end gives min and its high end max. A plain number keeps the constant
path, and the carver checks for constants so they cost no more than
before. Each varying value has its own seed, named after its key, so
writing a range leaves every other field of the cave where it was.
The form covers fade, surfaceClearance and both ends of depth on the
cave; width, height, the coverage share and verticalWarp on tunnels;
size, height, coverage and roughness on caverns; spacing, thickness,
flare and vertical on pillars. Three constants become keys with
defaults that carve what they did: ceilingFade (8 blocks),
verticalWarp (0.5) and the coverage softness (0.3, an edge of 0.15).
Roughness (0.3) replaces the fixed wall detail. Tunnel coverage also
takes a plain number as the share.
Sizes do not stretch the noise, which sheared rooms into air pockets
and floating rock. A size or height that varies blends a field built at
min with one built at max, so each varying size doubles the fields read.
With size, height or roughness varying the coverage share is
approximate: a size range carves about 14% more than its ends average.
JsonForms codecs get Parts, which read a part of a form as the host
reads that type anywhere else. A cave value's style can then name a
pack's expression. A cave value is not a number to the host's bounds
check, so a validator reports values outside their key's range.
natureplanet's four cave files carve block for block what they carved
before, and the first pass's five pinned caves still match.
A tunnel's stretch and flatness become spacing.horizontal and
spacing.vertical. The bend, the width noise and the coverage patches
were all derived from stretch through fixed constants; each now has its
own key. warp is a noise style whose zoom sets how often a tunnel turns
and whose multiplier sets how far it swings, as in object placement. A
flat warp keeps tunnels straight. width is a styled range sampled in 3D,
and coverage is a share plus an optional style. Left out, each falls
back to what stretch used to give, so a tunnel needs only spacing.
The new tunnel height turns the round cross-section into an oval. The
distance to the line is measured with the vertical axis stretched by
width over height, so the width stays what the pack asks for. A height
equal to the width carves exactly the round tunnel.
Caverns and pillars take an optional style. Size, height and spacing
stay in blocks for any style: the shape measures the style's feature
spacing at load and rescales it until it matches. That costs under 10 ms
per cave, and a fracture keeps its distance in blocks. Pillars gain
flare, which replaces the fixed foot area of 4, and vertical, which
reads the pillar field in 3D on the lattice so pillars lean, pinch and
break off. Without vertical the per-column cache still decides.
The old keys are gone. Written with the new keys, the old caves carve
block for block what they carved before, which the carver test pins
for five caves, and the carve harness digest matches the old code for
the same cave.
The Caves view no longer edits cave files. It shows each cave at the
chosen size and variant, and redraws when a file is saved. The form,
creating caves from the studio and EditableSceneView.showsNodes() are
gone.
The Caves view drops its node graph. Each cave file is one form beside
the scene, with a section for the cave, its tunnel, its cavern and the
pillars. A section the file lacks says "(unset)" and typing a value
writes it. EditableSceneView.showsNodes() lets a view ask for this.
Scenes can now be built at a size the studio picks. SceneView.sizes()
lists them, and scene() and parts() take a SceneRequest with the key,
variant and size. Caves offer 64 to 512 blocks across. The preview sends
only the carved blocks on the outside of the space, so 512 stays light.
The 3D world gets a Caves toggle. It generates the chunks of a 128, 256
or 512 square around the middle of the view and draws every air block
under the terrain top, coloured by height band, with a legend.
The carve module registers a scene view that lists every file of the
pack's caves/ folder and draws each one carved over 128 by 128 blocks
under a flat surface at Y 96, with the seed generation uses. Carved
space is drawn as blocks, tunnels light blue and caverns orange, so the
shape of the cave shows instead of the rock around it. Four variants
show the same cave in four places. Each file opens as Cave, Tunnel,
Cavern and Pillars nodes, and new caves can be created from the view.
BlockParts copied its map with Map.copyOf, whose open addressing takes
quadratic time on the colliding hash codes of a dense block grid; one
cave scene took 538 seconds. It now copies into a HashMap.
A studio that connected after the bridge's first poll got no world
event of its own, took the first hotload for its starting state and did
not redraw. Each joining studio is now sent the world state on its own.
Packs now describe caves as files in caves/ and list them under "caves"
on the dimension, regions and biomes. The lists of a column add up.
A cave has tunnels, caverns or both. Tunnels are the lines where two of
three smooth fields meet, so they run long and join into one network.
Caverns are rooms where one slow field rises over a threshold; pillars
are columns where a second, 2D field peaks. Sizes are written in blocks.
Every shape reads its fields on a 4-block lattice and decides per block
from the interpolated values, so thin tunnels survive between lattice
points. The adaptive sampler and the 2,268-line carver are gone.
Removed with the profile: cave water pockets and their support check,
profile defaults for cave objects, and profile carving of floating
islands. Floating islands still carve with carveStyle.
Pack validation read module settings before the pack had resources; a
module that turns keys into ids then failed the pack. Linked biomes are
now skipped there and checked when the pack loads.
Structures start from their origin chunk's biome, cave biome, region or
dimension, then reach into neighbouring biomes. Dust on a structure piece
now names that owner, found from the structure plan, so it works on chunks
generated before this change too. Chest markers that structures record
carry the owner as well, and a placement can now be owned by the dimension.
An object reaches past the chunk whose centre biome placed it, so dust on a
block near a biome edge named the neighbouring biome. Placements now record
their owning biome or region, and dust shows it as "Placed from biome: ...".
Chunks generated before this change carry no owner and show no such line.
A setting in the settings dialog, off by default and shown only on Linux
with an NVIDIA GPU and its Vulkan driver. On Wayland, Chromium hands the
desktop buffers from the GPU it draws with, so a desktop composited on
the integrated GPU shows an empty window. With the setting on, the studio
restarts through XWayland with Chromium on Vulkan and only NVIDIA's
Vulkan driver visible; that driver copies each frame across itself.
Switching to the NVIDIA GPU put the window's buffers on it, and a desktop that composites on the integrated GPU, as niri
does here, cannot show them: the window stayed empty. Through XWayland the frames did not arrive either, and with
compositing in software each frame's readback cost more than the faster GPU saved. Chromium already picks the desktop's
GPU by itself.
The server works out the sky's light in each cell of a chunk, full under the open sky and a level less through each
leaf, block of water or step aside, and for each visible face the light of the cell it faces and how many opaque cells
stand around each of its corners. The studio darkens the faces' corners by them, splitting each face along its brighter
corners, so terrace steps, cliff feet and the ground under trees and overhangs read in depth. Far runs carry the mean
light and corner shade of the block tops they stand for, so far ground darkens as the near ground does.
A chunk traces the sky's open air within itself, so a pit dug under an overhang whose opening lay in the chunk beside it
seemed closed off, and its walls left a hole in the 3D world. Each chunk keeps the open cells along its sides the sky
did not reach; where one touches the open air of the chunk beside it, the chunk is traced again from there, until none
is left.
A chunk judged what lies beside it by the terrain's height there, which knows nothing dug out of the ground, so a
structure set into a hill or a cave mouth across a chunk's edge left the faces against it out, and the 3D world showed
holes through to the background. Each chunk now keeps the open air and the left-out faces along its sides, and a tile
shows those faces where the chunk beside it is open. Tiles of blocks one by one also generate the chunks around them,
so a tile is the same whichever neighbour came first.
Far off, a block face is a pixel or less, and an antialiased pixel only partly on it was shaded from its centre off the
face, reading the picture beside it in the atlas. Trees and grass were speckled with other blocks' colours. Centroid
coordinates read the picture where the face is.
The studio drew on the integrated GPU of a hybrid laptop, where a view
of the near ground block by block ran at a few frames a second. On
Linux it now starts again, once, with NVIDIA's EGL driver and PRIME
offload, its window's buffers made on the NVIDIA render node, unless
the environment already names an EGL driver.
Tiles are built on worker threads and sent back packed small:
positions in sixteenths of a block, colours a byte a channel. A frame
hands the GPU at most 16 MB of new meshes, and a tile keeps its old
mesh until the finer ones filling its holes are drawn.
The ground is drawn block by block until a block is a quarter of a
pixel, with up to 256 tiles in sight. Runs now record the plants on
their tops, which tint them as the near ground's plants do, and faces
of neighbouring columns in one plane over the same heights merge.
Far tiles showed one height and one block per column, sampled from a
single column, so trees became pillars of leaves or vanished.
For each generated chunk the server now finds, in areas 2 to 16 blocks
across, the runs of heights that are solid in at least a quarter of
the area, split where the main block changes and ending at the ground,
as Distant Horizons draws far terrain. Coarser tiles carry these runs
when asked for the ground's shape, and the studio draws each as a box
with its top, its underside where it floats, and the sides its
neighbours leave open, in the average colours of its block's pictures,
which near textures fade to.
The near ground was drawn from the top of each column, with the blocks
raised above it, so overhangs, the wood under leaves and anything
beside a trunk were lost.
The server now finds, for each chunk it generates, every block the open
air reaches: from the top of the chunk and from beside it above the
terrain around, through leaves and water too, so caves closed to the
sky stay out. Each block comes with the sides that face that air.
Tiles a block a column carry these blocks when asked, and the studio
draws each from its model, leaving out a face its model lets a
neighbour hide unless that side faces the air. Blocks without a model
are cubes of their look or colour; water shows the sides that face the
air, and none against plants that grow in it.
Block tiles held the bridge's few request threads while their chunks
generated, and coarse tiles pushed their own chunks out of the cache
before reading them. Each tile now reads its columns as its chunks
generate and coarse tiles keep none; block tiles wait on threads of
their own; the studio gives quick and slow tiles separate request
slots.
The planner now keeps any stored tile with blocks in sight, not only
drawn ones, and draws columns no finer than a pixel again: at half a
pixel a forest view held twelve million triangles. The atlas gets
mipmaps down to a pixel a picture, so far textures fade to the flat
colour of coarser ground.
Blocks came only on tiles of one block a column, so most of the view
showed biome colours, and zooming out swapped the blocks already seen
for them.
Every tile now carries blocks. The server generates a tile's chunks on
a pool of their own, finer tiles first, keeps up to 512 MB of chunk
tops, and stops a tile the studio cancels. A tile's quick biome version
is drawn only where no tile with blocks of any level is known, so
ground once sampled stays in sight until its replacement has blocks
too. Wider columns take their highest raised block as their top. The
planner now splits columns down to half a pixel and draws up to 192
tiles.
Raised blocks shared the ground's opaque material, whose pictures have
their open pixels filled in, and every face between two raised blocks
was left out, as with fast leaves. The atlas now marks pictures with
open pixels; blocks showing one are drawn with the cut-out material
the grass uses, and hide no face of what they touch, as Minecraft draws
leaves with fancy graphics.
Each column carried only its highest solid block, so a tree's leaves
stood as a pillar down to the ground. The ground is now the terrain's
top, and the solid blocks above it go to the studio as a list per
column. The 3D world draws them as cubes and leaves out the faces that
touch the ground or each other. The 2D map still colours and shades a
column by its highest block.
Decorators get their own pattern view from the decorant module: each
biome's decorators from above, placed where their own noise allows.
The Palettes and Decorators views list the pack's snippet files in a
Snippets group, with the biomes that use each one, and mark entries
read from a snippet. PackResources gains snippetOf and snippets so a
module can tell where a settings value came from.
The 3D world draws what stands on the ground, such as grass and
flowers, as the block's own model. A plugin block that is solid on the
server but shown to players as a plant no longer counts as ground.
The 3D views looked for tiles across the world's whole build height. In a
pack with a tall sky most of a tile's box is air, so once the camera came
close to the ground the planner drew sixteen far tiles and none under the
camera. Tiles are now looked for between the lowest and highest ground
drawn so far, and ranked by how far they lie from the ground in the middle
of the view instead of by their centre point.
Saved tiles named blocks without their properties, which matched no model
variant, so grass and every plugin block drew as flat grey. Saved and
generated tiles now carry the state players see, which for a plugin block
is the vanilla state it borrows.
Colours went through three.js colour management as if they were linear
light and came out pale with flat shading. They are drawn as given now, as
v3e does. Gaps in cut-out textures such as leaves take the texture's own
colour instead of black.
Also in the studio:
- Right click or Ctrl+click on 3D terrain teleports there, as on the map.
- The land, sea and cave biome layer views are gone.
- New icons for the views and the map tools that shared one or said
something else.
- A saved world with nothing finished says so instead of reading forever.
The studio hotloader skipped its folder check whenever a chunk had generated
in the last two seconds, then slept four. Flying around while saving kept
postponing the hotload, which v3 never did. The generation stage gate already
makes a hotload wait for chunks in flight, so the holdoff is gone. Each
hotload now logs its pack and duration.
Regen called World#getChunkAt on the server thread, which loads or generates
the chunk synchronously. Past the loaded area that stalled the tick until the
watchdog killed the server. Regen now loads chunks asynchronously and skips
chunks that were never generated, since their mantle is reset and they
generate fresh when visited.
Regen also generated outside the stage gate, so a hotload sealed the engine
under it and the chunks in flight failed. It takes a stage permit now, like
any chunk the server generates.
Declaring importedStructures used to opt in by itself, so a block that
only set datapackOverrides to false turned vanilla structures on. The
new enabled option, false by default, is now the only switch; the other
options shape the import once it is on.
Jigsaw pieces record a placement marker only on storage blocks, so the
dust called every other piece block "decoration/object/stilt". Where no
marker exists, the dust now asks the modules: ObjectsAt.placementAt is
a new default API method, and the structure module answers it by
assembling the starts within structure reach again and returning the
piece whose box holds the block. A lone surface piece takes its height
from the terrain when placed, so only its column has to match.
The Bukkit and modded dust both print "Placed by: structure '<key>'
piece '<object>'", translated in every bundled locale.
A dimension without importedStructures no longer gets vanilla, mod or
datapack structures in new chunks. Declaring the setting imports them,
and disabled/disabledExact still narrow it down. Iris placements that
place a vanilla structure themselves work without it.
The feature is named "Structures (experimental)" and its description
says so. The locate message for a blocked structure now says it is not
imported by importedStructures or is disabled by a pack module.
Folders start closed, show how many entries they hold and nest by path,
so trees/oak sits under trees. The chosen entry's folders open on their
own, and a search opens every folder with a match.
- /iris std hotload (aliases reload, h) hotloads the studio you stand in, else
the open studio. A pack file that does not parse stops it, the same way it
stops the file watcher, and the sender sees which file.
- modules, version, update, pkg, profile and importvanilla take an optional
dim=<pack>. Without it they use the Iris world you stand in, else the open
studio. The silent fall back to the "default" pack is gone.
- map and imagemap fall back to the open studio's world from the console or a
vanilla world.
- The studio map link is printed only when the Studio window could not open.
The datapack compiler loads packs before the platform binds, so their report
went to the plain stderr fallback. It now waits for the platform, at most two
minutes, and merges with the fields found after it.
Unknown fields used to log one warning per field per file, with a snippet,
every time a pack loaded. A pack without modules logged about 2200 of them at
startup. Now they are gathered per pack and stated as one list a few seconds
after the first, one line per field with its first file and how many others
hold it. Each file's field is stated once per server start. The header says
when the pack loads no modules, which is why layers, wall and decorators
were unread here.
The Bukkit warning path stripped colours. It now keeps section-sign codes
and still reads nothing else as markup.
The palette view drew CraftEngine blocks by their server-only state, such as
craftengine:custom_7, which has no assets. The pattern header now names a
plugin block as the pack does and adds the vanilla state players see, which
the studio draws. Asset reads check plugin resource packs before the client
jar for minecraft paths too, since those packs replace vanilla blockstates.
A pack without modules.json could not use the update command, and a pack that
dropped a built-in had no way to get it back but writing the file by hand. With
force=true the command adds every module Iris ships that modules.json does not
list, at the version Iris ships, writes the file for a pack without one, and then
updates as usual. What the file already lists and pins stays.
The plain command and the console warning for a pack without modules.json now
point at the flag. On modded it is the same words: /iris std update <pack> force=true.
A server that only runs a pack logged every module update the pack kept back, along
with a hint to run the update command, for a person who should not run it. The
console now logs only the patches Iris took and packs that need a newer Iris.
/iris std open lists what the pack kept back and how to take it, on Bukkit and
modded alike, so the notice reaches the pack's author.
A pack used to take every newer module on load, and a major update can change the
blocks it places or stop its settings from loading. Now a load takes patches only.
A module with a new minor or major version stays as it is, and Iris warns that it is
out of date and names the new version.
/iris std update <pack> now only updates the pack's module jars, for its author to
run before checking the settings against the new versions. It no longer writes the
VSCode workspace; studio hotload picks up the new jars and refreshes the workspace.
/iris pack update does the same for a running world, which loads the new jars at
the next server start.
The built-ins no longer travel as one iris-builtins.jar that a pack has to
copy by hand. IrisModule builds one jar per module (the eight placement
stages share one) with an index of the id and version each module reports,
and Iris bundles that folder.
A pack lists the modules it uses in modules.json, with the version it was
built with and an optional pinned list. Before a pack loads, Iris installs
the jars of listed modules and replaces a jar that differs from the one it
ships. It keeps a jar when the module is pinned, when the pack holds a newer
version than Iris ships, and, in a world's copy of a pack, when the major
version changed, because new chunks would not match the old ones. A jar that
shares classes with a kept jar stays with it, since the two were compiled
against each other. /iris pack update takes the kept terrain changes for a
world. What is installed is recorded in modules.lock.json.
Module versions are now major.minor.patch per module, starting at 1.0.0,
with major meaning "places different blocks or stops loading settings".
Iris no longer loads a bundled iris-builtins.jar with every pack. It carries the jar only to copy into new packs (/iris std create), so a pack and a world's copy of it keep the module versions they were made with. Built-in modules report Iris's version instead of "built-in", and /iris std modules lists every module with version, id and jar and takes the pack positionally.
Map tiles can carry the block on top of each column, read from chunks generated in memory through the world's own stages. The 2D map colours by them with a toolbar toggle and the 3D world gets a Blocks colouring with textures, both at a block a pixel or finer. The Height map view goes, as the 3D world shows heights; the Shading toggle keeps its icon under its own name.
The detail was chosen with one threshold for the whole view, which flipped
as the camera moved and swapped large areas between coarse and fine at once,
and most of the tile budget went to the backdrop. The widest-looking tile is
now split first, so a small move changes a tile or two.
Ground moves on a drag and turns on a right drag, without inertia, and the
camera stays above it. The sampling note waits until sampling lasts.