Skip to content

Configuration

Every hAnimationsWorks setting — global config, per-animation options, and what each one actually does.

File layout

plugins/hAnimationsWorks/
├── config.yml      settings that are not about one animation
├── gui.yml         menu layout and appearance
├── messages.yml    every message the plugin sends
└── events/
    └── <event>/config.yml    one folder per event, one entry per animation

Reload everything with /hanim reload. One exception: provider-priority needs a restart, because the engine keeps the provider set it was built with.


config.yml

preferences-file

Where per-player choices are stored. Written by the picker GUI and by /hanim set. You rarely need to touch this.

defaults

Animations assigned to players who have not chosen one.

yaml
defaults:
    join: Sparkle
    kill: FlameBurst

Only missing keys whose value is non-blank are filled in — an existing player choice is never overwritten.

disabled-worlds

Worlds where no animation plays, whatever any per-animation setting says.

yaml
disabled-worlds:
    - creative_plots
    - spawn_hub

This is the global kill switch. A per-animation worlds: list is the local version — either is enough to suppress a play.

cooldown-ms

Milliseconds a player must wait between plays. Default 3000.

Without it, a player who rejoins quickly gets two animations, which means two freezes and two cameras fighting over the same spectator target.

camera

The cinematic camera: an ItemDisplay the player spectates while an animation plays. Only applies to animations whose definition sets camera: true.

yaml
camera:
    forwards: 2.0 # blocks in front of the player at the start
    height: 2.0 # blocks above the player at the start
    transition-ticks: 20 # 0 cuts straight to the final position

visibility

Decides who gets told that a player has been hidden. This does not affect whether the animation plays — only who stops rendering one player.

yaml
visibility:
    skip-other-worlds: true
    max-viewer-distance: 64.0

The naive approach sends one packet to every online player. At 200 players that is 200 packets to hide one person. These two filters cut that:

  • skip-other-worlds — a viewer in another world cannot see the player anyway. On a server with a large survival world and a small hub, this is most of the audience.
  • max-viewer-distance — a viewer further away is not rendering them either. 0 disables the limit and sends to everyone; 64 is a good starting point.

triggers.low-health.threshold

Health at or below which the low_health animation plays, in half-hearts.

yaml
triggers:
    low-health:
        threshold: 6.0

Vanilla max health is 20 half-hearts, so 6.0 is three hearts. 0 disables the trigger.

It fires on the transition into low health, not on every tick of damage — one fight produces one animation.

post-respawn-grace-ticks

Ticks to wait after a respawn before an animation may touch the player. Default 20 — one second.

A respawn moves the player on the server while the client is still catching up. Anything that writes a position or rotation in that window gets compared against a position the server has already left, which the vanilla movement anti-cheat rejects — producing "moved too quickly!" in the console for a player who never moved.

Raise it on a laggy server. 0 removes the grace period and is only correct if you have disabled the anti-cheat.

provider-priority

Order in which model engines are asked for a model, highest first.

yaml
provider-priority:
    - bettermodel
    - mythicmobs

An animation names its model with mm-id. That id is resolved by walking this list and asking each engine "do you know this model?" — the first that does plays it.

BetterModel is first by default because it is the better engine today, not because MythicMobs is deprecated. Put mythicmobs first if your packs predate your BetterModel models.

debug

false by default. Turning it on logs every hide, reveal, freeze and release, and enables a movement trace:

[trace] t=5  age=-   RESPAWN Dabbzz respawned; grace window opens
[trace] t=25 age=20  START Dabbzz join-Sparkle camera=true duration=60t
[trace] t=25 age=20  CAMERA-attach Dabbzz spectator target set

That trace is the evidence of what moved a player and when. Paste it when something moves a player who did not ask to be moved. It logs per player per animation, so leave it off in production.


Per-animation options

Every entry under animations: in an event file is one animation:

yaml
animations:
    bubble_animation:
        mm-id: bubble_anim_join
        duration: 76
        permissions:
            - animcore.join.bubble_animation
Key Required What it does
mm-id yes The model name your engine knows it by
duration yes Ticks the animation runs. Must be > 0
item no A Conduit item key for the icon, e.g. itemsadder:ruby_sword. Falls back to material
material no Vanilla material used when item does not resolve
model-data no Custom model data, applied only when > 0
lore no Extra lines on the picker icon
display-name no Menu name. Defaults to a prettified version of the id
permissions no A player must hold all of these. Empty = no gate
worlds no Worlds this animation is off in. Empty = everywhere
camera no Play the cinematic camera. Default true
camera-transition no Ease the camera in rather than cutting. Default true

permissions

A player must hold every node listed, not just one:

yaml
permissions:
    - hanimationsworks.admin
    - some.other.node

An empty list means no permission gate. A node a player lacks hides the animation from the picker and refuses the play — the same list decides both, so what you see in the menu is what you can actually play.

worlds

This is a deny list, unlike most plugins:

yaml
worlds:
    - creative_plots

The animation is off in those worlds and on everywhere else. To disable it globally, use disabled-worlds in config.yml instead.


gui.yml

Layout and appearance of the picker menu. Every value is optional; delete anything you do not want to change and the built-in default is used.

Bad values do not break the plugin. An unknown material, an out-of-range slot or overlapping bands is reported in the console at startup and the affected value falls back to its default — you cannot lock yourself out of the menu by editing this file.

yaml
slots:
    grid-start: 0 # first slot of the animation grid
    grid-end: 27 # EXCLUSIVE — slot 27 is the first slot of the row below

grid-end is exclusive, so 0-27 is slots 0 through 26 — 27 entries, three full rows of nine. Changing this changes how many animations fit per page; the previous/next buttons appear automatically once there is more than one page.

messages.yml

Every message the plugin sends. & colour codes are translated, and {tokens} are filled in by the plugin:

yaml
prefix: '&8[&bAnimations&8] &r'
no-permission: '{prefix}&cYou do not have permission to do that.'
preference-set: '{prefix}&aJoin animation set to &f{animation}&a.'

Change these to rebrand the plugin's output. The ui.yml/gui.yml picker titles are handled by the platform bridge rather than this file.