Skip to content

Commands

/bc is short for /boxcosmetics. In a command, a part like <required> must be given, and a part like [optional] may be left out. Every player has boxcosmetics.use, and boxcosmetics.admin is for ops (Permissions).

  • A player without the permission gets the message no-permission. If the <player> you name is not online, you get no-player. The other replies are under commands in messages.yml.
  • <player> takes the full name of a player who is online. Only /bc collection add <player> <cosmetic> also takes a player who is offline.
  • <cosmetic> takes a cosmetic's name: its key in cosmetics/, such as top-hat.
  • From the console, name a player in every command except /bc reload. /bc cosmetics works for players only.
  • A [player] left out means you. To name a [player] other than yourself, you need boxcosmetics.admin, or you run the command from the console. Adding -s anywhere in a Collection command or a /bc color command hides its reply, for menu buttons. The usage lines and the no-permission and no-player messages still show.
  • An admin who types a word that is no command, such as /bc help, gets the list of commands, commands.help in messages.yml. Other players get no-permission.

Common tasks

These are the commands server owners use most often. The lines use top-hat, the cosmetic from Getting Started, and a player called Steve.

Give a cosmetic

/bc give puts the cosmetic's item in the player's inventory. /bc collection add puts a piece in their Collection instead, and a player who is offline gets it at their next join.

/bc give Steve top-hat 1
/bc collection add Steve top-hat

Steve gets one Top Hat item, then one Top Hat piece in his Collection. The full rules are under give and collection.

Put a model on a player

/bc head, /bc wear and /bc balloon put a ModelEngine model on a player without any item. Add true, so that running the line twice does not take the model off again.

/bc head Steve meg:top_hat true
/bc head Steve meg:top_hat false

The first line puts the top_hat model on Steve's head, and the second takes it off. The full rules are under head, wear and balloon.

Open another player's menu

/bc open Steve
/bc collection Steve

The first line opens Steve's wardrobe on your screen, titled Wardrobe - Steve, so that you can change what he wears. The second opens his Collection. Both need boxcosmetics.admin. The full rules are under open.

Sell a cosmetic from a shop button

Your shop takes the price, then runs this line from the console. In a DeluxeMenus button, %player_name% is the name of the player who clicked.

[console] bc collection add %player_name% top-hat

The player finds a Top Hat in their Collection. Accessories are never added to a Collection, so sell an accessory with [console] bc give %player_name% <cosmetic>. A complete button with a price is under Sell a cosmetic.

Reload after an edit

/bc reload
/meg reload models

The first line reads config.yml, messages.yml, menus/, mobs.yml and cosmetics/ again, and the chat says Config reloaded. After you add or change a ModelEngine model, run the second line instead. The full rules are under reload.

open

Command Permission What it does
/bc, /bc open boxcosmetics.use Your cosmetics menu (Usage)
/bc open <player> boxcosmetics.admin Their menu, to change what they wear
/bc
/bc open Steve

The first line opens your own menu. The second opens Steve's menu on your screen, so that you can change what he wears.

  • The menu title names the player, such as Wardrobe - Steve (other-title). The menu closes when that player leaves.
  • In another player's menu, some of the permissions that count are yours and some are theirs: Whose permissions count.
  • From the console, the menu opens on the player's own screen.

give

/bc give <player> <cosmetic|meg:model> [amount] (boxcosmetics.admin) is the only way to get a cosmetic's item. The amount is 1 by default, and 64 at most. [amount] takes a whole number: a number below 1 counts as 1, and a number above 64 counts as 64. A word that is not a number shows the give.usage line (commands).

/bc give Steve top-hat
/bc give Steve top-hat 3
/bc give Steve meg:top_hat

Steve gets one Top Hat item, then three more. The last line gives him a name tag of the ModelEngine model top_hat.

  • The command does not check any permission (permission-locks-item). More about the item: Giving the item.
  • Items that do not fit in the inventory go to the Collection while the Collection is on. Otherwise they drop, and so do accessories, which the Collection never keeps. Name tags that do not fit always drop.
  • meg:<model> gives a name tag that anyone can use. When the name tag is put in the Head, Wear or Balloon slot, or on a BoxStand stand, it shows the model.

