Commit Graph
5334 Commits
Author SHA1 Message Date
piexel 1bcd846fb5 Enforce declared bounds and make importedStructures a typed check
The settings decoder now enforces @MinNumber/@MaxNumber on every option
a pack writes, nested ones included, naming the full path. Module
resource files get the same check. Pack validation reports every
dimension, region and biome whose settings fail to decode as a blocking
error; before, the failure only logged and the pack passed.

With that in place, batch 9 S15 replaces 120 lines of hand-written JSON
checks of importedStructures with a typed check beside StructureValidator
for what types cannot say: blank keys and a structure set without a
namespace. @MinItems stays unenforced for now (OPEN_QUESTIONS 57).
2026-11-06 07:53:57 +01:00
piexel d1a9c2c68b Cut structure place commands, importvanilla structures and transform nags
Batch 9 stage 1 cuts S9, S10, S11 and S14:
- /iris structure place (Bukkit and modded) is gone; placing an Iris
  structure in-world is studio tooling that moves with the module.
- /iris studio importvanilla no longer takes structures; the structure
  import commands are the one entry point.
- The rotation/translate/scale nag on structure placements is gone. A
  parse-only pass keeps reporting dimension, region and biome files that
  are not JSON.
- Their message keys leave the catalog and every locale.
2026-11-06 07:41:37 +01:00
piexel 949157fd26 Drop Iris's compatibility seeds, reserved stage flags and noise fallbacks
- Iris answers every purpose seed by the API's rule; IrisWorldSeeds and
  its legacy map are gone.
- Every mantle stage gets an assigned flag; disabledComponents names
  stages by id, and a name that matches no stage fails the world.
