Skip to content

Names, lore and titles

Names and lore

Names and lore use MiniMessage tags such as <red>, <#ff1242> or <gradient:red:blue>, not & codes. Lore keys are lists, with one entry per line. Write a list even for a single line:

# menus/wardrobe.yml
collection:
  name: "<gold>Collection"         # a name is one line of text
  hint:                            # a lore key is a list, even for one line
    - "<yellow>Click:<gray> open"
  • The shipped hints are written like "<yellow>Click:<gray> take it off". You can change the tags or drop them.
  • A lore key set to an empty list, such as hint: [], shows no lines.
  • Text with no colour tag is never italic. It shows white in button names, and grey in lore, slot names and states.

Placeholders

Each placeholder works only in the keys listed beside it.

Placeholder Replaced with In
{title}, {player} The menu's title; the name of the player whose menu it is common.yml other-title
{name} The item's name, as the game shows it common.yml worn-item
{color}, <{color}> A colour as #RRGGBB; <{color}> gives the text after it that colour common.yml colors.current, colors.listed
{fov} The FOV wardrobe.yml fov.value
{count} How many of that cosmetic the player keeps collection.yml cosmetic.kept
{page}, {pages} The page number; the number of pages collection.yml page
{player} The player's name. PlaceholderAPI placeholders work too Your own buttons
%...% A PlaceholderAPI placeholder, filled for the player who opens the menu Every menu's title (Pictures from your item plugin)

A placeholder in curly brackets is replaced with its text. <{color}> is a colour tag, so the text after it takes that colour:

# menus/common.yml
other-title: "{title} - {player}"            # Wardrobe - Steve
colors:
  current: "<gray>Color: <{color}>{color}"   # the code #RRGGBB, written in its own colour

Titles

Titles take & codes, as "&8Wardrobe", not MiniMessage:

# menus/lists.yml
head:
  title: "&8Headwear"

A title can start with a resource pack picture, as "<image:bc_gui_rows_1>Wardrobe". Keep the tag first, and put colour codes after it:

# menus/wardrobe.yml
looks:
  all:
    title: "<image:bc_gui_rows_1>&8Wardrobe"
Tag Picture
<image:bc_gui_rows_1> to <image:bc_gui_rows_3> (<image:bc_gui> is the same as <image:bc_gui_rows_1>), and the same tags with bc_gui_three_rows_ and bc_gui_two_rows_ The picture of a wardrobe look, four rows high, starting at the row its number names
<image:rows>, <image:row_1> to <image:row_6> <image:rows> draws the row picture behind every row. <image:row_1> to <image:row_6> draw the same picture behind that one row
<image:bar_row_1> to <image:bar_row_6> One long bar in place of that row's slots
<image:collection_rows_1> to <image:collection_rows_3> The Collection's panel, four rows high, starting at the row its number names
<image:color_menu_row_1> to <image:color_menu_row_6> The palette's row, framing Reset, the cosmetic and Confirm
<image:worn_slot> A gold raised slot over each worn place
<image:color_slot> A grey raised slot over each dyeable place, while Colors is on
<image:color_badge> A badge in each place's colour, while Colors is on
<image:gold_slot> The wardrobe's gold slot behind each list place
  • An <image:...> tag with a name that is not in this table draws nothing, and stays in the title as written.
  • Pictures always draw in white, so a colour code does not tint them.
  • In a row with a picture, empty places stay empty, with no blank-slot icon. List menu rows count as having no picture.
  • On the showcase, a tried-on cosmetic's <image:worn_slot> is red.
  • <image:color_slot> over a gold slot is gold.

Pictures from your item plugin

A title can show a picture from ItemsAdder, Nexo, Oraxen or any other plugin that gives its pictures as PlaceholderAPI placeholders. The placeholder is filled for the player who opens the menu:

# menus/collection.yml: an ItemsAdder picture as the menu's background
title: "%img_my_menu%&8Collection"
Plugin Its picture placeholder
ItemsAdder %img_<name>%
Nexo %nexo_<glyph>%, and %nexo_shift_<pixels>% to move what follows left or right
Oraxen %oraxen_<glyph>%
  • It needs PlaceholderAPI on the server, with that plugin's placeholders turned on. Without PlaceholderAPI, the placeholder stays in the title as written.
  • Put BoxCosmetics's own <image:...> tags first, then the other plugin's picture, then the colour codes and the words.
  • Any other PlaceholderAPI placeholder works in a title too. It is filled once, as the menu opens.