Skip to content

Latest commit

 

History

History
331 lines (232 loc) · 22.6 KB

25-pack-management.md

File metadata and controls

331 lines (232 loc) · 22.6 KB
title Pack Management
description Iris documentation: Pack Management
published true
date 2026-11-02 23:45:00 UTC
tags iris
editor markdown
dateCreated 2026-08-09 00:00:00 UTC

Download, validate, clean, package, or update an Iris pack.

Pack copies

Keep these three copies separate:

  • The authoring copy, at packs/<key>/. What Studio edits and what /iris create copies from.
  • Generation snapshots, at <world>/iris/generation/epochs/<epoch>/pack/. Immutable. Ordinary Bukkit Studio picks up authoring edits automatically; a production world needs an explicit update.
  • The export, at exports/<key>.iris. A ZIP containing the dimension and its required resources, for distribution.

Validate the authoring pack before creating or updating a world. Editing that pack does not update an existing production world automatically.

Remove an authoring pack

There is no whole-pack removal command. Close Studio and wait for downloads to finish, then remove packs/<key>/ from the platform's data folder. Existing production worlds keep their saved generation snapshots; removing the authoring copy prevents new worlds and Studio sessions from using it. To delete a world and its terrain, use the separate world removal commands.

Walkthrough: take a pack from workspace to release

Run this after the pack works in Studio and before you create or update a production world.

