Skip to content

Releases

packmigrate v0.5.0

Choose a tag to compare

@SalyyS1 SalyyS1 released this 15 Nov 17:03

packmigrate v0.5.0

New features

  • 26.3 item model component codegen (--codegen-components, --component-manifest): synthesizes direct minecraft:item_model definitions for the 1.21.4..26.3 era, extracts exact custom_model_data floats/flags/strings and has_component constraints from every migrated dispatch tree, renders ready-to-run 26.3 /give commands, 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 repeated Condition/Select predicates; numeric interval narrowing across nested RangeDispatch nodes on the same property; step-knot coalescing on adjacent identical entries; and nested Composite flattening (rule PM019).

  • Dual-era asset bundle export (--bundle-export): produces a deterministic 3-slice bundle for proxy networks (Velocity / BungeeCord / ViaVersion): legacy 1.20.1..1.21.3, modern 1.21.4..26.3, and a hybrid universal .zip with SHA-1 and SHA-256 digests plus a machine-readable bundle-manifest.json for 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

Choose a tag to compare

@SalyyS1 SalyyS1 released this 15 Nov 14:06

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

Choose a tag to compare

@SalyyS1 SalyyS1 released this 14 Nov 20:10

Highlights in packmigrate v0.3.0

  • Minecraft 26.3 (pack_format 97 / [97, 1]) & overlays.entries Migration: Added release 26.3 (97) and [major, minor] tuple parsing to PackFormats, and upgraded PackMeta.migrateExisting to preserve non-pack sections (filter, language, rich-text descriptions) while migrating legacy overlays.entries formats ranges into dual-era and modern min_format/max_format bounds.
  • Overlay Isolation (--overlay-items <dir>) & Multi-Layer Pack Scanning: Added --overlay-items <dir> to isolate generated assets/<ns>/items/*.json definitions inside a dedicated 1.21.4+ overlay directory with automatic overlays.entries registration, plus automatic migration of legacy models/item/*.json inside existing overlay directories with base-pack model resolution fallback.
  • OASIS SARIF v2.1.0 Diagnostics (--sarif & action.yml): Structured all diagnostics into rules PM001 through PM011 (including PM008 invalid overlay directory syntax, PM009 missing overlay folder, PM010 overlay era migration, and PM011 negative/fractional custom_model_data thresholds) 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 .zip reading, live multi-predicate decision tree inspection, deterministic .zip export with resource-pack-sha1, and SARIF v2.1.0 download.

packmigrate v0.2.0

Choose a tag to compare

@SalyyS1 SalyyS1 released this 14 Nov 06:31

Highlights in packmigrate v0.2.0

  • Direct .zip Input & Deterministic --zip Output (resource-pack-sha1): Migrate .zip resource packs directly (packmigrate legacy.zip --zip migrated-1214.zip) with sorted entries, fixed epoch timestamps, and server.properties resource-pack-sha1 output.
  • Hybrid Dual-Era Version Ranges (1.20.1..26.2): Supports ranges starting below 1.21.4 when legacy overrides are preserved alongside new assets/<ns>/items/*.json definitions so one pack serves both 1.20.1-1.21.3 and 1.21.4+ clients.
  • Structured --json CI Migration Report: Emits itemsMigrated, plannedFiles, zipSha1, zipSha256, and itemized conversion diagnostics.
  • Composite GitHub Action (action.yml): Run uses: SalyyS1/packmigrate@v0.2.0 directly in GitHub Actions workflows.

v0.1.0

Choose a tag to compare

@SalyyS1 SalyyS1 released this 06 Sep 09:54

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.