animations.yml
Titles, sounds, boss bars, and particles on queue and match events.
Path: plugins/MineDuels/animations.yml
Reload: yes
What it supports
- Triggers:
queue-join,match-found,countdown,match-start,round-win,match-win,match-lose, … - Steps with
at:tick offset,type:sound|title|bossbar|particle| … - Placeholders in text:
%opponent%,%kit_display%,%seconds%,%round% - Per-trigger
enabled: false
What it does not do
- Replace
animationsin tab header (seetab.yml) - Run on clients below features they lack (titles still work broadly)
Example: match found
match-found:
enabled: true
steps:
- at: 0
type: title
title: "<gradient:#ffc371:#ff5f6d>Match found</gradient>"
subtitle: "<gray>vs <white>%opponent%"
fade-in: 0
stay: 35
fade-out: 5
- at: 0
type: sound
sound: entity.experience_orb.pickup
volume: 1
pitch: 0.8The match-found trigger plays in the lobby while the players wait for queue.match-found.delay-seconds, before the teleport. See Match found.
Placeholders for match-found: %player%, %opponent%, %team%, %kit%, %kit_display%, %round%, %match_type%.
More match found examples
Action bar and sound only:
match-found:
enabled: true
steps:
- { at: 0, type: actionbar, text: "<yellow>Match found <gray>vs <white>%opponent%", duration: 60 }
- { at: 0, type: sound, sound: block.note_block.pling, volume: 1, pitch: 1.5 }Boss bar that counts down the lobby wait (delay of 3 seconds, 60 ticks):
match-found:
enabled: true
steps:
- { at: 0, type: bossbar, text: "<gray>Teleporting to <white>%kit_display%</white> vs <white>%opponent%", color: green, overlay: progress, duration: 60, progress: 1.0 }Chat message line, a firework and a speed effect from the animation:
match-found:
enabled: true
steps:
- { at: 0, type: message, text: "<green>Opponent: <white>%opponent%" }
- { at: 0, type: firework, colors: ["#ffc371", "#ff5f6d"], power: 1 }
- { at: 0, type: potion, effect: speed, amplifier: 1, duration: 60 }A different animation for one match type, such as match-found-queue, is used when it exists in the file.
Typewriter title effect: effect: typewriter with frame-ticks on title steps.
Test triggers (operators): dev-commands: true and /md animation <trigger>.