📷Animations

Animations in LiteCore are configurable visual/audio effects that can be triggered by your plugins during specific actions (e.g. using an item, interacting with a block, completing a task, etc).

Each animation is defined in a separate .json file and can include sounds, particles, or both.

📁 File Structure

All animation files are stored in:

plugins/LitePlugin/core/animations/

Each file represents a single animation and uses its filename (without .json) as the animation ID.

Example:

A file named use_animation.json defines the animation with ID use_animation, which can be triggered in plugin configs like so:

animation: use_animation

🧾 Animation JSON Format

Here's a minimal example of an animation config:

{
  "lite_sound": {
    "sound": "ENTITY_ITEM_PICKUP",
    "pitch": 1.0,
    "volume": 1.0
  },
  "lite_particle": {
    "particle": "COMPOSTER",
    "amount": 10,
    "range": 0.2
  }
}

Last updated