Repository navigation
Releases
packmigrate v0.5.0
packmigrate v0.5.0
New features
-
26.3 item model component codegen (
--codegen-components,--component-manifest): synthesizes directminecraft:item_modeldefinitions for the 1.21.4..26.3 era, extracts exactcustom_model_datafloats/flags/strings andhas_componentconstraints from every migrated dispatch tree, renders ready-to-run 26.3/givecommands, and writes a machine-readable component manifest. -
Legacy predicate tree simplifier (
--simplify-trees): four algebraic passes that preserve dispatch semantics while reducing tree size: path-sensitive Shannon cofactor folding on repeatedCondition/Selectpredicates; numeric interval narrowing across nestedRangeDispatchnodes on the same property; step-knot coalescing on adjacent identical entries; and nestedCompositeflattening (rule PM019). -
Dual-era asset bundle export (
--bundle-export): produces a deterministic 3-slice bundle for proxy networks (Velocity / BungeeCord / ViaVersion): legacy1.20.1..1.21.3, modern1.21.4..26.3, and a hybrid universal .zip with SHA-1 and SHA-256 digests plus a machine-readablebundle-manifest.jsonfor server-side dispatch (rule PM020).
Bug fixes
- ComponentOverrideCompiler: entries with an unknown tint codec (PM018) now skip tree insertion, preventing malformed nodes from being compiled into the output decision tree.
Tests
- 48/48 JUnit 5 unit tests pass (was 42/42 in v0.4.0; +6 new tests covering PM015/PM017/PM018/PM019 semantics).
Artifact SHA-256
03b7d8be323ddf3a51a33c3a493880859769227bcd7dc747d7cd4d0b4161f7f4 packmigrate.jar
packmigrate v0.4.0
Highlights in packmigrate v0.4.0
- Dual-Era Asset Deduplication and Perceptual Hashing (--dedup, --phash, --phash-threshold): Added pure-JVM 64-bit 2D Discrete Cosine Transform (DCT-II) perceptual hash (pHash) and SHA-256 byte analysis (PerceptualHash.kt, AssetDeduplicator.kt). Automatically detects redundant overlay assets duplicating base pack files (PM012) and cross-path duplicate textures (PM013), with automatic pruning when --dedup is enabled.
- Modern Component Override Compiler and Decision Tree Optimizer (--component-overrides, --prune-overrides): Added modern data component validation (minecraft:has_component, minecraft:custom_data, minecraft:item_model, minecraft:enchantments) and decision tree pruning (ComponentOverrideCompiler.kt). Eliminates shadowed thresholds, folds tautological conditions, and drops redundant select cases (PM014, PM015).
- Format 97 Pack.mcmeta Overlay Generation (--overlay-format-97): Added Minecraft 26.3 / Format 97 overlay generator (Format97OverlayGenerator.kt) configuring modern min_format: [97, 0] and max_format: [97, 1] bounds and auditing format drift (PM016).
- Expanded SARIF v2.1.0 Diagnostics: Catalog expanded to rules PM001 through PM016, mapping directly to GitHub Code Scanning via --sarif and composite GitHub Action action.yml (v0.4.0).
- Client-Side Browser Migrator Upgrade: Updated https://salyys1.github.io/packmigrate/ with client-side redundant overlay detection, format 97 dual-era auditing, and SARIF PM001..PM016 export.
SHA-256 Checksum
packmigrate.jar: 8a5e4c132ebca79928402b53c46c9c0da78143845bc7abd3dfbe169dfb2ac011
packmigrate v0.3.0
Highlights in packmigrate v0.3.0
- Minecraft 26.3 (
pack_format97/[97, 1]) &overlays.entriesMigration: Added release26.3(97) and[major, minor]tuple parsing toPackFormats, and upgradedPackMeta.migrateExistingto preserve non-packsections (filter,language, rich-text descriptions) while migrating legacyoverlays.entriesformatsranges into dual-era and modernmin_format/max_formatbounds. - Overlay Isolation (
--overlay-items <dir>) & Multi-Layer Pack Scanning: Added--overlay-items <dir>to isolate generatedassets/<ns>/items/*.jsondefinitions inside a dedicated 1.21.4+ overlay directory with automaticoverlays.entriesregistration, plus automatic migration of legacymodels/item/*.jsoninside existing overlay directories with base-pack model resolution fallback. - OASIS SARIF v2.1.0 Diagnostics (
--sarif&action.yml): Structured all diagnostics into rulesPM001throughPM011(includingPM008invalid overlay directory syntax,PM009missing overlay folder,PM010overlay era migration, andPM011negative/fractionalcustom_model_datathresholds) for direct upload to GitHub Code Scanning (github/codeql-action/upload-sarif). - Client-Side Browser Resource Pack Migrator: Deployed a zero-upload browser migrator at https://salyys1.github.io/packmigrate/ supporting local
.zipreading, live multi-predicate decision tree inspection, deterministic.zipexport withresource-pack-sha1, and SARIF v2.1.0 download.
packmigrate v0.2.0
Highlights in packmigrate v0.2.0
- Direct
.zipInput & Deterministic--zipOutput (resource-pack-sha1): Migrate.zipresource packs directly (packmigrate legacy.zip --zip migrated-1214.zip) with sorted entries, fixed epoch timestamps, andserver.propertiesresource-pack-sha1output. - Hybrid Dual-Era Version Ranges (
1.20.1..26.2): Supports ranges starting below 1.21.4 when legacyoverridesare preserved alongside newassets/<ns>/items/*.jsondefinitions so one pack serves both 1.20.1-1.21.3 and 1.21.4+ clients. - Structured
--jsonCI Migration Report: EmitsitemsMigrated,plannedFiles,zipSha1,zipSha256, and itemized conversion diagnostics. - Composite GitHub Action (
action.yml): Runuses: SalyyS1/packmigrate@v0.2.0directly in GitHub Actions workflows.
v0.1.0
First release.
Converts the legacy overrides of a resource pack into the item model definitions that replaced them in
1.21.4, and reports anything that cannot come across exactly. All twenty-one legacy predicates convert,
including the five that are now string selects and the three that depended on which item they were written
for.
Run packmigrate <pack> for a plan, add --write to apply, and --write --out <dir> to keep the
original. The README has the full mapping and the cases a hand-written definition gets wrong.