AnimationJS

AnimationJS

Mod

Player animation addon for KubeJS

Client and server

1,210 downloads
9 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!
Filter loader...
Filter versions...
  • Added AnimationJS.playerModel() event
  • Moved model part getters to PlayerModelEvent where they are now modifiable through event.getPlayerModel()
  • Removed event.cancelDefaultRenderer() method from playerRenderer event in favor of event.cancel() instead
  • Added AnimationJS.playerModel() event
  • Moved model part getters to PlayerModelEvent where they are now modifiable through event.getPlayerModel()
  • Removed event.cancelDefaultRenderer() method from playerRenderer event in favor of event.cancel() instead

Added

  • Methods to the playerRenderer event:
    • getModelParts
    • getBody
    • getHead
    • getRightArm
    • getLeftArm
    • getRightLeg
    • getLeftLeg
    • getHat

Fixed

  • Player tick mixin crashing when obfuscated.

New Features:

  • Added getRenderContext() method to playerRenderer event. This method provides scripters with access to a PlayerRenderContext, allowing them to customize item rendering on the player's body with configurable rotation and position.
  • Added cancelDefaultRender() method to playerRenderer event. This method allows scripters to cancel the default rendering behavior during the playerRenderer event.
  • Added renderBodyItem() method to playerRenderer event. This method enables scripters to render item stacks on the player's body, with options for configuring rotation and position.

Improvements:

  • Improved various probejs typings 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

New Features:

  • Added getRenderContext() method to playerRenderer event. This method provides scripters with access to a PlayerRenderContext, allowing them to customize item rendering on the player's body with configurable rotation and position.
  • Added cancelDefaultRender() method to playerRenderer event. This method allows scripters to cancel the default rendering behavior during the playerRenderer event.
  • Added renderBodyItem() method to playerRenderer event. This method enables scripters to render item stacks on the player's body, with options for configuring rotation and position.

Improvements:

  • Improved various probejs typings 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

Added

  • stopAnimation method to server player.
  • New startAnimation/triggerAnimation methods 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()
  • Added AnimationJS.universalController() binding to add a player animation controller, providing full conditional animation support.
  • Added more triggerAnimation variants 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 .triggerAnimation() method to the player

Project members

Liopyu

Member

Details

Licensed GPL-3.0-only
Published 6 months ago
Updated a month ago