Commit Graph
4840 Commits
Author SHA1 Message Date
piexel ee5f3d90eb Stop fractured noise from mirroring across x = z
Each axis read the fracture at swapped coordinates, so the warp of z at
(a, b) was the warp of x at (b, a) and fractured styles were mirror
images of themselves across the diagonal. Each axis now samples its own
far, uncorrelated part of the fracture noise, on every path (generic,
fast 2D/3D, signed 2D/3D). The 3D fast paths also read the second axis
in 3D instead of 2D. Same number of samples as before.

Ported from v3e 855ab90be. Its second half (axialFracturing for built-in
fractures) does not apply: V5 has no shared-value fracture mode.

Fractured terrain changes. Retaken: TerrainLayersPinTest and the three
fractured values of IrisMathNoiseHotPathParityTest. CNGFractureMirrorTest
fails on the old code (780 of 780 samples mirrored).
2026-11-05 20:55:54 +01:00
piexel bcc5a1abb9 Move English message text into messages/en_US.json
Message classes now declare only ids; the English text, line lists and
plural forms load from one bundled JSON resource, which IrisMessages
turns into the catalog. A constant whose id is missing or has the wrong
shape fails at class load.

EnglishMessageCatalogTest guards that every English id has exactly one
constant. A round-trip dump of the new catalog is byte-identical to the
generated resource.

Java: -4711 lines; net -3185 including the JSON.
2026-11-05 19:17:30 +01:00
piexel 5e2eaba07e Follow the loot source id and the explicit jigsaw overrides
Debug lore names the table by its path. The native structure start plan keeps
SOURCE for an option the pack left out, as before.
2026-10-28 04:16:10 +01:00
piexel b48192d355 Take in the vocabulary only Iris core uses from IrisModule
37 types that IrisModule held for Iris core alone live in core now, in the same
packages, so no import changes.
2026-10-28 04:09:40 +01:00
piexel 40436352bf Let the object model stand on the api: turn, scale, paste, records
Core turns objects with ObjectTurn and BlockTurn and scales with ScaleMethod, so
the object model no longer reads the modules' ObjectRotation and
ScaleInterpolation; /iris object paste writes the turned blocks with
IrisObject.paste instead of running a placement. IrisObject takes no
ObjectPlacement; the structure placers call ModuleObjectPlacement directly.
IrisPlacements reads the run's name and JSON, the placement type comes from the
module, placements are stored as PlacementMarkers texts and read back as
PlacementRecords, the marker ids are Iris's own, the loot shuffle seed and the
protected floor come from the modules, entity knobs are EntitySpec fields, and
entity key completion is one handler by kind id. The entity pin is retaken with
the old print proven to hash to the old number.
2026-10-28 04:05:02 +01:00
piexel 3022c54a43 Cut dead and duplicate tooling found by the tooling audit
Map modes OBJECT_LOAD, DECORATOR_LOAD and LAYER_LOAD with BiomeMaxes and the
runtime and hotloader code that fed them; the placement scans in
Engine.getObjectPlacement and the PlacedObject.placement field nobody read;
Engine.hasObjectPlacement (find uses ModuleServices.objectPlacers); the object
section of /iris studio objects and the layer lines of /iris studio profile;
the package obfuscation, which wrote object names the exported JSON never used;
the modded packager and its command; the removed-field nags for fluidBodies,
surfaceOpeningClearance and caveProfile water fields; the IrisMod resource
family and the Gson reader only it needed; the test-only ObjectPlacements
helpers; WorldObjectPlacer; Interpolated.CAVE_RESULTS; DeserializationProbe.
2026-10-28 03:29:56 +01:00
piexel 3e8c22422f Put IrisApi on the modded adapters' classpath
The fabric, forge and neoforge builds resolved neither core's dependencies on
IrisApi nor the IrisApi types the adapters read (ResourceId, BlockTurn), so
none of them compiled. They apply the IrisApi source resolution like the root
build and compile against iris-api. NativeStructureReferenceRepairTest drops
the placement identity argument that NativeStructureStartPlan lost in batch 6.
2026-10-28 03:29:45 +01:00
piexel fe730fc8bd Drop ObjectPlacements.treeGrowth and IrisMod.blockReplacers
treeGrowth had no caller outside its own test; the jar's TreeGrowing
reads the settings itself. IrisMod.blockReplacers was never read and no
pack sets it.
2026-10-28 02:26:07 +01:00
piexel 9e4ac30423 Follow the module snippet folders and the moved types
Pack validators read decorators from snippet/iris/decorant/decorator and
cave profiles from snippet/iris/carve/cave-profile. Fixture packs and
the procedural golden set move their snippet files to the new folders;
digests are unchanged. Tests import the moved types from
art.arcane.iris.modules.

