Install Player-animator%2c Version 0.9.9 Or Later. Link (360p)
The modern successor to Forge for newer Minecraft versions (1.20.1+). 2. Download the Correct Version
: Open your workspace, go to Workspace Settings > External APIs , and check the box for player animator to enable its procedures. For Mod Developers (Coding) If you are integrating the library directly into your code: install player-animator%2C version 0.9.9 or later.
// 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') ); The modern successor to Forge for newer Minecraft
Create a simple test file (e.g., test.js ): // 2 seconds loop: false
npm list player-animator
"dependencies": "player-animator": "^0.9.9"