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.
NoiseType.create wraps every noise in OffsetNoiseGenerator, which was not
an OctaveNoise, so CNG never set the octaves on the noise inside it. Every
multi-octave style sampled one octave: no fine detail, and a value spread
about twice as wide (natureplanet's continent style marked 21% of the world
as sea instead of v3's 6%). The wrapper now forwards setOctaves to the noise
it wraps, as VolmLib's v4 wrapper does.
A startup world builds its engine before CraftEngine loads its packs, so
every CraftEngine block resolved as missing and stayed that way. While a
provider is still loading, an unclaimed namespaced block now resolves to
an air placeholder without a warning, and the worlds that got one hotload
once the provider reports its content loaded.
CraftEngine wraps the active chunk generator during WorldInitEvent, after
Iris injected its own. Every identity check against the active generator
then failed: studio open threw while scoping structures, and native
structure creation, references and locating silently did nothing.
IrisData.get hands back a shared instance whose file listings outlive edits, so a
studio update or datapack ingest regenerated schemas that still offered removed keys
and missed new ones.
The cave biome stream answers such a region with a placeholder biome that has no pack key. It reached the cave depth lookup and the terrain sampler, which both key by the pack name, and every chunk failed with a NullPointerException.
The Bukkit jar relocates Iris's own Gson, and the relocation rewrote the package name in the exposed list, so modules were shown Iris's copy and every reference to com.google.gson failed the pack load. The name is now assembled at run time.
Structure placement and jigsaw now live in the built-in modules jar, on top of the port's weighted picking, studio tooling
and procedural object work.
api/CONTRACTS.md keeps both sides' rows: the weighted entries and the studio bake and scene creation types from the port,
and VanillaStructureContext.world, Argument.reading, PlatformStructures, tool worlds and the services lookup from the
structure move.
PackModuleResourceKindTest installs the built-in modules jar into its castle pack, as the structure move requires, and
writes the dimension and region lists as weighted entries, as the port requires.
StructurePlacing takes the structure move's version. Its int sentinel for a sampled height is replaced by an explicit
sampledHeight flag that calls ObjectRun.automatic, and explicit pieces pass their world Y minus the world's minimum, so an
explicit world Y below zero stays a height (e3dd61c17).
StructureOutputPinTest.everyScenarioPlacesThePinnedStructures is re-baselined for the underground scenario's writes hash
only (9176f55f60410c117cdd9d5e to 1025f82c04539d4881a0e92b): pieces at world Y -1 are now placed there instead of on the
surface. The start count, the piece hash and every other scenario are unchanged.