- An unknown noise style or a missing expression throws.
2026-11-06 07:31:11 +01:00
piexel 672f781132 Document the stage-id disabledComponents and rule-based seeds 2026-11-06 07:31:09 +01:00
piexel e8fca6d8c6 Purpose seeds follow one rule; unknown noise styles fail
PackWorld.seed(purpose) is a default method, WorldRandom.purposeSeed of
the world seed, for every host and purpose: the exception that let a
host answer its own built-ins with older seeds is gone. An unknown style
name or a missing expression now fails like a missing image map, instead
of sampling flat or falling back to the base style.
2026-11-06 07:31:08 +01:00
piexel 6e1a206013 Follow @ResourceRef in the export closure and schema 2026-11-06 07:16:27 +01:00
piexel 6e2d94a4c8 Name pack resources with @ResourceRef 2026-11-06 07:16:26 +01:00
piexel 264f754297 Split @Ref into @Ref(Reference) and @ResourceRef(Kind.class)
@Ref had two attributes of which exactly one had to be given, checked
only at pack load. One annotation per concept makes a wrong
combination a compile error; giving both still fails the load.
2026-11-06 07:16:25 +01:00
piexel 4acc1ee2b9 Test how PlacerTerrain keeps each marker kind
Replaces MantleMarkerTypesTest, which only kept two id copies equal.
2026-11-06 06:42:25 +01:00
piexel 7bc9f21f50 Write typed markers with an exhaustive switch; drop MantleMarkerTypes
The marker ids no longer need a copy in core or a test keeping it equal
to the module's.
2026-11-06 06:37:34 +01:00
piexel 6c4bbb1df5 Place typed markers; drop ObjectMarkers 2026-11-06 06:37:33 +01:00
piexel c577b68c00 PlacedMarker is a sealed type of the markers the host keeps
The open (type, attributes) shape promised markers the host refused at
runtime. PackMarker, TreeMaterial and BuriedTreasure make an unkept
marker a compile error and remove the shared id strings.
2026-11-06 06:37:32 +01:00
piexel 0c2aefef20 BiomeModule and CustomModule own their stage constants
Core modules no longer take their stage ids from the built-ins jar's
IrisStages.
2026-11-06 06:30:50 +01:00
piexel f466979679 Register settings one type per call; drop core stages from IrisStages
iris:biome and iris:custom are core modules, so their stage constants
now live in BiomeModule and CustomModule instead of the built-ins jar.
2026-11-06 06:30:49 +01:00
piexel 32a07bd005 registerSettings takes one settings type
The varargs over a generic Class made every caller compile with an
unchecked generic array warning. One type per call matches
registerResourceKind and registerValidator.
2026-11-06 06:30:47 +01:00
piexel b961a5d3b2 Follow the API's renamed highest, get and withPropertyIfAccepted 2026-11-06 06:18:37 +01:00
piexel 956c33e8db Follow the API's renamed highest, get and withPropertyIfAccepted 2026-11-06 06:18:37 +01:00
piexel 84bd65fdc4 Give one concept one name
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().
2026-11-06 06:18:37 +01:00
piexel f98d78a87b Splice studio edits in core instead of the API
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.
2026-11-06 06:09:16 +01:00
piexel 59f24a03af Follow the API's typed tooling values
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.
2026-11-06 06:09:14 +01:00
piexel cdd138d9f4 Tighten the tooling package and document it
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.
2026-11-06 06:09:12 +01:00
piexel c0ac9d7f4e Follow the API's removed object transformer and placement blocks
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).
2026-11-06 05:55:51 +01:00
piexel 5d0c378f88 Build entity specs without the removed extensions 2026-11-06 05:55:48 +01:00
piexel 2b6f96e5c2 Remove API surface no module or host uses
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.
2026-11-06 05:55:48 +01:00
piexel 1c50eaf776 Fall back to a plain "Opened" when the server sends no message 2026-11-06 05:31:18 +01:00
piexel eb2ac206b1 Choose the studio editor: VSCode, Zed or none
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.
2026-11-06 05:31:17 +01:00
piexel a27c0bf860 Show a read-only node editor as a short lock label
The reason, outside a studio world, moves to the label's tooltip so the
header stays on one line.
2026-11-06 05:15:02 +01:00
piexel 9c39c564be Remove the Swing vision map and noise explorer
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.
2026-11-06 05:15:02 +01:00
piexel 922fe5e4cf Add the node editor to the procedural scene view
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.
2026-11-06 05:06:28 +01:00
piexel db2962a25e Edit procedural objects from the studio bridge
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.
2026-11-06 05:06:25 +01:00
piexel 2896aeb400 Show procedural objects as nodes in the studio editor
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.
2026-11-06 05:06:23 +01:00
piexel d0b57a4886 Add JsonText, JsonPath and EditableSceneView for the studio node editor
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.
2026-11-06 05:06:21 +01:00
piexel 1aba430153 Add the Palettes view
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.
2026-11-06 02:39:48 +01:00
piexel 7eff4d0754 Serve module pattern views over the studio bridge
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).
2026-11-06 02:39:45 +01:00
piexel 949d2ecac3 Add the Palettes studio view to iris:terrain
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.
2026-11-06 02:39:43 +01:00
piexel 2befcb9487 Add pattern views to the studio tooling
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.
2026-11-06 02:39:40 +01:00
piexel 8ace4ccc99 Noise view: the pack's noise and the noise styles in 2D and 3D
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.
2026-11-06 02:15:27 +01:00
piexel 5dd753c589 Studio bridge: noise sources and noise tiles
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.
2026-11-06 02:15:24 +01:00
piexel 3fde8c420f Add the saved world view
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.
2026-11-06 01:58:23 +01:00
piexel 7d06fb50c3 Studio bridge: read saved worlds from their region files
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.
2026-11-06 01:58:21 +01:00
piexel 874cb4fe16 Add the 3D world view
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.
2026-11-06 01:36:59 +01:00
piexel cb3859b40f Show every procedural object variant in the studio
iris:objects registers the Procedural scene view: each procedural
definition with as many variants as it asks for, baked the way the
world bakes them.
2026-11-06 01:28:44 +01:00
piexel 0732f5a9b8 Scene views: step through an entry's variants 2026-11-06 01:28:44 +01:00
piexel e0812cca66 Objects view: the pack's block scenes in 3D
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.
2026-11-06 01:26:06 +01:00
piexel c753a1a7fe Studio bridge: scene views and Minecraft assets
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.
2026-11-06 01:18:52 +01:00
piexel f70b8a8abc Show the pack's objects in the studio
iris:objects registers the Objects scene view: every object of the pack,
listed under the folders of its file, one scene each.
2026-11-06 01:18:48 +01:00
piexel a658cd2446 Let modules show block scenes in the studio
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.
2026-11-06 01:18:45 +01:00
piexel 674f9756e3 Map: pick inspector, noise display and region preview
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.
2026-11-06 01:10:21 +01:00
piexel 13c0705d44 Studio map: inspect noise picks and preview one region
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".
2026-11-06 01:10:17 +01:00
piexel e20bf1dd57 Hover card: show how the spot was picked
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.
2026-11-06 00:40:36 +01:00