-
Notifications
You must be signed in to change notification settings - Fork 0
Folder Structure
The folder structure in the assets folder for animation files is organized as follows:
assets/
└── mod_namespace/
└── player_animation/
├── waving.json
└── sasuke.json
In the player_animation folder, you'll find the animation files used for player animations. These files can be either Geckolib or PlayerAnimator JSON files.
Download Blockbench Example
To play Geckolib animations you must install Liolib, a Geckolib fork tailored for this mod. The animations are stored in JSON files and can be used with or without Geckolib being installed. If using Geckolib/LioLib, you will be able to render extra bones to the player.
For example, the sasuke.json file contains Geckolib animations such as "attack", "sprint", "aggression", "idle", "death", and "walk".
To reference a Liolib animation from the sasuke.json file, use the following format: mod_namespace:animationname.
For instance, to play the "walk" animation from the sasuke.json file located in assets/animationjs/player_animation/sasuke.json, you would call it with "animationjs:walk".
PlayerAnimator animations are also stored in JSON files and can be used alongside Geckolib animations. These will be called by the namespace of the assets folder along with the animation name specified inside the json.
The name of the Liolib animation file is not important as long as the animations are recognized by their namespace and animation name.
Ensure that the folder structure and file names match your mod's namespace and the specific animation files you intend to use.
For more information on how to animate the player through blockbench/blender join the official EmoteCraft Discord or visit the Official EmoteCraft Wiki page!