How to trigger Animations on Block Entities
Setting up your controller
In your registerControllers
add triggerableAnim
to your controller like so
You can add more triggers for each animation you want to call.
Calling the trigger
To call the trigger, you will simply need to call triggerAnim
wherever you wish to use the trigger. Here is an example of calling on the tick
method of a Block Entity to play an animation when applying effects.
Last updated