Messages and Sounds
On this page(4)
These actions give the player feedback. They change nothing in the game, so use them freely. Keep chat lines rare: an enchant that procs every second floods the chat.
message and actionbar
- type: message
message: '&7[&d{enchant}&7] &fhit for &c{damage_formatted}'
- type: actionbar
message: '&e+{damage_formatted} &7damage'| Key | Default | What it does |
|---|---|---|
message | required | The text. text: is accepted too (message wins when both are written) |
The text takes colors, MiniMessage, PlaceholderAPI and the text variables. See Texts.
title
- type: title
title: '&d&lEXAMPLE'
subtitle: '&7level {level}'
fade-in: 5
stay: 20
fade-out: 5| Key | Default | Range |
|---|---|---|
title | '' | The big line |
subtitle | '' | The small line below it |
fade-in | 10 | Ticks, 0 to 1200, plain number |
stay | 40 | Ticks, 0 to 1200, plain number |
fade-out | 10 | Ticks, 0 to 1200, plain number |
A title with fade-in: 0, a short stay and fade-out: 0, repeated in a loop, makes an animation.
The shipped dice-roll preset shows a die rolling that way.
sound
- type: sound
sound: ENTITY_PLAYER_ATTACK_CRIT
volume: 0.8
pitch: '{random:0.9:1.2}'| Key | Default | What it does |
|---|---|---|
sound | required | The sound, in one of three forms (below) |
volume | 1 | An expression, 0 or more |
pitch | 1 | An expression, 0 or more. The client plays 0.5 to 2 |
at | {player_pos} | Where it plays (positions) |
offset | '0, 0, 0' | Moves that point |
category | MASTER | The volume slider it follows: MASTER, MUSIC, RECORDS, WEATHER, BLOCKS, HOSTILE, NEUTRAL, PLAYERS, AMBIENT, VOICE, UI |
The three forms of sound:
| Form | Example |
|---|---|
| A Bukkit Sound name | ENTITY_PLAYER_LEVELUP (the list) |
| A vanilla sound key | minecraft:entity.player.levelup (the list) |
| A resource pack sound | mypack:custom.hit (sent as written) |
A random pitch ('{random:0.9:1.3}') makes repeated hits sound alive instead of mechanical. A
pitch that rises with a loop round ('0.6 + {i} * 0.1') builds tension.
Who hears and reads them
Only the enchant's owner. The player's own settings filter them:
Setting (in /settings) | Hides |
|---|---|
sword.enchant-notifications | The message, actionbar and title steps of enchants |
core.titles | Every title (a title needs both settings on) |
core.action-bars | Every action bar (an action bar needs both settings on) |
core.sounds | The sounds of enchants |
Visitors watching the fight hear the sounds (following their own core.sounds). They never get
the chat lines, action bars or titles. See Player Settings.