1. Place the authoring tree. packs/<key>/ must contain at least one dimensions/*.json. On Bukkit that is the plugin data folder packs/. On Fabric/Forge/NeoForge it is config/irisworldgen/packs/.

2. Validate and read the result.

# Bukkit
/iris pack validate pack=<key>
/iris pack status pack=<key>

# Modded
/iris pack validate <key>
/iris pack status <key>

validate re-runs every check and publishes the result only while the pack contents and validation context still match. Download replacement, cleanup, and restore invalidate earlier validation; edits that preserve file timestamps still require current validation. status prints the last published result, which can be stale after an edit. Continue only when the pack reports loadable with zero blocking errors. Warnings are informational, but read them — unresolved content keys become blocking the moment strict content mode is on. If the console names content unavailable on this Minecraft version, run /iris pack compat and decide whether to accept the loss or declare a fallback before you release.

3. Preview cleanup without writing anything.

# Bukkit
/iris pack cleanup <key> mode=preview

# Modded
/iris pack cleanup <key>

Preview is the default on both platforms and touches nothing. Read every candidate. Cleanup finds resources with no inbound reference, which includes resources you load dynamically or reference from something it does not scan. If a candidate is intentional, stop here and leave cleanup unapplied.

4. Apply cleanup only if the preview was clean.

# Bukkit
/iris pack cleanup <key> mode=apply

# Modded
/iris pack cleanup <key> apply

Files move into <pack>/.iris-trash/<timestamp>/ rather than being deleted. Validate again after cleanup. If cleanup took something you needed, /iris pack restore <key> mode=apply (Bukkit) or /iris pack restore <key> apply (modded) moves the most recent quarantine dump back.

5. Package the closure.

# Bukkit
/iris pack package dimension=<key>

# Modded
/iris studio package <key>

Success is exports/<key>.iris plus a completion message. The authoring pack and existing worlds are unchanged. Packaging requires a pack with zero blocking validation errors.

6. Update an existing world. Back up the complete world, including generation history, then use Stage a production world update.

Pack workspace

Item Rule
Packs root Bukkit: plugin data folder packs/. Modded: config/irisworldgen/packs/
Visible packs Non-hidden directories directly under the packs root
"Present" Resolves inside the packs root, passes a safe-tree check (no symlinks escaping), has a real dimensions/ directory with at least one .json in it. Content is never parsed, so a pack with broken JSON is still "present" and will not be re-downloaded
Safe key Download destination folder names must match [a-z0-9_-]+

Download

Command Syntax
Bukkit and modded /iris download pack=overworld, /iris download pack=underworld, or /iris download link=<http(s)-zip-url> (alias /iris dl)
Param Default What it does
pack mutually exclusive with link Accepts exactly overworld or underworld. Case-insensitive
link mutually exclusive with pack Direct HTTP(S) URL whose path ends in .zip
overwrite false Replace an installed authoring pack and retain its previous directory in packs/.backups/<key>-<id>/

overworld and underworld follow each repository's latest stable GitHub release asset, so a download gets the current release without a new Iris jar. Existing directories are left alone unless you pass overwrite=true.

Pack Source
overworld https://github.com/IrisDimensions/overworld/releases/latest/download/overworld.zip
underworld https://github.com/IrisDimensions/underworld/releases/latest/download/underworld.zip

There is no listing lookup, repository-name lookup, branch selector, or implicit download from world and Studio commands. A GitHub branch archive works through link=https://github.com/<owner>/<repository>/archive/refs/heads/<branch>.zip. For a direct ZIP with multiple dimensions, Iris uses the shortest dimension key, then alphabetical order, as the destination folder.

Update an installed pack

Close Studio before replacing its authoring pack.

/iris download pack=overworld overwrite=true
/iris download pack=underworld overwrite=true
/iris download link=https://packs.example.test/custom.zip overwrite=true

Run one command at a time and wait for completion — the download slot never queues a second request. Iris requires a complete ZIP archive, validates the new pack before replacement, and prints the retained backup path; a failed publication restores the previous directory. Replacement uses the complete downloaded pack, so local edits survive only in the backup.

After the download completes, validate with /iris pack validate pack=<key> on Bukkit or /iris pack validate <key> on modded. Existing production worlds keep their current pack until you stage a world update and restart as described below.

Startup update notices

Startup checks installed overworld and underworld packs against their latest stable GitHub releases:

[Iris]: Custom Dimensions: 2
[Iris]:   overworld v4010 -> v4011 available
[Iris]:   underworld v1012
[Iris]: Update overworld: /iris download pack=overworld overwrite=true

These version numbers are examples. The list shows authoring pack versions, which can differ from the packs active in existing worlds. The check never downloads anything, and shows (update check unavailable) beside the installed version when it cannot reach GitHub. Custom packs have no release check.

Fabric, Forge, and NeoForge also send outdated-release notices to operators and the singleplayer owner, including when cheats are disabled. The notice gives the installed and latest versions, the actual config/irisworldgen/packs/<key>/ path, and /iris download pack=<key> overwrite=true. Review custom edits before replacing a pack. Successful downloads refresh the notice; existing worlds retain their saved production pack. To update one, back up the complete world, run /iris world update <dimension> <pack> on modded, and restart the server after staging succeeds.

Modded checks run when a local or dedicated server starts, not when a client merely launches or joins a remote server. Missing or unrecognized version metadata is shown as unknown rather than claimed to be outdated. Packs and settings are never copied between remote clients and servers.

Replacing the vanilla dimensions

The built-in Overworld and Underworld declare no external datapack imports. On the Paper family and on dedicated Fabric, Forge, and NeoForge servers (plain Spigot supports managed /iris create but not exact-slot /iris replace):

/iris download pack=overworld
/iris download pack=underworld

Restart after downloading the packs, then:

/iris replace minecraft:overworld type=overworld seed=123456789
/iris replace minecraft:the_nether type=underworld seed=-987654321

Restart once more after both replacements report staged. Omit seed= to keep that slot's existing saved seed. Custom packs that declare datapackImports must first complete the workflow in 22 - Native Structures & Datapacks; all referenced structures must be available before replacement.

On Fabric, Forge, and NeoForge the built-in packs need no external datapacks. For a custom pack that declares datapackImports, /iris datapack ingest cannot install those dependencies — put compatible archives in the target save's datapacks/ directory before the Iris pack loads, then restart with every input already present.

Validate

Command Syntax
Bukkit /iris pack validate [pack=<key>] (alias v)
Modded /iris pack validate [<pack>] (alias v)
Bukkit /iris pack status [pack=<key>] (alias s)
Modded /iris pack status [<pack>] (alias s)

Omitting the pack validates every visible pack and reports how many are broken. status reads the published result instead of re-running anything. A pack is loadable when it has zero blocking errors; status prints the blocking count and up to ten warnings plus a "more" count.

What blocks a pack

Check Blocking or warning
Pack folder missing, dimensions/ missing, or no dimension JSON in it Blocking, stops the rest of validation
Dimension JSON integrity As emitted
Biome terrain3D profiles and snippet/terrain-3d/ files: unknown fields, wrong types, out-of-range numbers, unknown noise styles, nesting past 32 levels, snippet references that escape the pack Blocking. See 47 - Volumetric Terrain
Loot graph: every referenced loot table resolves Blocking
Hydrology (hydrology and hydrologyPolicy): keys the settings do not define, at any depth, named by full JSON path Advisory. See 36 - Hydrology
Hydrology (hydrology and hydrologyPolicy): the full settings compile, as a starting world runs it (tiers and their catchments, ranges, areas, bank bands, material palettes, fluid profiles, sea inlet and cave pool bounds, and the fluid of every tier, of ponds and of cavePools), plus whole-number ranges and every hydrologyPolicy.fluid Blocking. See 36 - Hydrology
Object surface support Blocking
rotation / translate / scale on surfaces that do not support them Blocking
Structure graph. Dimension, region and biome placements need exactly one non-empty backend; native placements allow only an omitted, null or LEGACY anchor Errors blocking, warnings advisory
Native structure replacement envelopes Blocking
Spawner entries pointing at entities that exist, across spawns and initialSpawns Blocking
Custom biome spawn category resolution Blocking
Content keys and block properties Blocking when general.strictContentKeys is on or -Diris.strictContent is set, otherwise warnings. Palette-sourced findings stay advisory either way
Version content compatibility Advisory, unless the cascade reaches the dimension, which is blocking

Version content compatibility

Iris ships one Bukkit jar for several Minecraft versions, and pack authors build against whatever version they run. A pack that references a block, item, entity, biome, structure, enchantment or potion effect the running server does not have is gated: the content that composes the missing key is left out, everything else keeps generating, and the decisions are printed once at startup.

Compatibility checks include content supplied by installed mods. Use /iris pack compat to see which resources are unavailable on your server.

Action Meaning
excluded The unit composes the missing content and is removed from every pool that could pick it. An excluded biome never generates, an excluded object is never placed, an excluded entity never spawns
dropped One entry or reference is removed and its container keeps generating. A dropped biome scatter entry falls back to the derivative, a dropped loot entry leaves the rest of the table intact
substituted A declared fallback replaced the missing key and the content still generates

Exclusion cascades. A container that referenced an excluded unit drops the reference, and if that empties a required pool the container is excluded in turn: an object placement with no placeable object left, a jigsaw pool with no pieces left, a structure whose start pool is excluded, a spawner with no spawns left, a loot table with no entries left, a region whose declared land, sea, or shore pool has no compatible biomes left. Sea and shore pools that were omitted remain optional for land-only regions. If the cascade reaches the dimension the pack is unusable on that version — a blocking validation error, and world and studio creation are refused.

Lists that only select blocks which already exist are never gated: edit[].find and markers[].mark on an object placement, loot filter lists, blockDrops[].blocks, and decorator whitelists and blacklists. A missing key in one of those matches nothing and is not reported.

Reading the report

The pack validation line carries the summary, and each pack with findings prints one block, grouped by key and capped at three subjects per key with a +N more tail:

Report entries identify the affected resource and JSON field. Substitutions name the replacement block. An (incomplete: …) result means compatibility could not be fully checked; validate again after startup.

For the full list with no per-key cap:

Command Syntax
Bukkit /iris pack compat [pack=<key>]
Modded /iris pack compat [<pack>]

It reads the published validation report and does not reload the pack, so it is safe on a live server and works from the console. Omitting the pack (or passing * on Bukkit) covers every pack with a published result; a pack without one prints a hint to run /iris pack validate first. Compatibility exclusions remain advisory unless they leave the dimension unusable, including when general.strictContentKeys is enabled.

Content fallbacks

Choice Effect
Update the server to a Minecraft version that has the content Everything generates and the report goes empty
blockFallbacks on the dimension Pack-wide map from a base block key to the full block state to generate instead. Substitutes rather than excludes. See 11 - Dimensions
backup on a block entry Per-entry replacement for one block definition, resolved through the same chain, so a backup can itself be covered by a dimension fallback. See 16 - Surfaces, Decorators & Deposits
A type-replace in an object placement An edit rule with chance: 1 that matches the missing block rewrites it before placement, keeping the object in the pool. See 20 - Object Placement
Accept the loss The gate is not an error state. A pack that loses a cave biome on an older version still generates everything else

A fallback that is itself missing on the running server counts as missing and is reported.

Cleanup (unused resources)

Command Mode Behavior
Bukkit /iris pack cleanup <pack> [mode=preview] (alias c) preview (default) List candidates. No writes
apply Move candidates to quarantine
Modded /iris pack cleanup <pack> [apply] (alias c) no literal (default) Preview
apply Move candidates to quarantine

Folders scanned for unreferenced JSON: biomes, regions, entities, spawners, loot, generators, expressions, markers, blocks, mods.

Applying re-scans from scratch rather than trusting an earlier preview, so a preview you ran an hour ago cannot quarantine something you have since started using. Quarantined files land under <pack>/.iris-trash/<yyyyMMdd-HHmmss-SSS>/. A failed apply rolls back what it can and reports any paths still quarantined so you can restore them by hand.

Restore

Command Mode Behavior
Bukkit /iris pack restore <pack> [mode=preview] (alias r) preview (default) List the files in the most recent quarantine dump, plus any destination conflicts
apply Move them back
Modded /iris pack restore <pack> [apply] (alias r) no literal (default) Preview
apply Move them back

Restore operates on the latest dump only. It refuses the whole operation when any destination path already exists and reports the conflict list instead of merging. Resolve those by hand first. With no quarantine dump present, nothing is restored and nothing is reported as an error.

Package (export)

Command Syntax
Bukkit /iris pack package [dimension=default] [obfuscate=false] [minify=true] (method alias pkg)
Modded /iris studio package [<pack>] (alias pkg)
Param Default What it does
dimension contextual, else default The dimension to package, including its referenced resources
obfuscate false Rename every object to a random UUID in the export and rewrite placement references to match. Bukkit only
minify true Write JSON with no indentation. Bukkit only. The modded packager always minifies

Output is exports/<dimensionKey>.iris, under the plugin data folder on Bukkit and under config/irisworldgen/exports/ on modded. A blocking validation error leaves staging and the prior archive untouched. Neither the authoring pack nor an existing world is modified.

Written to the export: dimensions/, regions/, biomes/, generators/, expressions/, blocks/ (all block definitions in the pack, not just referenced ones), loot/, entities/, objects/, spawners/, markers/, image-maps/, referenced images/ PNGs, the structure closure, and package.json (content hash, timestamp, dimension version). The ambient-spawning graph is exported in full — object placements on regions as well as biomes are followed, and spawner entities are collected from both spawns and initialSpawns.

The export contains only the resource folders listed above.

Bukkit exports include snippet contents directly in the JSON. Modded exports include the snippet/ JSON tree and keep snippet references. Validate the unpacked tree before you publish an .iris artifact.

Stage a production world update

Platform Command
Bukkit /iris pack update-world world=<world> pack=<dimension> confirm=true
Fabric / Forge / NeoForge /iris world update <dimension> <pack-or-pack:dimension>

On Bukkit, /iris developer update-world and /iris dev update-world also run this operation. pack accepts alias dimension, and confirm accepts c. Select a loaded production Iris world; Studio worlds use their authoring workflow instead.

Param Default What it does
world contextual The world to update after restart
pack contextual The source dimension, resolved from the live packs root
confirm false Required. Without it the command only prints the warning and exits

Back up the complete world before this operation, including its iris/generation directory. {.is-warning}

Iris validates and stages the selected pack, then asks for a restart. The running world keeps its current pack until then. After restart, new chunks use the update. Their heights and water levels approach the saved terrain across the configured transition band. New objects and structures use the adjusted terrain. Their complete footprints must stay outside historical chunks.

Updates must preserve the world seed, physical heights, environment, dimension type, and coordinate scale. Generation mode, fluid baseline, terrain content, and upper-terrain settings can change within that layout. New custom registry definitions can require a server restart.

Selecting an older pack affects future terrain. It does not undo saved blocks or recreate existing entities. Keep the complete iris/generation directory: existing chunks use their historical biome definitions for inspection, ambient spawns, and effects.

Ordinary Bukkit Studio applies compatible authoring edits while the world is open, without a production update command. See 10 - Studio & VSCode Schemas.

Related operations

Task Where
Create a studio project from a template /iris studio create — 10 - Studio & VSCode Schemas
Open VSCode with generated schemas /iris studio vscode — 10 - Studio & VSCode Schemas
Import vanilla objects and structures into a pack /iris studio importvanilla — 19 - Objects
Structure import and conversion /iris structure … — 22 - Native Structures & Datapacks
Strict content key enforcement settings.general.strictContentKeys — 03 - Configuration
List content unavailable on this Minecraft version /iris pack compat — Version content compatibility
Datapack bootstrap and install /iris datapack — 22 - Native Structures & Datapacks
Compile a pack into a vanilla worldgen datapack /iris datapack export — 49 - Datapack Export

See also: