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 animationReload everything with /hanim reload. One exception: provider-priority needs a restart, because the engine keeps the provider set it was built with.
A fresh install ships folders for 12 of the 16 triggers: afk, ban, command, death, emote, gui, join, kill, quit, respawn, teleport_in, teleport_out.
The other four — advancement, low_health, sleep, wake_up — are valid triggers with no default folder. Create the folder yourself if you want to use one; nothing breaks if you never do.
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.
defaults:
join: Sparkle
kill: FlameBurstOnly missing keys whose value is non-blank are filled in — an existing player choice is never overwritten.
There is no boolean here. The old plugin gated defaults behind a defaultanimations flag whose shipped value of false meant "apply defaults" — inverted relative to its name. Add or remove entries to turn defaults on or off.
disabled-worlds
Worlds where no animation plays, whatever any per-animation setting says.
disabled-worlds:
- creative_plots
- spawn_hubThis 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.
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 positionvisibility
Decides who gets told that a player has been hidden. This does not affect whether the animation plays — only who stops rendering one player.
visibility:
skip-other-worlds: true
max-viewer-distance: 64.0The 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.0disables the limit and sends to everyone; 64 is a good starting point.
This does not stop the animation. The mob, the freeze and the camera are unaffected. A viewer who walks into range mid-animation is not told until the next one — deliberate, because a repeating scan would cost more than the problem and animations are short.
triggers.low-health.threshold
Health at or below which the low_health animation plays, in half-hearts.
triggers:
low-health:
threshold: 6.0Vanilla 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.
This reads vanilla health. If another plugin owns your health system, this number is meaningless and you should leave the trigger disabled.
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.
provider-priority:
- bettermodel
- mythicmobsAn 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.
Listing only one provider does not disable the other — a missing entry is appended after the ones you listed. To stop animations resolving through an engine, remove that engine from the server.
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 setThat 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:
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:
permissions:
- hanimationsworks.admin
- some.other.nodeAn 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:
worlds:
- creative_plotsThe animation is off in those worlds and on everywhere else. To disable it globally, use disabled-worlds in config.yml instead.
The old plugin also pinned the player's position and wrote a .data file to restore it. That is intentionally not reproduced here — teleport the player in a separate plugin if you need it.
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.
slots:
grid-start: 0 # first slot of the animation grid
grid-end: 27 # EXCLUSIVE — slot 27 is the first slot of the row belowgrid-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:
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.