EntityKeyHandler names the entity kind by id instead of importing
EntityDefinition (IrisPackResources gains ids(kindId)).

ObjectPlacementRegressionTest compares the namespaced void-air key, as
its other assertions do; it failed when an earlier test had initialized
IrisObject.States under a platform with bare keys.
2026-10-28 02:22:22 +01:00
piexel 7471f9fc42 Batch 7 stage 4a: host biome height, sky biome and platform biome writes
IrisTerrainSampler answers biomeHeight and skyBiome the way IrisFloatingHost
did; IrisModuleMantle stores setPlatformBiome as the custom biome inject the
biome pass reads. IrisFloatingHost is deleted. A new test pins that sky and
custom biome picks ignore the random when an engine is given, which is why
the api takes none.
2026-10-28 01:58:50 +01:00
piexel c0ed5ed81e Batch 7 stage 3: host the api object model and placement service
IrisPlacements runs the pack's placement graph for PlacementRun over a
PlacerTerrain (an IObjectPlacer seen as an api PlacementTerrain) through
TerrainEdit; ModuleObjectPlacement uses it for Iris's own placements. Iris
offers IrisPackObjects, IrisLegacyStreams and the api block operations
(rotate, merge, withProperty, matches), and IrisObject is an api
PlaceableObject. IrisObjectHost, IrisObjectChunk, IrisObjectBuilder, the
placement facades, the placers they used (heightmap, sink, decay, island,
golden debug, cave and floating transactions) and IrisDimension.debugSmartBore
are gone. Tests follow; EdgeSimplexPinTest pins the module's simplex copy.
2026-10-28 01:25:49 +01:00
piexel e47acc847d Place with iris:objects placement settings
IrisObjectPlacement, IrisObjectTranslate and IPostBlockAccess are gone;
Iris places with the module's ObjectPlacement. IrisPlacementForm keeps
what Iris makes of a placement (its module settings decoded from the
placement's JSON, its noise as Iris generators, the surface warp cache)
on the placement's host slot. The placement reader decodes through the
module decoder. IrisObjectRotation becomes BlockStateRotation (state
turning only) and IrisObjectScale becomes ScaledObjects. Studio adds
placement-level module settings to the module's ObjectPlacement schema.

The procedural golden digests change only because the hashed options
JSON no longer carries the Iris-only warp cacheSize; a probe on the
previous commit and this one gave identical block digests and identical
option values otherwise.
2026-10-27 01:43:56 +01:00
piexel 74b129e105 Batch 7 stage 1: jigsaw definitions from the module build
The jigsaw definitions, StructureResources and IrisDirection now come from IrisModule. Iris
registers iris:structure (StructureModule) with its own modules; iris:structure-model keeps the
validator and the locator and vanilla structure services. StructureResources lookups take the
pack's PackResources, so callers pass data.getPackResources(); the Bukkit plugin compiles against
the API for that. IrisRegistrant extends the module's KeyedResource, which holds the load key.
A structure's loot placement is StructurePlacing.lootPlacement. Studio maps an API object
reference (GeneratedObject) to Iris's object loader.
2026-10-27 00:59:48 +01:00
piexel c9e36761e4 Batch 6 part 4c: tests follow the jar's own types
Tests import the settings and terrain types that moved to
art.arcane.iris.modules. A test world (ApiChunk) and the jar services
test hand a module from the built-ins jar its own copy of a settings
type, since the jar loads the types Iris no longer shares, as the pack's
decoder does for a real pack.
2026-10-24 10:48:58 +02:00
piexel 2e99491429 Batch 6 part 4b: placement facades in API vocabulary
Finding 40. IrisPlacementTerrain answers minWorldY and the placed object
as a ResourceId, IrisObjectShape its object id, IrisPlacementSettings the
collision sets as object ids; rockAt and hasBedrock are gone, so the host
no longer reaches TerrainPalettes or BedrockSettings. Placement tests
whose mocked engine had no world get a bare running world
(BuiltInPack.runBareWorld), whose default rock is the stone the old
no-terrain fallback wrote; the pinned hashes are unchanged.
2026-10-24 10:24:29 +02:00
piexel df10a90117 Batch 6 part 4a: purpose seeds and the running world for the built-ins
Finding 40, first step. IrisPackWorld answers seed(purpose) through
IrisWorldSeeds (iris:seed/* map to SeedManager's legacy seeds, any other
id to WorldRandom.purposeSeed) and running() with IrisRunningWorld (the
engine's layout over the whole world, chunk-stage settings, highest
block, cave floors, sky, platform loot tables, studio as debug), built
on first use. IrisObjectHost loses the layout and settings lookups the
API now answers and gains placedLoot; spawner cooldowns are offered as
SpawnCooldowns. Tests follow; generation output is unchanged (goldens,
pins and probes pass as they were).
2026-10-24 10:09:25 +02:00
piexel 711fdd078a Batch 6 part 3: host side of structure locating and the decoding contract
Structure locating goes through StructureLocator. Ownership records hold
one memo text and no placement identity (schema 3; older records fail
closed). NativeStructureStartsTest drops the identity column of its golden;
the other columns are unchanged.

ModuleSettingsDecoder applies the decoding contract (DecodingContract: null
members are left out, unknown enum names are errors). NoiseStyle no longer
carries cacheSize, a cache knob only. PlacementRequest has no id. Dimension
settings reach LinkedBiomes as PackSettings.
2026-10-24 09:24:18 +02:00
piexel dc0d61ce63 Apply IrisApi's typed keys, grouped values and @Ref(kind)
Batch 6, findings 41 and 42.

- Bukkit items, attributes, ambient effects and entities read ResourceIds,
  ContentKeys and the grouped ItemDrop and EntitySpec; Iris-only entity
  knobs come from the IrisEntityExtras extension.
- Iris serves the host kinds EXPRESSIONS and IMAGE_MAPS; noise styles map
  their ids back to the exact pack keys of the snapshot.
- Studio completes @Ref(kind = ...) of host kinds through Iris's loaders
  and @IrisStructureRef with the structure-model keys.
- Markers, sapling species, upper dimensions and jigsaw start pools are ids.
- Modded attribute lookup strips the minecraft namespace before the legacy
  generic prefixes, now that keys arrive namespaced.
- Loot and entity pins retaken: printed the old way, the new values still
  hash to the old numbers (recorded in the tests).
2026-10-24 06:06:59 +02:00
piexel ca07b8ce0b Batch 6 part 1: host the renamed api: minWorldY, find, blocks(), geometry
IrisPackWorld, platform starts and structure fits answer minWorldY(); ToolWorld
answers 0 explicitly. IrisBlockRegistry answers find(key) and no longer maps the
removed traits. IrisGenerationContext hands out blocks(). Placement settings pass
declaredBy on to the world's settings. Test fixtures implement the methods that
lost their defaults.
2026-10-24 05:19:11 +02:00
piexel b0a8904b31 Batch 5 of the API review: depend on IrisModule as a build of its own
settings.gradle includes ../IrisModule (art.arcane:iris-module); core depends on it with api, so the
adapters keep seeing module classes. Core no longer compiles the module's sources: gradle/default-module.gradle,
the ownership check and the module root of bukkitPurityRatchet are gone. The 111 module sources that need Iris
itself (layout model, objects and blocks, structure model and placer, object placers) move into core
unchanged.

:core:builtinModulesJar now takes IrisModule's checked iris-builtins.jar (capability art.arcane:iris-builtins),
checks it once more against the VolmLib classes the Bukkit jar leaves out, and writes it to
build/builtin-modules for the jar and shadowJar. The shadowJar leaves out the module artifact's copies of the
jar's classes, read from the jar itself. Tests copy that jar into packs (iris.builtinModulesJar) instead of
rebuilding it from builtin-modules.txt; the pack type purity gate scans both class roots.

EntityKeyHandler names iris:spawn's entity kind by id instead of SpawnResources.ENTITIES, which ships only in
the built-ins jar (verifyBukkitArtifact failed on it since batch 3).
2026-10-24 04:46:50 +02:00
piexel 64658013fe Host the batch 4 IrisApi: api and host artifacts, ModuleLoadException
- Depend on com.volmit:iris-api and com.volmit:iris-host; the probe
  compiles against the api only.
- PackModuleSet catches ModuleLoadException.
- ObjectPlacerEdit implements set(x, y, z, state) without a PlacedBlock;
  block entities sit in their own map.
- BlockStateHunk implements width(), height(), depth().
2026-10-24 04:19:42 +02:00
piexel 4bacc306e9 Batch 3 of the API review: Iris offers its facades as extensions
- IrisPackWorld offers IrisSeeds, LiveWorld, ObjectHost, FloatingHost,
  StructureHost (and the engine to the structure built-ins) through
  extension(); IrisPackSettings the facades a reach needs. withLog,
  the Source interfaces and the of(...) casts are gone (HostExtensions).
- The invocation inputs offer IrisChunk / IrisMantleChunk, MatterMantle
  and ObjectPlacement; IrisChunk.current(), IrisMantleChunk.current()
  and IrisPlacement.runBound are gone. A chunk stage's MatterMantle is
  its own chunk plus the loaded neighbours (OwnChunkMatter).
- IrisPackResources serves find(kind, id) / ids(kind) and maps ids
  back to pack keys at the host's edge (keyOf); ModuleServices,
  ContentServices, the settings decoder (a bare ResourceId is the
  pack's id), ModuleSettings and CaveBiomeAnswers convert there.
- MantleCaverns, IrisModuleMantle and PlacementMantle answer isCarved.
- Starts get a StartKey per platform start (weakly held).
- Bukkit adapters read the Optional-valued items, entities and effects.
- Tests follow; the loot and entity pins are retaken after checking
  that the old printing of the new values gives the old hashes.
2026-10-24 00:17:24 +02:00
piexel 7fc4445ab7 Host the batch 2 IrisApi: settings stacks, tool world, chunk scan
- ChunkModuleSettings returns SettingsStacks and keeps them per pack
  snapshot (SettingsStacks), so at() allocates nothing for a column
  whose region and biome were seen before.
- declaredInChunk is answered from the chunk's distinct regions and
  biomes, each asked for its settings once.
- A studio paste runs in a ToolWorld with the pack's resources and
  settings and its own state, so world() always answers.
- Level replaces FeatureAttachment.Target across decoding, schema and
  packaging; IrisTerrainSampler gives surfaceHeight.
- Tests: chunk scan parity and order, the stack cache, the tool world;
  engine mocks now serve pack resources as real engines do.
2026-10-23 14:17:26 +02:00
piexel 466d5149db Host the batch 1 IrisApi: module setup and timings on every runner
Iris's own modules (biome, custom, structure model) and the test modules
move to IrisModule.setup, and built-ins are set up through
ModuleSetups.run. Iris now passes StageMetrics to the placement and
mantle runners as well as the chunk runner. The biome module no longer
times itself; iris:biome/write feeds the biome metric through
StageMetrics instead.
2026-10-23 13:00:21 +02:00
piexel bc7f9127b5 Drop the legacy handling of a pack's own iris-builtins.jar
Nothing is released, so packs get no compatibility path: a pack that
still holds its own iris-builtins.jar fails to load naming both jars
(IrisApi), instead of being skipped with a warning. The missing
built-ins warning no longer suggests copying the jar into a pack, which
would now collide with the bundled one; it says to build the plugin.
2026-10-22 09:59:51 +02:00
piexel 72c3d662c1 The plugin bundles iris-builtins.jar and every pack loads it
A world's pack copy carried its own modules/iris-builtins.jar, which
went stale with every plugin update and, since a used pack that cannot
load stops startup, would stop the server. Now :core:builtinModulesJar
packages the jar from core's own compiled classes (moved here from
IrisModule's build, with IrisApi's ModuleJarCheck), and core's jar and
the Bukkit shadowJar carry it as iris-builtins.jar, leaving its classes
out of the plugin's own. IrisModuleHost unpacks it to a temporary
folder and bundles it (ModuleHost.bundlingJars), so every pack loads
it as if it were in its modules folder.

A pack's own copy is left out; Iris warns once with its path.
MissingBuiltInModules now only fires for an Iris build without the jar
(Iris's own tests), and says so.
2026-10-22 09:45:47 +02:00
piexel 91b251b352 A pack that cannot load stops the server only when a world uses it
The startup datapack compile used to fail on any pack whose modules or
dimensions could not load, so one broken pack nobody used stopped the
whole server. Now a pack that cannot load stops the compile only when a
world uses it: a pack copied into a world's folder belongs to that
world, and an installed pack is used by every configured world that
selects one of its dimensions and has no copy of its own (PackUse). The
message names the pack, why it cannot load, and the worlds using it.
A pack no world uses is left out with a warning, and the server starts.

The pinned registry requirements leave out the same packs, so the
plugin no longer reports "Unable to pin loaded Iris datapack registry
requirements" for them. The dimension type folder is always created,
so a datapack built only from left-out packs still reads as complete.
2026-10-19 15:58:11 +02:00
piexel 8aa07403e7 Pin tree palettes to Iris's palette noise as before the port
The golden test stubs palettes with a hash, so nothing pinned the real picks. A bloomspire tree with a diamond/gold
trunk palette now bakes through IrisPackResources' real block registry. A probe of a pack whose only land biome grows
that tree gave the same signature on this build and on the build before the tree port (Iris 48e328bae,
IrisModule 0d557da), and this digest was taken after.
2026-10-19 15:36:44 +02:00
piexel c0080c4bbe Probe binds AtomicCacheFailureReporting like the plugin and the mods
A failing cache supplier now reaches the probe's error sink, so the probe reports it the way a server would.
2026-10-19 15:29:45 +02:00
piexel 46b94ad6a8 Remove iris:placement-settings: the placement stages describe their held types 2026-10-19 15:29:45 +02:00
piexel 37851fee0c A module resource that fails to read throws with the reason
ModuleResourceFiles.read reports the file as before and then throws an IllegalStateException carrying the decoder's
message, so validators can say what is wrong instead of pointing at the log.
2026-10-19 15:29:45 +02:00
piexel 302166f115 Host side of the structure port: IrisStructureHost, iris:structure-model
Iris's worlds serve a StructureHost backed by the engine's StructurePlacing.
The new host module iris:structure-model registers the structure resource
kinds, the structure validator, the locator and the vanilla structure answers;
iris:structure loads from the built-ins jar, so no generation module is
compiled into Iris any more. The schema builder and the export closure read
Reference.PACK_STRUCTURE. Test fixtures serve the model module next to the
structure module, and the purity allowlist drops DecoratorCore, which no
longer touches Bukkit.
2026-10-15 13:03:45 +02:00
piexel 40f042dc8e Host side of the floating port: IrisFloatingHost
IrisPackWorld and IrisPackSettings serve a FloatingHost; iris:floating loads
from the built-ins jar and is no longer compiled in. ChunkContext loses the
shared island boundary sampler. The floating tests move to the API types, the
jar tests load the jar without stand-ins, ApiChunk's world serves empty
floating and object hosts, and UndersideTurnTest pins the underside turn
against IrisObjectRotation.xFlip180WithY.
2026-10-15 12:36:10 +02:00
piexel 901d46a3b9 Host side of the procedural port: IrisObjectBuilder, ProceduralOptions
IrisObjectBuilder builds a module's procedural variants as Iris objects (and logs the golden-debug digest
for every kind), ProceduralOptions reads a ProceduralPlacement as an IrisObjectPlacement, and IrisObjectHost
caches resolved placements per world. The golden test pins the same digests through the new API.
2026-10-15 11:55:18 +02:00
piexel ad85b7e729 Golden procedural objects also on a game-like platform: properties, defaults, missing blocks 2026-10-15 11:41:55 +02:00
piexel 14b50729e7 Golden test: the overworld pack's procedural objects bake the same variants and placement options 2026-10-15 11:38:55 +02:00
piexel 4209468b4c Placements hand out their pack's resources instead of looking up spawn markers; marker test follows its class 2026-10-15 11:22:39 +02:00
piexel 85dfe08290 Missing built-ins warning names everything a pack loses without the jar 2026-10-15 07:48:13 +02:00
piexel 2d6d60a0fa The Bukkit jar leaves out Iris's own unused classes again: moving the VolmLib entries into their shared file had dropped the Iris entries that sat in the same list, so GridLock shipped without the GridLockSupport it needs 2026-10-15 07:36:17 +02:00
piexel 1f388d761e Merge branch 'wave3b/2' into feat/irisapi-host
# Conflicts:
#	adapters/modded-common/src/main/java/art/arcane/iris/modded/command/ModdedStudioCommands.java
#	core/src/main/java/art/arcane/iris/core/modules/IrisModuleHost.java
#	core/src/main/java/art/arcane/iris/core/modules/IrisPackWorld.java
#	core/src/test/java/art/arcane/iris/core/modules/BuiltInPack.java
#	core/src/test/java/art/arcane/iris/core/pack/ModuleResourceClosureTest.java
#	core/src/test/java/art/arcane/iris/engine/modifier/ApiChunk.java
#	core/src/test/java/art/arcane/iris/engine/object/placement/IrisObjectPlacementToPlacementTest.java
2026-10-15 07:30:30 +02:00
piexel 9a0c4af126 The duplicate-id test uses iris:floating, which is still compiled in, since terrain moved into the jar 2026-10-15 07:28:26 +02:00
piexel eca3908ec1 Merge terrain, decorant and deposit (wave3b/4) with carve and placement: one pinned mantle chunks set with loaded-chunk lookup, both mantle margins, placement terrain reads BedrockSettings and TerrainPalettes, IrisCaveDressing goes 2026-10-15 07:23:42 +02:00
piexel 4f2dd86595 Placement settings read port 6's PlacementMarker: marker targets resolve through the pack's block registry, and spawn markers through its resources 2026-10-15 07:13:42 +02:00
piexel 27ad269e8b Merge branch 'wave3b/5' into feat/irisapi-host
# Conflicts:
#	core/src/main/java/art/arcane/iris/core/modules/IrisModuleHost.java
#	core/src/main/java/art/arcane/iris/core/modules/IrisPackWorld.java
#	core/src/main/java/art/arcane/iris/core/modules/MissingBuiltInModules.java
#	core/src/test/java/art/arcane/iris/core/modules/BuiltInPack.java
#	core/src/test/java/art/arcane/iris/engine/framework/StructureCaveAnchorResolverTest.java
2026-10-15 07:10:18 +02:00
piexel 4928a80035 Merge branch 'wave3b/3' into feat/irisapi-host
# Conflicts:
#	core/src/main/java/art/arcane/iris/core/modules/IrisModuleHost.java
#	core/src/test/java/art/arcane/iris/core/modules/BuiltInPack.java
2026-10-15 07:09:43 +02:00
piexel f17267ab8b Merge branch 'wave3b/1' into feat/irisapi-host
# Conflicts:
#	core/src/main/java/art/arcane/iris/core/modules/IrisModuleHost.java
#	core/src/test/java/art/arcane/iris/core/modules/BuiltInPack.java
2026-10-15 07:09:26 +02:00
piexel 26c2f128f5 Tests for iris:objects' host side and helpers (placement changes, effective placements, cave anchors, ObjectPlacements); the purity allowlist drops IrisTree 2026-10-15 07:08:44 +02:00
piexel 5d9f960a20 Merge branch 'wave3b/6' into feat/irisapi-host 2026-10-15 07:08:41 +02:00
piexel 556ad2faf2 The missing built-ins warning names the caves 2026-10-12 02:41:59 +02:00
piexel 44c5b0ed8a Studio's layer view reads the biome's layer styles through IrisValues 2026-10-12 02:40:40 +02:00