Summary:
The AnimationJS mod is an addon for KubeJS that allows scripters to dynamically animate Players utilizing the playerAnimator mod.
Features:
- Ability to trigger server-sided animations off any server player object
- Ability to modify player model parts dynamically using the
AnimationJS.playerModel()event, enabling customized animations and transformations
- Plays animations through the playerAnimator mod
- Plays Geckolib animations with optional dependencies via LioLib
- Universal Animation Controller able to easily define conditions for player animations.
Usage:
For detailed documentation on how to add an animation controller or trigger player animations, visit the AnimationJS Wiki page!
Dependencies:
Community
Join the official KubeJS Discord community to connect with other users, share your creations, and get help with any questions or issues you encounter while using AnimationJS. Alternatively, you can click the Discord icon below:
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 6mo ago | 1 | ||||
| 8mo ago | 1 | ||||
| 8mo ago | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 |
- Fixed UniversalController stashing old events in a map returning old data
- Fixed an access widening error
- Added
armRendererevent where arm/hand posestacks are mutable
AnimationJS.handRendererevent now passes in the interaction hand and has separate Posestacks per hand rendered.
- Added
handRenderClient Event
- Added
handRenderClient Event
- Added
AnimationJS.playerModel()event - Moved model part getters to PlayerModelEvent where they are now modifiable through
event.getPlayerModel() - Removed
event.cancelDefaultRenderer()method fromplayerRendererevent in favor ofevent.cancel()instead
- Added
AnimationJS.playerModel()event - Moved model part getters to PlayerModelEvent where they are now modifiable through
event.getPlayerModel() - Removed
event.cancelDefaultRenderer()method fromplayerRendererevent in favor ofevent.cancel()instead
- Methods to the
playerRendererevent: getModelPartsgetBodygetHeadgetRightArmgetLeftArmgetRightLeggetLeftLeggetHat
#### Fixed
- Player tick mixin crashing when obfuscated.
- Methods to the
playerRendererevent: getModelPartsgetBodygetHeadgetRightArmgetLeftArmgetRightLeggetLeftLeggetHat
#### Fixed
- Player tick mixin crashing when obfuscated.
- Added
getRenderContext()method toplayerRendererevent. This method provides scripters with access to aPlayerRenderContext, allowing them to customize item rendering on the player's body with configurable rotation and position. - Added
cancelDefaultRender()method toplayerRendererevent. This method allows scripters to cancel the default rendering behavior during theplayerRendererevent. - Added
renderBodyItem()method toplayerRendererevent. This method enables scripters to render item stacks on the player's body, with options for configuring rotation and position.
### Improvements:
- Improved various
probejstypings to enhance code readability and maintainability.
### Changes:
- We now use LioLib in 1.20.1 as an optional dependency for geckolib player animations to avoid any Geckolib cache conflicts with other mods
- Added
getRenderContext()method toplayerRendererevent. This method provides scripters with access to aPlayerRenderContext, allowing them to customize item rendering on the player's body with configurable rotation and position. - Added
cancelDefaultRender()method toplayerRendererevent. This method allows scripters to cancel the default rendering behavior during theplayerRendererevent. - Added
renderBodyItem()method toplayerRendererevent. This method enables scripters to render item stacks on the player's body, with options for configuring rotation and position.
### Improvements:
- Improved various
probejstypings to enhance code readability and maintainability.
- Fixed UniversalController not being registered if added after player login
- Added client renderer method to allow a hook into the player render method with AnimationJS.playerRenderer() client scripts event
- Fixed UniversalController not being registered if added after player login
- Added client renderer method to allow a hook into the player render method with AnimationJS.playerRenderer() client scripts event
stopAnimationmethod to server player.- New
startAnimation/triggerAnimationmethods allowing customization of player part visibility and animation modifiers. - "animationjs:smith" example animation.
### Fixed
- Various ProbeJS typings.
stopAnimationmethod to server player.- New
startAnimation/triggerAnimationmethods allowing customization of player part visibility and animation modifiers. - "animationjs:smith" example animation.
### Fixed
- Various ProbeJS typings.
- Fixed client player being null on first-world join in isAnimActive()
- Fixed client player being null on first-world join in isAnimActive()
- Added
AnimationJS.universalController()binding to add a player animation controller, providing full conditional animation support. - Added more
triggerAnimationvariants for more control over animations off the player. - Added detailed wiki page
- Prevented animations from overlapping each other unless specified.
- Removed Client Script animations as they are not usable in dedicated servers; all functionality will be server scripts only to prevent this.
- Added
AnimationJS.universalController()binding to add a player animation controller, providing full conditional animation support. - Added more
triggerAnimationvariants for more control over animations off the player. - Added detailed wiki page
- Prevented animations from overlapping each other unless specified.
- Removed Client Script animations as they are not usable in dedicated servers; all functionality will be server scripts only to prevent this.
- Added Lio's Animator API dependency for server-sided emote playing when .triggerAnimation is played off the server player object
- Added Lio's Animator API dependency for server-sided emote playing when .triggerAnimation is played off the server player object
- Added .triggerAnimation() method to the player
- Added .triggerAnimation() method to the player