reload

/bc reload (boxcosmetics.admin) brings config.yml, messages.yml, menus/ and mobs.yml up to date, then reads them and cosmetics/ again (Updates keep your settings). It does not reload any other plugin.

/bc reload

Your files are read again, and the chat says Config reloaded.

  • Items in a slot that is now switched off go into the player's Collection while it is on, else back to their inventory, or drop. Models put on by command stay.
  • A mistake in a cosmetic file shows as a warning in the console (A file that will not load).
  • A key left blank, or with a value that cannot be read, gets its default, as after a restart.
  • Changed cosmetics come off and go back on at once. Mobs that wear cosmetics (Cosmetics on mobs) are dressed again by the new files.
  • ModelEngine models need /meg reload models, which puts the models back on everyone by itself.

head, wear and balloon

These commands put a ModelEngine model on a player, without any item, or take it off.

Command (needs boxcosmetics.admin) What it does
/bc <head|wear|balloon> <player> <cosmetic|meg:model> true Puts it on, in that list
/bc <head|wear|balloon> <player> <cosmetic|meg:model> false Takes it off
/bc <head|wear|balloon> <player> <cosmetic|meg:model> (without true or false) Puts it on if it is off, takes it off if it is on. In shops and scripts, add true or false, so that running it twice does not take it off again
/bc <head|wear|balloon> <player> clear Takes everything off that list. Items go back to the player's inventory, or drop at their feet if it is full
/bc wear Steve dragon-wings true
/bc head Steve meg:top_hat
/bc balloon Steve meg:heart_balloon false
/bc balloon Steve clear

The first line puts the model of the cosmetic dragon-wings on Steve's back. The second puts the top_hat model on his head, or takes it off if he has it on already. The third takes the heart_balloon balloon off, and the last takes every balloon off.

  • A Head model turns with where the player looks, a Wear model turns with the body, and a Balloon floats beside the player.
  • <cosmetic> puts on the model that the cosmetic's show: meg: names. A cosmetic without one gives the message cosmetic-no-model. meg:<model>/<bone> puts on one bone of a model.
  • A name that is not a cosmetic's is read as a model's id, as if it had meg: in front of it.
  • After the model, the command reads only true or false. Any other word shows the usage line (commands).
  • meg:<model> puts on the model without any skills, animation settings or position settings (Cosmetics without an item). A cosmetic's name puts the model on with that cosmetic's position settings, animation settings and skills.
  • After you add a model, run /meg reload models, not /bc reload.
  • The model stays through restarts, needs no permission, and goes first in the list.
  • It counts against max or a limit. A full list refuses it.
  • The menu shows it as a name tag with its id. Taking the name tag out of the list takes the model off, and the player keeps the name tag to put it on again.

collection

Command Permission What it does
/bc collection boxcosmetics.use Opens your Collection
/bc collection <player> boxcosmetics.admin Opens that player's Collection for you. From the console, it opens on their screen
/bc collection add <player> <cosmetic|all> [amount] boxcosmetics.admin Adds pieces. all adds one of each cosmetic they do not have
/bc collection remove <player> <cosmetic|all> [amount] boxcosmetics.admin Removes for good. Worn pieces stay on
/bc equip <cosmetic> [player] boxcosmetics.use Puts one on, as a right-click with it in hand would
/bc unequip <cosmetic|slot|all> [player] boxcosmetics.use Takes off into the Collection
/bc toggle <cosmetic> [player] boxcosmetics.use Does unequip if it is on, else equip
/bc store [player] boxcosmetics.use Puts the stack in the main hand into the Collection
/bc withdraw <cosmetic> [amount] [player] boxcosmetics.use Takes pieces out as items, 64 at most
/bc collection add Steve top-hat 2
/bc collection remove Steve all
/bc equip top-hat
/bc unequip all
/bc withdraw top-hat 1

