Tags
Creators
Details
2.4.0
Compatibility
Changes
Sparkle Morpher 2.4.0 (Release)
- Release date: 2026-12-04
- Kernel: spm-core 1.3.10 (source
867ea92/ artifact90b3ea5/ tagmaven-release-1.3.10) - Supported: Minecraft 1.21.1 / 26.1.2 / 26.2 / 26.3, Fabric + NeoForge, native and CurseForge distribution variants for every combination, 16 JARs total
- Coverage: the whole 2.4.0 beta line (b1 β b4) together with the release
2.4.0 replaces the OpenYSM-inherited animation core with the standalone spm-core engine, rebuilds the external mod compatibility layer, the action engine and the render pipeline on that engine, and converges all four Minecraft versions on one behavior set. Relative to b4, the release closes out the last three user-visible defect classes observed during the test period: halos without a soft edge, hair physics drifting, and drifted ctrl.* predicate semantics.
1. Release additions (2.4.0 relative to 2.4.0-b4)
1. Kernel 1.3.10: unit fix for math.acos and the other inverse trigonometric functions (the actual root cause of the hair drift)
The Molang math functions in spm-core previously returned degrees from acos / asin / atan / atan2, whereas AdditionalMathBuiltins.acos in original YSM returns the radian value straight out of Math.acos(...); only sin / cos / tan were marked *_DEGREES in MathDeclarations. 1.3.10 drops the Math.toDegrees(...) conversion:
case "asin" -> Math.asin(a[0]); // previously: Math.toDegrees(Math.asin(a[0]))
case "acos" -> Math.acos(a[0]);
case "atan" -> Math.atan(a[0]);
case "atan2" -> Math.atan2(a[0], a[1]);
The consequence chain: the expression authors write, v.alpha = 80*math.acos(cos)/math.pi, was amplified 57.2958Γ under the degree convention. While walking, alpha moved from about 18 to about 1036, the spring steady state equals its input, pa0 β 1.22e3, and the elastic term threw the hair far away β that is the "hair drift". All four repositories now pin 1.3.10 in unison, and the build verifies Verified 16 immutable Core artifacts (1.3.10). After the fix, the user confirmed in-game that hair and halos are both back to normal.
2. ysm.bone_rot negates X and Y and keeps Z positive
ysm.bone_rot in host-side HostMolangBindings.resolveBoneVec now matches YSM ModelBuiltins#boneRotation bit for bit: X and Y are negated, Z stays positive. A sign error raises no exception; it only turns a model's negative feedback loop into a positive one, which surfaces as bone jitter or bones flying off the model.
3. ctrl.* goes through resolveController and restores YSM semantics
host bindings no longer approximate controller predicates with the host's own convergence patch; they are evaluated uniformly through ControllerActionResolver.resolveController:
ctrl.run = onGround && sprintingctrl.jump = !onGround && !inWater
4. Intra-frame action snapshot HostEntityFrameState
New per-frame entity state snapshot (+103 lines): the state is sampled once per frame, so every predicate, latch and braking decision within that frame reads the same data and differing sample points can no longer yield mutually contradictory conclusions inside one frame.
5. Halos moved to an additive sub-pass that keeps the soft-edge alpha
New GlowAdditiveRenderTypes: once the bone glow test hits, rendering takes a separate BoneRenderPass.GLOW sub-pass, resolveBonePackedLight supplies the fully lit value 0xF000F0, and the material keeps its soft-edge alpha (the previous pure additive blend flattened the edges into hard ones and made the result look smeared). Two implementations, one per render stack:
| Version | Implementation |
|---|---|
| 26.3 / 26.2 | custom additive pipeline in RenderPipelines, with meta.w written as a shader varying, and the vertex shader reading the explicit glow flag stored in the bone record |
| 26.1.2 / 1.21.1 | reuses vanilla entityTranslucentEmissive; no new pipeline |
Both paths look identical to the user. The custom pipeline also gained a degradation path: a caught exception logs one WARN and then degrades permanently to entityTranslucentEmissive, so a material problem can no longer take down a frame.
6. Statement-by-statement salvage in sanitizeTimelineScript
When core rejects a whole script, the script is no longer discarded as a unit; each statement is screened and the compilable ones are kept, so valid statements no longer go down with invalid ones. Together with the per-clip degradation that has existed since kernel 1.3.1 and never implicates the whole library, the timeline event survival rate of legacy models improved noticeably.
7. Model data repair (option C)
trissy_ηΉθδΈ.ysm contains one stray closing parenthesis (v.MBreast_v0dot=...-v.MBreast_v0)/v.time;) that makes the whole statement fail to compile. Handling: decrypt with YSMParser β fix animations/main.animation.json β repack as a zip (SPM recognizes the ysm.json manifest) β install to config/sparkle_morpher/custom/trissy_ηΉθδΈ.zip, and rename the original .ysm to .ysm.disabled.
8. Diagnostic probes (all off by default)
| Probe | Switch | Output |
|---|---|---|
HairPhysicsProbe |
-Dsm.hair.debug=true |
actual values of the v.* physics accumulators |
MotionJitterProbe |
same group | per-frame samples of motion jitter |
GeometryBaker's [SM-GLOW] bake |
-Dsm.glow.debug=true |
glow bake results |
2. 2.4.0-b4: the action engine lands and the default model is fully decoupled
1. Semantic action engine (part A of the b4 stage)
ActionContext/ActionStateMachine/ActionResolver/ModelBindingCompilerare fully wired intospm-core, forming a three-track arrangement:NEWas the default,SHADOWas the cross-check,LEGACYas the fallback path.- The
SHADOWmatrix cross-check is complete: 7 real differences fixed, 10 accepted by design, 0 open. - Key corrections: trident and heavy mace are resolved in
resolveItemUseActionIdahead of theItemUseAnimation.SPEARtest;buildEffectiveExplicitThirdPersongains the conventional YSM names (mace,trident β spear,block β shield), so a Tier-1 regex can no longer preempt the Tier-2ENGINE_LIBRARYpath. - The 17
*Predicateclasses, the 4 providers andHostAnimationProcessorare left untouched, which keepsLEGACYavailable as a rollback.
2. Runtime loading of the default model is decoupled
New BuiltinDefaultModelLoader loads /assets/sparkle_morpher/builtin/default regardless of format, probing in this order:
- YSM directory (
ysm.json, compatible withfile:/jar:file:/ NeoForgeunion:URLs) - single-file models indexed under
default/bybuiltin/index.txt - common single-file candidate names (
default.*/model.*)
Supported are YSM directories, encrypted v1/v2/v3 and unencrypted .ysm, .zip / .figura (through MemoryModelParser.parseLegacy), and .bbmodel / .glb / .gltf / .v3d (through CoreModelImporter.assemble). ClientModelManager.loadDefaultModel() delegates entirely to it, ModelAssemblyFactory opens up ModelSourceFormat.BUILTIN_SAMPLE, and a minimal YSM replacing the default model now also gets the complete default action set filled in automatically.
3. Legacy default card background removed
The blue sky, clouds and pink barcode 1 on the former default card came from builtin/default/textures/gui/{background.png,foreground.png}, referenced by gui_background / gui_foreground in ysm.json. Both images, their configuration and their index line are now removed. A model that ships its own card art shows it unchanged; one that does not gets the standard dark card background.
4. Unit tests decoupled from assets, with an anti-regression guard
4 unit tests no longer depend on builtin/default/ assets and use self-contained minimal fixtures or BuiltinDefaultActionPreset instead; new BuiltinDefaultModelLoaderTest; and the new static anti-regression test noTestFixtureDependsOnBuiltinDefaultModelAssets() forbids any future unit test from coupling to the default model assets again.
3. 2.4.0-b3: the full action chain for bbmodel / Figura imported models
1. Preset actions bind to actual model bones
The action panel binds by lookup on semantic bones (Head / Body / LeftArm / RightArm / LeftLeg / RightLeg / β¦) and no longer requires vanilla bone names. All 88 primary state clips (walk, run, jump, fly, swim, riding, ladder, and the per-weapon hold / use / swing branches), the 4 radial menu emotes (Wave / Sit / Cheer / Point) and the first-person arm clips are wired in.
2. Swing direction on mirrored models
When a model's left and right are inverted relative to the preset frame (for example the rightarm pivot sitting at +X), renaming bones without flipping signs mirrors Z and Y wholesale: a wave sweeps the wrong way, and legs that should spread in the air tuck inward. The direction is now decided by the sign of the target bone's pivot X; a mirrored rotation uses (x, -y, -z) and a mirrored position uses (-x, y, z), while scale is untouched. When the side is unknown (midline bone, no pivot data) nothing is mirrored.
3. Arm pitch inverted wholesale
The chain is author angles β Euler conversion β host sampling (which negates X and Z once more on its own) β rendering. The extra X negation inside the conversion cancelled the sampling one, and the net effect flipped pitch: a right-hand wave raised the arm behind the back, a sword swing started from behind, and a shield arm hung behind the body. The conversion now keeps the author's X sign. The two mixed pitch conventions in ImportedVanillaPoseController were unified at the same time. Regression gates: CoreEulerCompatPitchTest, PresetBoneMirrorTest.
4. Elytra and hand attachment points
The kernel importer attaches every cube to a bone@<uuid> child bone, so structural bones (body / rightarm) carry no cube of their own; the old implementation therefore saw "no geometry" and fell back to the bone pivot, which put the elytra on the waist and the hand on the shoulder. Bounding boxes are now merged over parent@β¦ cube child bones (that level only):
| Attachment point | Before | After |
|---|---|---|
ElytraLocator |
(0, 12, 0.25) = waist |
(0, 24.5, 3.75) = shoulder line + back face + 0.25/16 block inset |
HandLocator |
bone pivot (shoulder) | cube bottom (wrist) |
Regression gate: LocatorInferenceSubtreeTest.
5. Rendering and stability
- Only the eye whites showing while pupils and eyelids vanish: emissive bone splitting is now decided explicitly by
requiresEmissiveBoneSplit()with a fixed draw order; emissive bone normals align withDIFFUSE_LIGHT_0/INVENTORY_DIFFUSE_LIGHT; the vertex shader reads the explicit emissive flag; and back-face culling for negative-size cubes plus the erroneous deletion atalpha < 0.99are fixed. - Occasional twitching or freezing while walking: jump and fall detection now use a vertical velocity threshold, so a single frame with
onGround=falseor accumulated flat-ground gravity no longer triggersjump. - Tester feedback batches 1β3 (13 items): YSM v2
ctrl.set_animation/ctrl.state_*/set_beginning_transition_length, clock rollback on death and on world change, dynamicysm.bone_glowvalues, tail-frame timeline clamping,query.position_delta(axis), per-entityheadYawDelta, paper-doll head pitch, the projectile submit pipeline, inverted preview box XY, HUD head flicker, radial menu probability and dropdown text bleeding through.
4. 2.4.0-b2: five defect classes from the test period
spm-core1.3.2: Molang identifier validation no longer compiles a regex on every call (the main cause of the stutter); empty placeholders (empty clip slot, empty transition target,{"effect": ""}) are skipped instead of making the whole controller disappear (the Alice 58-stateplayer.pre_parallel_7regression); and frame-drop catch-up appliesresetPlayback/reloadonly once.- Attack combos no longer swallow hits: one swing counts as one instance, the
swingslot replays once per instance, andv.swing_swordcannot be set to 1 twice within the same swing; a single click plays one segment while holding advances the combo. - Followers follow the player: literal bone names in
ysm.bone_pivot_abs('<bone name>')are collected from keyframes, timeline scripts and controller expressions at model load and tagged, so the binding is no longer constantly 0; computed arguments (ysm.bone_pivot_abs(v.bone)) are skipped rather than guessed. - The first-person paper-doll head no longer flickers: the first-person frame marks itself and forces a full HUD evaluation, and HOLD frames restore the sampled pose after head tracking.
- The settings screen is usable at 854Γ480: navigation collapses into compact rows, control widths tier by the actual width of the detail pane, long Chinese titles get a tooltip, and the bottom edge keeps 8 px.
- Also: a single missed
onGroundframe while walking no longer plays the jump, the Fabric elytra test is back toELYTRA || GLIDER,/attribute minecraft:scaleaffects models, and the CI matrix keys on the Java feature version (25/21) rather than the patch number.
5. 2.4.0-b1 (first beta): the animation core becomes spm-core
- The inherited GeckoLib3 runtime and Molang packages are deleted wholesale:
com.micaftic.morpher.geckolib3.*(204 files),com.micaftic.morpher.molang.*(39 files),ArgsVariable/CtrlBinding/FnBinding/TLMBinding/YSMBindingand thefunctions/{ctrl,ysm}packages.ArchitectureBoundaryTestasserts at the bytecode level that the old packages cannot survive. - All four repositories compile against 16 immutable
dev.spm.core:*artifacts, with SHA-256 pinned ingradle/spm-core-artifacts.jsonand re-verified on every build byverifySpmCoreArtifacts. - The compatibility layer is rebuilt on host bindings:
HostMolangBindings/HostMolangSinkcarryquery.*,ysm.*,ctrl.*andtlm.*;CoreCompatibilityProvidersregisters twelve integrations β Touhou Little Maid, TaCZ, Better Combat, Carry On, Parcool, Create, Curios, Immersive Melodies, Iron's Spellbooks, SlashBlade, SWEM and Sophisticated Storage. - Resource formats:
.ysmV1/V2/V3 and legacy payloads;.figura/figura_assets_v1import along the whole chain (including the pure-Java Lua 5.3 runtimeFiguraAvatarRuntime); glTF 2.0 supports CUBICSPLINE and morph targets. - Legacy animation scripts become fault tolerant: folded markers and comments inside quotes, HTML entities,
{dataN}placeholders, bareNaN, unbalanced parentheses and controllers that reference a missing"empty"clip are all recovered at compile time; a clip that cannot be recovered degrades only itself. - Bone evaluation and skinning:
SpmCoreBoneMatrixWriter.evaluateInPlacemakes no heap allocation; the OpenGL SSBO and the Blaze3D/Vulkan bone storage consume the same write result. - Animation semantics unified: coded slots and the JSON state machine share one
MolangState; the JSON layer composes hierarchically (lower layers fill, upper layers override), and additive layers stack rotation only while overriding translation and scale, which fixes the0.0 * 1.0 = 0.0scale lock on wings and clothing. - Item use, spears and swings: continuous use switches to LOOP (unless the author declares
hold_on_last_frame),*:spearand*:lanceare equivalent,LanceAnimationTimingrestores the closed-loop speed multiplier, and above 60 HzpendingReset/pendingReloadare latched and consumed at the fixed step. - Model fidelity:
GeometryBaker.buildMeshwritesparentIdx/parentName/partMaskback intoModelBone(they were always-1, which silently disabled skeleton construction, elytra pitch, particle placement and draw-slot replacement). - Performance: third person no longer submits to the thread pool and immediately calls
Future.get(); measured at 120 Hz,builtin/defaultwent from 0.771 to 0.251 ms/frame (3.07Γ) and Furina coded+JSON from 1.090 to 0.438 ms/frame (2.49Γ); the Rust-packed bone kernel with all 773 bones animated went from 75.18 to 57.40 Β΅s, and aarch64 NEON from 59.85 to 36.47 Β΅s. - One JAR carries 11 native targets:
windows-x64/x86/arm64,linux-x64/arm64/riscv64/loongarch64,macos-x64/arm64,android-arm64/arm32, each audited for container class and machine code. - Cloud: server-side static card thumbnails (
CloudThumbnailPolicy) plus a content-addressed disk cache (CloudDiskCache, 512 MB by default,ATOMIC_MOVEwrites,If-None-Matchrevalidation); PUBLIC assets route through the CDN and cold starts recover across instances. - HUD and preview: the 1.21.1 classic HUD editor no longer displaces the character because of bounding-box differences (
HudOverlayCrop.compositeOrigin); the preview caches bounding boxes and reuses FBO buffers; on 26.xCardPreviewRefreshBudgetaccounts for the real off-screen cost. - Localization and licensing: the 15 locale directories gain the
acceleration.auto/cloud_disk_cachekeys;LICENSEand the metadata state that from 2.4.0 the mod is based on the standalonespm-coreand that only 2.3.2 and earlier derive from OpenYSM/YSMParser, with the repository licensed as a mix of ARR and MIT. - Version naming:
2.4.0is the release,-bNis a beta and-aNis an alpha; CurseForge is suspended during beta / alpha, and only GitHub and Modrinth are published.
6. Differences between the four repositories (structural, not omissions)
| Item | 26.3 | 26.2 | 26.1.2 | 1.21.1 |
|---|---|---|---|---|
| Blaze3D / Vulkan stack | β | β | β | β |
| blaze3d shader | #include <minecraft:β¦> |
#moj_import |
β | β |
| Halo material approach | custom pipeline | custom pipeline | vanilla emissive | vanilla emissive |
boneGlow varying / meta.w glow write |
β | β | β | β |
| fabric-side config type | ModConfigSpec |
ModConfigSpec |
ModConfigSpec |
ForgeConfigSpec |
The missing glowMaterial helper on 1.21.1 is an equivalent implementation (it calls GlowAdditiveRenderTypes.of(...) directly); the varying and meta.w have nowhere to go on 26.1.2 / 1.21.1, because those two lines carry neither blaze3d shaders nor SSBOs. The full glow chain (glow test β resolveBonePackedLight supplies full brightness β BoneRenderPass.GLOW split β emissive soft-edge material β GlowAdditiveBlend switch) is present in all four repositories.
7. Supported builds
| MC version | Fabric | NeoForge |
|---|---|---|
| 1.21.1 | sparkle-morpher-2.4.0-fa1.21.1.jar (Java 21) |
sparkle-morpher-2.4.0-neo1.21.1.jar (Java 21) |
| 26.1.2 | sparkle-morpher-2.4.0-fa26.1.x.jar (Java 25) |
sparkle-morpher-2.4.0-neo26.1.x.jar (Java 25) |
| 26.2 | sparkle-morpher-2.4.0-fa26.2.jar (Java 25) |
sparkle-morpher-2.4.0-neo26.2.jar (Java 25) |
| 26.3 | sparkle-morpher-2.4.0-fa26.3.jar (Java 25) |
sparkle-morpher-2.4.0-neo26.3.jar (Java 25) |
Each combination also ships a -curseforge variant (without the native acceleration libraries), for 16 JARs in total. Installation: put the JAR matching your Minecraft version and loader into mods/; the Fabric side needs Fabric API, and the 26.x side additionally wants Forge Config API Port (recommended, for the configuration screen).
8. Notes
- Hair and halos were verified on a real client: the release fixes were confirmed in-game by the user; none of the betas had gone through a final smoke test.
- The two custom pipelines on 26.x must be registered at startup through
RenderPipelines.register(...); building them lazily at render time crashes withFailed to find or load pipeline.withLocation(String)treats the whole string as the path withminecraft:as the default namespace, so asparkle_morpher:prefix throwsIdentifierExceptionoutright β both cases are now covered by exception capture plus a permanent degradation. - The Vulkan bone storage path is active on 26.2 / 26.3 only; 1.21.1 and 26.1.2 stay on OpenGL. Its mechanism is unchanged since 2.3.2 and was not revalidated on new hardware.
- Rust SIMD is not wired directly to GPU buffers:
Blaze3DRenderPathstill reportsnativeComputed = false, so both GPU paths consume the optimized Java write result;NativeSimdPolicydefaults to OFF. - Runtime evidence exists for x86-64 and android-arm64 only;
linux-riscv64,linux-loongarch64andandroid-arm32areCROSS_COMPILED_NOT_EXECUTED, andwindows-arm64is a cross-compiled artifact. - Action presets for models with articulated joints (separate forearm and shin bones) currently drive the main arm and main leg bones only; forearms and shins keep the vanilla pose and look stiff. This is scheduled for the next action engine rework.
- Model-side problems are not host defects: Plana lacks 8
TAZC*clips, three animations carry a literalNaN, and some models ship stray closing parentheses (the locally repairedtrissy_ηΉθδΈwas handled with option C).
9. Verification
Remote CI (this commit's SHA, four branches Γ both loaders, all green)
| Repository | Branch | Commit | Run | Matrix |
|---|---|---|---|---|
Sparkle-Morpher-26.3 |
26.3 |
345da40d |
47347613573 |
plan / fa26.3 / neo26.3 all success |
Sparkle-Morpher-26.2 |
main |
96202466 |
47347625644 |
plan / fa26.2 / neo26.2 all success |
Sparkle-Morpher-26.1.2 |
26.1.2 |
6c740f40 |
47347639054 |
plan / fa26.1.2 / neo26.1.2 all success |
Sparkle-Morpher-1.21.1 |
1.21.1 |
d8a5d2fc |
47347648946 |
plan / fa1.21.1 / neo1.21.1 all success |
Each branch runs two loader jobs, each building the native and CurseForge variants and running the unit-test suites, the javac warning-fingerprint gate, the artifact content audit and the Modrinth alias check.
Local release build
clean build --offline across four repositories Γ two distributions Γ two loaders = 16 JARs, audited item by item (mod metadata version = 2.4.0, main class, mixins, 15 locales, native-manifest.json with the native binaries, and no native content in the CurseForge variant). The SHA-256 manifest is docs/2026-12-04/release_artifacts.json. Every native build ran the full test suite:
| Minecraft | Tests | Failures | Errors | Skipped |
|---|---|---|---|---|
| 1.21.1 | 2,656 | 0 | 0 | 11 |
| 26.1.2 | 2,709 | 0 | 0 | 10 |
| 26.2 | 2,735 | 0 | 0 | 10 |
| 26.3 | 2,766 | 0 | 0 | 10 |
Further checks
- Kernel verification: all four repositories report
Verified 16 immutable Core artifacts (1.3.10). - Consistency check: 13 key fixes confirmed item by item across the 4-version matrix; all 5
--cases are structural differences of the render stack. SeeCROSS_VERSION_CONSISTENCY_2.4.0.md. - Translation audit:
check-translations.pyis clean with no gaps.
Publication status
| Platform | Status | Contents |
|---|---|---|
| GitHub Release | published (tag v2.4.0-stable) |
16 JARs with their .sha256 files |
| Modrinth | published | 8 native versions (4 MC Γ 2 loaders), channel release |
| CurseForge | manual upload | 8 -curseforge JARs; list in CURSEFORGE_MANUAL_UPLOAD.md |
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:jQtfvgHC:39YsGYEW"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:jQtfvgHC:39YsGYEW"
}

