A animator lib for player
SimpleAnimator is a simple animation engine that allows players to use BedrockEdition animations to play back player animations.
When playing online, the client synchronizes the animations loaded by the server.
Animations can be made via BlockBench, and some special Booleans can be manually added after the animation is exported if necessary:
In addition, BlockBench project files in the corresponding format can be downloaded to GitHub to facilitate animation.
The mod provides two ways to add animations:
Datapack:
For mod developers, you can choose to put animations into data/[modid]/animations.
The API and more details will be added in a later version of the documentation.
Folder:
For most players, animations can be loaded by dropping the files into [game version path]/animations.
Interaction is a new feature added after mod version 1.1.0 that allows two players to interact and play animations(May be misaligned in the case of network instability).
Interaction file import is similar to normal animation, but you need to add subanimations to the animation file: invite, waiting, cancel(optional).
In addition, the animated bones need to include the bones with the requester_ and receiver_ prefixes. The specific format can be viewed by Starting-Kit.interact.bbmodel in GitHub.
/animate play <animation>/animate stop/interact invite <player> <interaction>/interact accept <player>