Other mods (such as Better Combat ) will often refuse to load or report a "Missing Requirement" error, explicitly asking for 0.9.9+. Troubleshooting
// Create instance const player = new PlayerAnimator( duration: 2000, // 2 seconds loop: false, easing: t => t, // linear onUpdate: (progress) => // progress = 0..1 document.getElementById('box').style.transform = translateX($progress * 200px) ; , onComplete: () => console.log('Animation finished'), onPlay: () => console.log('Started'), onPause: () => console.log('Paused') ); install player-animator%2C version 0.9.9 or later.
Version 0.9.9 introduced critical API rewrites, better compatibility with major mod loaders, and support for newer Minecraft versions. When a mod specifies "version 0.9.9 or later," using an older version (like 0.8.x) will cause your game to crash on startup. Step 1: Verify Your Modding Environment Other mods (such as Better Combat ) will
dependencies // Forge implementation implementation fg.deobf("dev.kosmx.player-anim:player-animation-lib-forge:0.9.9+1.20.1") Use code with caution. 3. Updating fabric.mod.json or mods.toml Step 1: Verify Your Modding Environment dependencies //
dependencies // Replace with the exact version matching or exceeding 0.9.9 modImplementation "dev.kosmx.player-anim:player-animation-lib-fabric:0.9.9+1.20.1" // If you want to include it inside your mod jar (Jar-in-Jar) include "dev.kosmx.player-anim:player-animation-lib-fabric:0.9.9+1.20.1" Use code with caution. For Forge / NeoForge:
const pa = new PlayerAnimator( duration: 1000, frames: [0,1] ); if (typeof pa.seekTo === 'function') console.log('✅ Version 0.9.9 or later confirmed (seekTo API exists)'); else console.error('❌ You have an older version. Reinstall with @0.9.9');