Add GIF Animations
GIF animation resources can be used to display custom graphics, textures, and interface elements
The Xerr plugin automatically converts GIF animations into dynamic PNG sequences visible in-game.
Create Animation Assets Directory
Create a namespace and basename under the plugins/Xerr/core/assets/image/[namespace]/[basename]
directory.
For example, if the namespace is haha
and the basename is world
, the full path will be plugins/Xerr/core/assets/image/haha/world
.
Add Animations
Place .gif
animation files into the plugins/Xerr/core/assets/image/haha/world/animation
directory.
Create Configuration File
Create a bitmap configuration file config.yml
in the plugins/Xerr/core/assets/image/haha/world/
directory.
Example directory structure:
Edit Configuration File
In the config.yml
file, specify display parameters for each animation, including path, height, width, duration, etc.
Example configuration:
Note
- The maximum value for
height
is 256. For taller displays, split the animation into segments.
Reload Configuration
Resource packs will auto-generate and configurations will reload automatically after saving changes.
Test Animation Configuration
Use the following command to verify animations:
Command supports tab autocompletion.