Commit Graph
5247 Commits
Author SHA1 Message Date
piexel a5d0229417 Register structure list, info and verify through the tooling api
StructureModelModule mounts /iris structure list|info|verify as a module Command:
list writes the structure index through ToolPack.edit, info takes the structure as a
pack resource, and verify reads the world the sender stands in and reports in plain
text. The tests run list, info and verify through the dispatcher and pin that no other
module can take the structure root name or its aliases.
2026-11-06 10:51:12 +01:00
piexel bcec8e474d Add the tooling command dispatcher and the ToolPack over Iris's pack data
ToolingCommands resolves the pack of a line (pack=<name>, the sender's world, the
sender's open studio), walks the registering module's Command tree, parses the typed
arguments and runs the action on a worker thread. It also completes, and gates
commands to operators unless they are open to everyone. IrisToolPack holds the
pack's IrisData for each edit, so no hotload or second edit runs inside it, then
reloads the resources once; outputFolder is the workspace exports folder of the pack
and IrisObjectCodec reads and writes .iob.
2026-11-06 10:51:10 +01:00
piexel fc81e54b0c Add the platform-neutral command api for module tooling
A module registers a root Command through ToolingRegistry.registerCommand: typed
Arguments (word, text, integer, decimal, flag, choice, resource, registered),
sub-commands, and a CommandAction that runs against a CommandContext with a
ToolPack, a Sender and the platform's registries. ToolPack.edit is the one way to
change pack files; ObjectCodec reads and writes the host's object format.
The host catalogues the root commands and fails a pack load when two modules
claim one root name or alias, naming both.
2026-11-06 10:17:59 +01:00
piexel f7d2ce86a7 Pin that the export writes the structure graph's references 2026-11-06 10:08:10 +01:00
piexel 5979e3d49d Export structures and objects through the generic resource closure
The packager no longer runs StructurePackageClosure: ModuleResourceClosure
already follows the structure, pool, piece and loot references the model
annotates, and now also collects the object keys everything it follows names.
Pack validation runs first and reports broken structure graphs.

ExportClosureComparisonTest is the gate. On the overworld pack, following every
structure gives the same 210 pools, 1169 pieces and 1169 objects as before. The
export now also carries 10 objects that floating child biome object overrides
place, which the old export left out.

PackExportClosure had no callers and is removed.
2026-11-06 10:07:32 +01:00
piexel 4e7a46fb2d Drop the legacy structure index cleanup
structures/structure-index.json is no longer removed or skipped by validation.
Nothing is released, so an old pack that still has the file sees it reported as
a structure without a start pool.
2026-11-06 10:07:32 +01:00
piexel ab32568550 Check structure placements and references as typed settings
The 800-line JSON placement validator is gone. StructurePlacementValidation
checks what the placement types cannot state (one backend, separation below
spacing, the height band, the ring radius, placement ids and anonymous grids,
editable structures that exist and avoid VACUUM/ENCASE, registered native
sources and start pools). StructureReferenceValidation checks the structure,
pool, piece and object references of every file, placed or not. Shapes, enum
names and bounds are the decoder's.

Validators read the platform's registries through ValidationContext.platform(),
empty in a build and at datapack bootstrap.

The live jigsaw metadata, start-element span and terrain-envelope checks are
cut (design call 3.7).

Object and matter loaders no longer read the runtime settings outside a runtime
pack, so a pack validates without a platform. A number option written as text
now names its path: "structures[0].terrain.lobeStrength must be a number".
2026-11-06 10:07:19 +01:00
piexel 480e5485ac Document tooling parts, the class check partition and ModuleJarCheck --platform 2026-11-06 08:14:45 +01:00
piexel e999af0082 ModuleJarCheck checks the parts of the platform named by --platform
--platform=<name>:<platform api jar> checks that platform's tooling parts against
the jar and what a part may see. Without it parts are skipped and the output lists them.
2026-11-06 08:13:39 +01:00
piexel 66c4f01b21 Check tooling parts apart from generation code and load them in their own loader
Classes in a part's packages are not checked as generation code. Generation
code that uses a part class fails the pack load. Parts of the platform the host
runs on (ModuleHost.runningOn) are checked against what a part may see; parts of
other platforms are skipped unread. ToolingPartLoader is a child of the pack's
loader that defines the part itself and hands platform packages to the platform's
loader. ToolingPlatform describes a platform; BUKKIT is Paper's.
2026-11-06 08:11:35 +01:00
piexel 2e4fd306e8 Hide the platform packages of the tooling api from packs
com.volmit.tooling.<platform> is carved out of the exposed packages the way
com.volmit.host is; the neutral com.volmit.tooling stays visible.
2026-11-06 08:06:08 +01:00
piexel b943a43442 Read tooling parts from the module jar's manifest
Iris-Tooling-Parts lists <platform>=<entry class> entries. A part is the entry
class's package and subpackages. A malformed entry, an entry class the jar does
not hold, or parts that would share a class fail the load naming the jar and the entry.
2026-11-06 08:05:39 +01:00
piexel 806792ebae Validators can read the platform's registries
ValidationContext.platform() hands a validator the ids the running
server registers, keyed by the same Reference a @Ref option names, so
a module checks that a structure, structure set or template pool exists
without reaching into the host. Empty when the host validates without a
platform.
2026-11-06 07:59:37 +01:00
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