Steve gets two Top Hat pieces, then every piece in his Collection is removed for good. Then you put on a Top Hat from your own Collection, take everything you wear back into your Collection, and take one Top Hat out as an item.

  • <cosmetic> is a name in cosmetics/ with an item. Accessories are never added or stored.
  • collection add <player> <cosmetic> reaches offline players at their next join. The other commands need the player to be online. An offline player must have joined the server before: for a name the server does not know, you get no-player.
  • [amount] is 1 when it is left out. In collection add and collection remove, it takes any whole number from 1 up, and 0, a number below 0 or a word shows the usage-add line. With all, no amount is read: add puts in one of each, and remove empties the Collection.
  • In withdraw, [amount] takes 1 to 64: a number below 1 counts as 1, and a number above 64 counts as 64. A word after the cosmetic that is not a number is read as the [player].
  • The slots that unequip takes are head, helmet, chestplate, leggings, boots, hand, offhand, balloon, wear, accessory-head, accessory-wear, accessory-balloon and accessory-offhand.
  • unequip <slot> takes everything off that slot, and unequip all everything off every slot. Cosmetics go into the Collection, other items go to the inventory or drop when it is full, and models put on with /bc head, wear or balloon stay on. unequip <cosmetic> takes off the first piece of that cosmetic that the player wears.
  • store refuses damaged or enchanted stacks. With collection.enabled: false, all these commands say that the Collection is off.

color

Command What it does
/bc color Opens the palette of the item in your main hand, or else in your off hand. Otherwise, opens your Collection with Colors on. While the Collection is off, it shows the color.usage line
/bc color <#RRGGBB> Dyes the item in your main hand, or else in your off hand, at once. # is optional
/bc color reset Gives the item in your main hand, or else in your off hand, its own colour back. For a cosmetic's piece, it needs no colour permission
/bc color <cosmetic> [back:<command>] Opens the palette of that cosmetic's piece: the worn one, else the next one in the Collection, else the one its permission gives
/bc color <cosmetic> <player> [back:<command>] Console only: opens that palette on the player's screen
/bc color <cosmetic> <#RRGGBB|reset> [player] Colours or resets that piece at once: the worn one, else the one in the Collection, else the one its permission gives
/bc color
/bc color #3366FF
/bc color reset
/bc color top-hat #3366FF Steve
/bc color top-hat back:cosmeticsmenu

The first line opens the palette of the item in your hand. The second dyes that item blue at once, and the third gives it its own colour back. The fourth colours Steve's Top Hat blue. The last opens the palette of your Top Hat, and its Back button runs /cosmeticsmenu. For these lines, top-hat needs dyeable: true.

  • The command colours a dyeable: true cosmetic, or any dyeable item in hand (vanilla-color).
  • back:<command> makes the palette's Back button run <command>. The slash in front of the command is optional. Put back: last, such as back:cosmetics_wear, because everything after it is the command. Without back:, the palette goes back to /bc for a worn piece, or to the Collection for a kept one. Opened over another plugin's menu without back:, it closes instead.
  • <#RRGGBB> takes six hex digits, 0 to 9 and A to F, with or without # in front, such as 3366FF or #3366ff. reset takes the colour off instead. A word that tries to be a colour and is not one, such as -00001, #12 or 0x3366FF, shows the color.usage line.
  • A player name made of six hex digits, such as abcdef, is read as a colour.
  • A dyed item shows no "Dyed" line in its tooltip.

An item plugin's item

/bc color colours another plugin's item when the item has the tag boxcosmetics:dyeable. Without the tag, it colours the item only if the item has a dye colour already, or is an item the game dyes, such as leather armour (vanilla-color). Its model needs a dye tint (minecraft:dye, tintindex). Who may colour a tagged item: tagged-color.

MythicCrucible and MythicMobs:

# plugins/MythicMobs/Items/my_items.yml
my_item:
  Id: PAPER
  NBT:
    PublicBukkitValues:
      "boxcosmetics:dyeable": byte/1

Nexo:

# plugins/Nexo/items/my_items.yml
my_item:
  PersistentData:
    - type: BYTE
      key: boxcosmetics:dyeable
      value: 1

ItemsAdder:

