Customize the menus
Use gui.yml to adjust titles, icons and button positions:
| Section | Menu |
|---|---|
| battlepass_perfil | Profile and main navigation. |
| battlepass_quest | Quests. |
| battlepass_rewards | Rewards. |
| battlepass_top | Rankings. |
| battlepass_shop | Shop. |
Keep navigation button keys and edit presentation in display, lore, id and slot. For three rows, use slots 0 to 26; for six rows, 0 to 53. Reserve space for pagination and avoid overlapping buttons.
Icons and textures
Use customModelData to associate an icon with your resource pack's model. For font-based backgrounds, set resource-pack.gui-texture-mode: CUSTOM_FONT in config.yml and provide the matching pack.
Without the resource pack, items use their default appearance. Update clients' packs after changing yours.
Messages
In messages.yml, customize quest, level and claim notifications. Keep placeholders in edited text so it continues to show each player's values.
Run /mbattlepass reload, then close and reopen the menu to check changes.
Menu templates and states
| Menu | Presentation fields |
|---|---|
| Rewards | slots_free, slots_paid, progress_slot; templates noRewardItem, skipItem, blockedReward, blockedRewardPaid, collectReward, progress_locked and progress_unlocked |
| Quests | Available, active and completed templates; categories and pagination |
| Shop | slots_shop, shop_item, empty slots and navigation |
| Rankings | ranking_slots and LEVEL/QUEST categories |
In the profile, keep quests, rewards, topranked and battle_pass_shop buttons. Changing display edits text; changing a key can break navigation. A newly named button does not create an action by itself.
For positions, use slot: 13 or slot: [10, 11, 12]. Do not use ranges such as 10-16. Each row has nine slots, starting at zero.
Resource pack
Use CUSTOM_MODEL_DATA for classic mode or CUSTOM_FONT for backgrounds using battlepass:gui. Glyphs are U+E001 for profile, U+E002 for quests, U+E003 for rewards, U+E004 for rankings and U+E006 for shop, with U+E010 as the offset.
For reward bars, prepare models 1001 for locked, 1012 for both tracks unlocked, 1015 for free and 1016 for premium. Backgrounds change appearance; clicks still use slot positions.
Use customModelData for ordinary icons and custom_model_data for ranking tags. Match the model to the pack's base item. See Pokémon icons and properties and messages and placeholders.