Merge feat/structure-jigsaw-modules into port/v3-features

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.
This commit is contained in:
piexel committed 2026-11-10 14:33:49 +01:00
commit 2889274291
514 files changed
+29979 -15110

No files matched your search

@@ -1031,50 +1031,6 @@
"§cNow that you are aware of the risks, and have made a back-up:",
"§c/iris developer update-world {world} {pack} confirm=true"
],
"iris.bukkit.runtime.bulkstructureimporter.importing_vanilla_datapack_structures_mode_includenonjigsaw": "§aImporting §f{total}§a vanilla & datapack structures (mode={mode}, includeNonJigsaw={includeNonJigsaw})...",
"iris.bukkit.runtime.bulkstructureimporter.fail_invalid_key": "§c[fail] {keyString}: invalid key",
"iris.bukkit.runtime.bulkstructureimporter.jigsaw": "§7[jigsaw] {keyString} -> {name}",
"iris.bukkit.runtime.bulkstructureimporter.single": "§7[single] {keyString} -> {name}",
"iris.bukkit.runtime.bulkstructureimporter.skip_no_single_template_nbt_vanilla_builds_this_code_from_separate_piece": "§e[skip] {keyString}: no single-template NBT - vanilla builds this in code or from separate piece templates (imported via the templates pass); nothing to import as one structure.",
"iris.bukkit.runtime.bulkstructureimporter.fail": "§c[fail] {keyString}: {message}",
"iris.bukkit.runtime.bulkstructureimporter.fail_2": "§c[fail] {keyString}: {message}",
"iris.bukkit.runtime.bulkstructureimporter.fail_3": "§c[fail] {keyString}: {error}",
"iris.bukkit.runtime.bulkstructureimporter.bulk_import_complete_imported_skipped_failed_total": "§aBulk import complete: §f{imported}§a imported, §f{skipped}§a skipped, §f{failed}§a failed (§f{total}§a total).",
"iris.bukkit.runtime.bulkstructureimporter.building_single_template_structures_from_imported_pieces_one_variant_placed_per_generation": "§aBuilding single-template structures from imported pieces (one variant placed per generation)...",
"iris.bukkit.runtime.bulkstructureimporter.group_variants": "§7[group] {value} -> {value2} ({blocks} variants)",
"iris.bukkit.runtime.bulkstructureimporter.skip": "§e[skip] {value}: {message}",
"iris.bukkit.runtime.bulkstructureimporter.fail_4": "§c[fail] {value}: {error}",
"iris.bukkit.runtime.bulkstructureimporter.single_template_structures_built_skipped_failed": "§aSingle-template structures: §f{imported}§a built, §f{skipped}§a skipped, §f{failed}§a failed.",
"iris.bukkit.runtime.bulkstructureimporter.failed_enumerate_structure_templates_via_server_resourcemanager": "§cFailed to enumerate structure templates via the server ResourceManager: {e}",
"iris.bukkit.runtime.bulkstructureimporter.no_structure_templates_were_found_under_structure_resource_path": "§eNo structure templates were found under the 'structure' resource path.",
"iris.bukkit.runtime.bulkstructureimporter.importing_structure_templates_mode": "§aImporting §f{total}§a structure templates (mode={mode})...",
"iris.bukkit.runtime.bulkstructureimporter.fail_invalid_key_2": "§c[fail] {keyString}: invalid key",
"iris.bukkit.runtime.bulkstructureimporter.fail_5": "§c[fail] {keyString}: {message}",
"iris.bukkit.runtime.bulkstructureimporter.fail_6": "§c[fail] {keyString}: {error}",
"iris.bukkit.runtime.bulkstructureimporter.imported_skipped_failed": "§7...{processed}/{total} ({imported} imported, {skipped} skipped, {failed} failed)",
"iris.bukkit.runtime.bulkstructureimporter.template_import_complete_imported_skipped_failed_total": "§aTemplate import complete: §f{imported}§a imported, §f{skipped}§a skipped, §f{failed}§a failed (§f{total}§a total).",
"iris.bukkit.runtime.bulkstructureimporter.no_datapack_non_minecraft_structures_are_registered_ingest_datapack_restart_first_then": "§eNo datapack (non-minecraft) structures are registered. Ingest a datapack and restart first, then run this again.",
"iris.bukkit.runtime.bulkstructureimporter.importing_datapack_structures_mode": "§aImporting §f{total}§a datapack structures (mode={mode})...",
"iris.bukkit.runtime.bulkstructureimporter.fail_invalid_key_3": "§c[fail] {keyString}: invalid key",
"iris.bukkit.runtime.bulkstructureimporter.jigsaw_2": "§7[jigsaw] {keyString} -> {name}",
"iris.bukkit.runtime.bulkstructureimporter.single_2": "§7[single] {keyString} -> {name}",
"iris.bukkit.runtime.bulkstructureimporter.fail_7": "§c[fail] {keyString}: {message}",
"iris.bukkit.runtime.bulkstructureimporter.fail_8": "§c[fail] {keyString}: {message}",
"iris.bukkit.runtime.bulkstructureimporter.fail_9": "§c[fail] {keyString}: {error}",
"iris.bukkit.runtime.bulkstructureimporter.importing_datapack_structure_templates": "§aImporting §f{size}§a datapack structure templates...",
"iris.bukkit.runtime.bulkstructureimporter.fail_10": "§c[fail] {keyString}: {message}",
"iris.bukkit.runtime.bulkstructureimporter.fail_11": "§c[fail] {keyString}: {error}",
"iris.bukkit.runtime.bulkstructureimporter.could_not_enumerate_datapack_templates_via_server_resourcemanager": "§eCould not enumerate datapack templates via the server ResourceManager: {error}",
"iris.bukkit.runtime.bulkstructureimporter.datapack_structure_import_complete_imported_skipped_failed": "§aDatapack structure import complete: §f{imported}§a imported, §f{skipped}§a skipped, §f{failed}§a failed.",
"iris.bukkit.runtime.structurecaptureimporter.structure_capture_is_not_supported_by_active_nms_binding_skipping_capture_pass": "§eStructure capture is not supported by the active NMS binding; skipping the capture pass.",
"iris.bukkit.runtime.structurecaptureimporter.no_code_generated_structures_left_capture_everything_is_already_imported_as_structure": "§7No code-generated structures left to capture (everything is already imported as a structure).",
"iris.bukkit.runtime.structurecaptureimporter.capturing_code_generated_structures_no_nbt_template_into_scratch_world_skipping_any": "§aCapturing §f{total}§a code-generated structures (no NBT template) into a scratch world (skipping any wider/taller than {MAXSPAN} blocks)...",
"iris.bukkit.runtime.structurecaptureimporter.skip_did_not_place_capturable_structure_here_too_large_wrong_dimension_no": "§e[skip] {key}: did not place a capturable structure here (too large, wrong dimension, or no valid placement in a flat world). Stays vanilla-generated.",
"iris.bukkit.runtime.structurecaptureimporter.fail": "§c[fail] {key}: {message}",
"iris.bukkit.runtime.structurecaptureimporter.capture_objects_iob_x_x": "§7[capture] {key} -> objects/{name}.iob ({w}x{h}x{d})",
"iris.bukkit.runtime.structurecaptureimporter.fail_2": "§c[fail] {key}: {error}",
"iris.bukkit.runtime.structurecaptureimporter.captured_skipped_failed": "§7...{processed}/{total} ({imported} captured, {skipped} skipped, {failed} failed)",
"iris.bukkit.runtime.structurecaptureimporter.structure_capture_complete_captured_skipped_failed_total": "§aStructure capture complete: §f{imported}§a captured, §f{skipped}§a skipped, §f{failed}§a failed (§f{total}§a total).",
"iris.bukkit.runtime.featureimporter.no_vanilla_tree_object_features_are_exposed_by_active_nms_binding_importing": "§eNo vanilla tree/object features are exposed by the active NMS binding (importing structures only).",
"iris.bukkit.runtime.featureimporter.importing_vanilla_tree_object_features_variants_each_into_scratch_world": "§aImporting §f{total}§a vanilla tree/object features (§f{wantVariants}§a variants each) into a scratch world...",
"iris.bukkit.runtime.featureimporter.obj_objects_vanilla": "§7[obj] {key} -> objects/vanilla/{group}/{safeName} ({written})",