The highest block of a column is highest(x, z, ignoreFluid) wherever it is
asked, and a sapling's surroundings read a block with get like every other
block view. The registry's property change is withPropertyIfAccepted, as it
checks the block and keeps a content plugin's block, unlike
BlockState.withProperty. BlockView no longer links the removed
PlacementContext.blocks().
JsonSplicer holds the text edits JsonText used to carry; GraphEdit works on
it with typed path steps. The bridge maps the API's Optionals to the wire the
studio already reads (-1 for no part or block, a blank group), so the studio
is unchanged.
Graph nodes take an optional part and their edits as one record, paths are
built from typed steps, and entries without a folder leave their group
empty.
JsonText only reads now; splicing text is the host's, as the studio makes
every write. JsonPath steps are a sealed Key or Index. Absent values are
empty instead of -1 or blank: GraphNode.part, BlockPattern.pickAt and the
entries' group. GraphNode's child list, movability and additions are one
Edits record.
README and DESIGN describe the tooling package, CONTRACTS maps it, and the
docs no longer name the types the last batch removed.
IrisObjectTransformer and TerrainBlockView served only
PlacementContext.objects() and blocks(), now gone from the API. The
settings decoder no longer reads object generator keys, and the schema
drops the platform biome reference. The entity pin moves because
EntitySpec no longer prints its empty extensions list (verified: the new
print with ", extensions=[]" put back in its three places is the old one).
The object generator registration (registerObject, ObjectGenerator,
ObjectGeneratorFactory, ObjectGenerationContext, FeatureRole): the host
catalogued generators but never called one. PlacementContext.objects()
with ObjectTransformer and ObjectTransform, PlacementContext.blocks()
(placementTerrain() answers the same), BlockPalette,
EntitySpec.extensions and Reference.BIOME go too.
Port v3e's studio.editor setting. StudioEditorLauncher opens packs and pack
files in the chosen editor: VSCode through the desktop, Zed as its own
process on the pack folder. ZedProjectSettings keeps the pack's
.zed/settings.json schema mappings in step with the code workspace.
studio.editor replaces studio.openVSCode, with no legacy bridge.
`iris studio editor` (aliases vscode, vsc), `iris edit`, the modded edit
and workspace commands and the studio app's "Open biome file" all go
through the launcher. The bridge now says which editor opened the file,
or why none could.
The studio app's map and noise views replace them. Gone: VisionGUI,
NoiseExplorerGUI, their render controllers, viewports and palette, their
tests, the iris studio noise command on Bukkit and modded, and the 73
message keys only they used, from the Java constants and every catalog.
The overlays the studio bridge uses for player markers and teleports stay.
Under the 3D scene the entry's file shows as a tree of nodes, laid out
left to right. Clicking a node shows its settings on the right, a field
per schema option with defaults, ranges and enums; right click adds,
duplicates and deletes; dragging a node onto another regrows it there.
Undo and redo write earlier texts back. Edits are queued so quick ones
never refuse each other, and a file changed elsewhere is read again.
Context menus blur what is behind them, and submenus are portalled so
the menu no longer clips them.
New routes scene-file, scene-edit and scene-write read an editable
entry's file as nodes with the schema types its forms need, apply graph
edits (set, unset, append, add item, delete, duplicate, move) keeping the
file's formatting, and write whole texts back for undo. An edit made on
an older revision is refused with 409. Edits are refused with 403
outside a studio world, which alone hotloads its pack. Files are
written beside themselves and moved over, so the pack watcher never
reads one half written.
ProceduralObjectGraph reads a procedural file as a tree: the object, its
parts (stem, blob, branches, cluster, group, shared), materials and
decorations, each with its settings types and the parts that can be
added under it. ProceduralObjectScenes implements EditableSceneView.
JsonText parses a pack file and splices it while keeping its formatting
(v3e's JsonSource). EditableSceneView tells the studio which file an
entry is written in and reads that file as a NodeGraph: nodes at JSON
paths with their part id, roles, settings types and what can be added.
Pattern views from the server get a view each: entries by biome with a
search over names, a depth stepper, the entry's facts, and the blocks on
screen. Tiles are a pixel per column from afar and each block's tinted
top texture up close; spots a layer leaves empty read as nothing at this
depth.
The pan and zoom tile canvas the noise view had is now TiledView and
TiledCanvas, shared by noise and palettes, and the entry list is shared
with the scene views.
ModuleViews finds a pack's studio views of one kind; StudioScenes and the
new StudioPatterns sit on it. The bridge lists pattern views, their
entries, and lays out one tile of an entry at a depth (PatternEncoding:
JSON header with the block keys, then an i16 pick per column).
BiomePalettes lists each biome's surface, sea and cave ceiling layers,
its wall and its slab, and lays out the blocks one places at each depth.
It picks with each stage's own random (terrain, carve, post) and stacks
layers from the top as generation does, so the noise is seeded the same;
against a saved world the in-palette picks match (99.7% on Emberbark
Woods). Slope conditions are ignored and noted in the entry's facts.
A StudioView is now either a SceneView (block scenes) or a PatternView:
entries a module lays out from above, one block per column, at a depth
below the top, over a PatternArea. BlockPattern holds the picks and the
blocks they index. Both kinds register through ToolingRegistry.registerView
and share one id space in the host.
v3e's noise explorer: sources by category, seed with a random pick, five
palettes, pan and zoom down to sixteenth-block tiles, a hover readout, and
the noise as terrain with a relief slider. TileStore now takes a tile
source, so the map and the noise view share fetching, caching and the
coarser fallback drawing.
The noise view's catalogue (overlay noise, pack generators and expressions,
every noise style, in v3e's categories) and float tiles of any source at a
seed and scale.
A world the server saved, read from its region files, in 3D: the
1,024 blocks square around the region nearest its origin, coloured by
biome, block (each block's top texture, tinted) or height, with lakes
and rivers at their own levels. The saved worlds are listed by
namespace, the studio's own world first, and can be read again.
The terrain mesh now takes any surface with ground, water and colour per
vertex, holes where nothing is known; the 3D world is one such surface.
Framing uses the surface's own bounds, so vertices left out of the mesh
do not move the camera.
The bridge lists the dimension folders under the level folder that hold
region files, finds where a saved world's view opens (the middle of the
region nearest the origin, with its sea level) and serves square tiles
of saved columns: the ground under trees, plants and water, the water
surface over it, and its block and biome. Biomes the open pack saves
under its own keys get the pack's map colours.
Chunks are read with VolmLib's NBT reader in the 1.18 and later layout,
lazily, a chunk at a time; a region whose file changed is read again.
Snow and other thin blocks count as ground only where they lie on
ground, so snowy treetops are looked past.
The terrain around where the map last looked, 1,024 blocks square, in
3D: one vertex per map pixel from the biome tiles with heights, coloured
by biome, region or height, lit by slope. Walls round the rim and a
see-through sea at fluid height make the square read as a solid block.
The viewport now takes content with its own bounds and frames again when
told to, so the scene views and the 3D world share it. The near clip
follows the orbit distance, so surfaces a block apart no longer flicker
when the camera is far away.
Scene views the pack's modules show join the view list under Blocks.
Choosing one lists its entries under their folders, with a search, and
draws the chosen one with three.js: block states resolve to the client's
models (variants, multipart, parents, element and variant turns), their
textures go into one atlas, faces against solid blocks are left out, and
each side gets Minecraft's flat light and its block's tint. The blocks it
is made of are listed with their counts. Models the client draws without
elements stand in as cubes of their break texture.
The bridge lists the scene views the pack's modules registered, their
entries, and encodes a scene as a palette of block states and their
positions from the anchor. Assets come from the Minecraft client jar of
the server's version, fetched from Mojang the first time the studio asks,
checked against Mojang's SHA-1 and cached; until then the route answers
503 with Retry-After.
ModuleSetup.tooling() gives a ToolingRegistry, where a module registers
SceneViews: a catalogue of entries, each with variants the studio draws
in 3D, built from the pack for a world. View ids follow the module's id
and are unique; the frozen catalogue lists them by id.
A right-hand panel shows how the noise picks the regions or biomes in
view: a histogram per noise over its pick bands, and each option's weight
against its share of the view. The map can draw the picks, the settling
noise, or both, and any prepared region can be previewed across the map.
The picks route measures, for the area in view, how each region or biome
noise spreads over the bands that pick its options, against how much
ground each option gets. Tiles can carry the noise that settled each
spot's pick, and the regions view can preview one region across the
whole map with the surface biomes it would place there.
Preview tiles take their heights from the shading lattice, so they draw
as fast as biome tiles. Only coastline pixels can then disagree with the
hover's exact biome: 0.25% of spots at 1-2 blocks/px, 2.3% at 8.
The bridge serialises nulls so the studio can tell "none" from "not sent".
One row per pick under the card's title: region, biome list and each
child level, with the options' shares of the noise as a segmented bar,
the picked one in its colour and a marker at the noise value. A child
names the parent it replaced on its own line. The card is a little
wider so long biome names keep their region beside them.
The hover now carries the pick path: the region pick, the biome list
pick and every child level, each with its noise value and the share of
the noise every option owns. IrisComplex exposes the pick noise, the
pickable biomes and the child slots it already used, so the explanation
reads the same inputs the generator does; generation is unchanged
(probe signatures match before and after). Hover takes the view, since
the path depends on it.
- 128-pixel tiles by default and scales up to 4096 blocks per pixel, so
the studio fills the screen in smaller steps and can zoom out further
- A client that drops a tile it no longer needs closes the exchange
instead of logging a broken-pipe stack trace
- The bridge keeps its port after closing, and Paper's server-stop
quiesce closes the bridges, so their connection files are removed
even when the deferred service teardown never runs
A standalone Electron + React + Tailwind + shadcn/ui app that connects to
the localhost bridge `/iris studio map` opens and draws the world map with
the v3e studio's views, shortcuts, hover card, legend and styling.
- Finds running bridges from ~/.iris/studio/bridges and iris-studio:// links
- Biome, region, height and biome layer views from 128-pixel tiles
- Coarser previews first, so the screen fills sooner, then sharpens
- Hover card with Shift details, legend census with click to highlight
- Ctrl+click teleport, Alt+click open file, right-click menu
- Light, dark and system themes from the v3e studio palette
/iris studio map now starts a bridge for the world instead of the Swing
map: HTTP on 127.0.0.1, a free port and a per-bridge token, with the
world, tiles, hover, entities, teleport and open-in-editor, and server-sent
events for players and hotloads. A connection file under
~/.iris/studio/bridges lets a studio app on the same machine find it.
Works on headless servers. Bridges close with the plugin or mod.
The 2D views of the coming studio app (biomes, regions, height, land, sea
and cave biomes) as core code. A tile says what each pixel shows (its biome
and region, and heights for shading) with a ring of neighbour pixels, so the
app styles it without asking again; the hover describes one column.
The 37 part classes from v3e (dev) now live in engine/procedural, outside the host's own type
package, so the built-ins jar may register them as a resource kind. ProceduralObjectCatalog reads
iris:objects/procedural definitions from the pack's procedural/ folder and bakes their variants
per world (or detached, for reach); ObjectPool places procedural/<path> and procedural/<path>#<n>
keys like any object and warms them, and ObjectChunk keeps their baked leaves.
ProceduralValue reads its forms (number, range, keyframes, curve shape) through IrisApi's
@JsonForms codec instead of Gson. Trees: procedural/trees/ counts as a tree folder and
TreeGrowing reports every variant it places as a tree.
The v4-era kinds (tree, ruin, formation, coral, fungi, crystal), ProceduralPlacement,
ProceduralObjectSettings and PlacementSource are removed; ObjectPlacement is the one placement.
Procedural objects are now definitions of parts in the pack's procedural/ folder (module resource
kind iris:objects/procedural) that bake into variants; an object placement names them as
procedural/<path>, or procedural/<path>#<index> for one variant. The v4-era proceduralObjects
settings and their tests are gone.
- TreeDefinitionIndex knows trees/ and the ids modules report as trees; ModuleServices merges
only those.
- Golden test: the 72 definitions of the overworld pack (fixture procedural-parts) bake as when
the digests were taken, on a game-like block platform (GameLikeBlocks).
- Fixtures pack-before-the-port, pack-terrain and pack-before-loot-and-spawn converted: their
proceduralObjects became object placements, sets became placement snippets.
- Tests follow: tree index, warm-up, placement reach, surface support.
JsonFormsCodecs reads and writes IrisApi @JsonForms classes as the plain values Gson reads into an
Object, for the module settings decoder (and so every module resource file) and for tests'
TestSettings. IrisBlockRegistry.withProperty returns the state unchanged when the platform does
not accept the value, as IrisApi now defines it.
BlockRegistry.withProperty returns the state unchanged when the block has no such property or does
not accept the value, such as facing=up for a block that only faces sideways. Platforms threw.
@JsonForms(Codec) marks a value packs write in more than one shape, such as a number, a [min, max]
range or a curve object. The host hands its JSON to the codec as plain values and writes it back
through it; it never creates the class or reads its fields, and the schema describes it as any
JSON value. It is the one exception to the decoding contract, so module jars no longer need Gson
(which the plugin relocates) for such values.
TreeObjects no longer has a separate procedural list: a module reports the ids of every object it
places as a tree, procedural variants included, and the host only matches those ids.
A custom state's key is its base block, so a provider block (Nexo,
ItemsAdder) held in a mantle section that was written to disk before
its chunk generated read back as the vanilla base block. The mantle now
saves it under its custom id, which reads back through its provider.
Ported from v3e (af333cc93). Whether a plant stands on a ground block is
now the server's own canSurvive rule, asked in a two-block level, so
custom ground (CraftEngine and others) grows plants too. Plants that
fail on every ground, like wall and ceiling blocks, keep fitting as
before. Dead bushes stay off grass, as packs expect. Without the NMS
binding Iris's own table answers.
Test server, world v3eports (seed 1337, radius 500): 4,225 chunks,
0 failed, no errors; plants 70,161 vs 68,905 in iriswave6 over the same
961 sampled chunks, every plant type present.
Ported from v3e (31615dc05, ee7f54429, 92b02db15, 3ba277aa4).
CraftEngine blocks now resolve to their own block data and generate with
the chunk, warning once about properties the block does not have, so
only furniture is placed after generation. A deferred block with a state
finds its provider by its id alone. Where leaf decay is prevented,
CraftEngine leaves are made persistent too, and logs and leaves include
CraftEngine blocks with those tags, for IrisModule 501862b.
Ported from v3e (3ba277aa4). Overlapping objects wrote over each other
block by block, so one tree's leaves could cut another tree's trunk and
leave the top floating. Leaves now keep a log already placed there, as
in vanilla trees.
Ported from v3e (af1fe9808, 05eed1f6a, eb1a24411). A focused biome now
implodes into its children instead of painting the parent everywhere,
and region goto checks what the engine actually generates, so a focused
region is reachable and the others are not. Locating already covered
child biomes and focus.