Skip to content

packmigrate v0.5.0

Latest

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