Configure notifications
Edit values in messages.yml while keeping their keys. Use chat, actionbar, title, subtitle, sound and notify; an empty list disables that channel for the notification.
complete_quest:
chat:
- '&aQuest completed: %quest_name%'
- '&7Você ganhou %amount% XP.'
actionbar:
- '&aQuest completed!'
title:
- '&aCongratulations!'
subtitle:
- '&7Quest completed.'
sound:
- 'minecraft:entity.player.levelup volume:0.7 pitch:1.1'
notify: []
For a chat button, add {action} and configure action.text, action.hover and action.click.type/value. Use run_command to run a command, suggest_command to suggest one, and open_url to open a link. Clicking runs commands with your player permissions.
reward_reminder:
join:
chat:
- '&eVocê tem %amount% recompensa(s). {action}'
action:
text: '&a[OPEN PASS]'
hover: '&7Click to open.'
click:
type: run_command
value: '/battlepass'
Placeholders by context
| Where to use them | Format / examples |
|---|---|
| Menus | {player}, {level}, {xp}, {xp_next}, {levelmax}, {progress_bar}, {percent}, {typepass}, {bonus}, {player_point}, {bonusTotal} |
| Season information in menus | {season_name}, {season_start}, {season_end}, {season_remaining}, {season_progress_bar}, {season_level} |
| Objectives | %progress%, %target% |
| Quest completion | %quest_name%, %amount% |
| Level up | %level% |
| Reward reminder | %amount%, %free%, %paid%, %command% |
| Command actions | {player} or %player% |
| Menu elements | {page}, {max_page}, {collect}, {rewards}, {progress}, {target}, depending on the template |
Use placeholders supported by the block you are editing. Reward messages do not replace every menu placeholder. Category counters use quest_daily_amount/progress/progress_bar, with matching suffixes for weekly and permanent; amount represents the configured quantity, not only an individual player's roll.
PB4 Placeholder API
With placeholder-api installed, use %mcobblepass:chave%, replacing chave with a supported key:
- player, level, xp, xp_next, levelmax, progress_bar, percent, typepass, bonus, player_point, bonustotal.
- season_name, season_start, season_end, season_remaining, season_progress_bar, season_level, season_id, season_status, season_time.
- quest_daily_amount, quest_daily_progress, quest_daily_progress_bar.
- quest_weekly_amount, quest_weekly_progress, quest_weekly_progress_bar.
- quest_permanent_amount, quest_permanent_progress, quest_permanent_progress_bar.
For example, %mcobblepass:level% shows the pass level. Use lowercase bonustotal in PB4 and provide player context. XP represents the current stage; the season bar represents elapsed season time.
In messages, use <mid> for centering, <#57F287> for hexadecimal colors and gradient:#57F287:#FEE75CText</gradient> for gradients. In menu icons and text, keep the colors supported by the template you are editing.