# plugins/ItemsAdder/contents/myitems/configs/my_items.yml
items:
  my_item:
    nbt: '{components:{"minecraft:custom_data":{PublicBukkitValues:{"boxcosmetics:dyeable":1b}}}}'

The tag takes any whole number but 0, true, or the text true, yes or 1, and each of those makes the item dyeable. 0, false, a decimal number or any other text counts as no tag, so the rule for items without the tag applies.

showcase

/bc showcase (boxcosmetics.showcase) shows you from outside your body, so that you can try cosmetics on. /bc showcase <player> (boxcosmetics.admin) puts that player into the showcase, or takes them out.

/bc showcase
/bc showcase Steve

The first line takes you into the showcase, or out of it. The second does the same for Steve.

Key What it does
Left or right click Opens the showcase page on the category of the current view
Mouse wheel, or a number key Next or previous view
Sneak, or /bc showcase Leaves
/bc Leaves and opens your wardrobe
  • While dead, riding or in spectator mode, /bc showcase shows the not-now message and does nothing. showcase sets areas, a stage, a sidebar and what teleports do.
  • In the showcase, you cannot move, build, use, hit, drop or swap hands. Damage and death are real. A fall hurts as it would outside, so Slow Falling, hay, beds and water soften or stop it.
  • Your hand, hotbar and bars are hidden. You see a copy of yourself in cosmetics only, with no real items.
  • Other players see you as you were when you went in, until you leave.
  • As shipped, being teleported keeps you in the showcase (teleport). Dying or leaving the server ends it.
  • For a room that players walk into, see dressingroom. To open the showcase only in one area, give it a stage: with anywhere: false, the showcase then moves each player to the stage as it opens (areas).
  • The showcase's messages are in the showcase section of messages.yml.

The showcase page

The showcase page on All

The page lists every cosmetic that has a place in the Collection, yours or not, in the categories that are on. Accessories are not listed.

Click What it does
Left, one you have You wear it for real
Left, one you lack It goes on to try
Left or right, one you have on Takes it off
A category Shows that category, and also turns the camera
The filter Shows all cosmetics, those you have on, or yours, as the Collection's filter does
Sidebar Shows or hides the sidebar of keys, for you only. The button is there while sidebar is on
Wardrobe Leaves, opens your wardrobe

A cosmetic you do not have: Not in your collection, Left Click: try on The page again after the click: Trying on, Click: take off

  • Putting a cosmetic on closes the page. A cosmetic that takes a colour opens its palette first, and Cancel there goes back to the page.
  • A try-on gives no abilities, never becomes an item, and comes off as you leave.
  • The page's layout and lines are in menus/showcase.yml. Its category and page buttons are in menus/collection.yml.

dressingroom

/bc dressingroom <room> (boxcosmetics.dressingroom) takes you into a dressing room to try cosmetics on. /bc dressingroom <room> <player> (boxcosmetics.admin) takes that player in. From the console, name a player.

/bc dressingroom lobby
/bc dressingroom lobby Steve

The first line moves you to the lobby room's stage and opens the showcase there. The second does the same for Steve.

  • Walking into the room's door does the same as the command.
  • Inside, everything works as in the showcase. Sneak, /bc or the Wardrobe button leaves, and moves you to the room's leave.
  • The command never takes you out. While you are already in the showcase, it does nothing.
  • It works while showcase.enabled is false, and without boxcosmetics.showcase. dressing-rooms.enabled: false switches the rooms off on their own.
  • While dead, riding or in spectator mode, it shows the dressing-room.not-now message and does nothing.
  • Tab completion lists the room names.
  • The messages are in the dressing-room section of messages.yml.

cosmetics

The admins' page of every cosmetic

/bc cosmetics shows every cosmetic with an item, accessories too, except those of a category switched off in categories. It needs boxcosmetics.admin, which is checked again on every click: without it, the page closes.

/bc cosmetics

The page of every cosmetic opens. A left click on a cosmetic puts its item in your inventory.

Click What it does
Left Puts one in your inventory. If it is full, you get admin.full
Right One on your empty cursor
Shift-click or double-click in your inventory Does nothing

Tab completion

Players see only the commands they may run. With ModelEngine installed, type meg: to list every model.