Chest builder
Build the menu in a real chest, look at it and type one command. Admins only (flaremobcoins.command.editor).
| Command | |
|---|---|
/mobcoins layout add <name> | new shop shops/<name>.yml from the chest you look at, opened with /<name> |
/mobcoins layout import <menu> | the chest replaces the decorations of a shop or a plugin menu; its buttons stay where they are |
/mobcoins layout chest <menu> | the other way round: the menu goes into the empty chest you look at, to change it by hand and import it again |
/mobcoins layout remove <name> | deletes a shop (asks to confirm, the file goes in backups/) |
- The container is the block you look at, at most 5 blocks away: chest, double chest, trapped chest, barrel, shulker box. Rows = size of the container (single chest 3, double chest 6). Other blocks are refused with a clear message.
<name>:a-z 0-9 -, at most 32 characters, not a plugin menu and not a command of another plugin.- Before
importandremovethe old file is copied tobackups/(the console line says where). - After
addandimportthe menu opens in the editor: everything can still be changed.
What is kept
Slot, material, amount, name, lore, enchantments, hidden flags, custom model data, player heads and textured heads, leather color, potions, full NBT. Simple items are written as material / name / lore, the others complete under item. Empty slots stay empty. A head named {player} becomes head:{player} (the head of the player).
Actions in the lore
Lore lines that start with [ are actions, not text: they are taken out of the lore.
[close] [open] <menu> [back] [refresh] [player] <cmd> [console] <cmd> [chat] <text> [message] <text> [broadcast] <text> [actionbar] <text> [title] title;subtitle;in;stay;out [sound] <sound> [volume] [pitch] [delay] <ticks> [server] <name> and the shop actions like [buy(mobcoins)] 100, [mobcoins_give] 10.
| Lore line | Meaning |
|---|---|
[left] / [right] / [shift-left] / [shift-right] in front of an action | only that click |
[permission] <node> | only players with it see the item |
[admin-only] | only admins see it |
[update] | redrawn every second (live placeholders) |
[button] <id> | an item of the menu goes on this slot: an item of the shop or an element of a plugin menu (shop, top, entries, close...), rotating-normal / rotating-premium for the slots of a rotating shop |
A lore line that must really start with [ is written \[.
Example
A double chest with yellow glass around, a book named &fRules with the lore &7Read them! and [console] tellraw {player} "Be nice", an emerald with the lore [open] main, and a barrier with [close]. Look at it and type /mobcoins layout add hub: /hub opens it.
To change it later by hand: put an empty double chest down, /mobcoins layout chest hub, change the items, /mobcoins layout import hub. Items of the menu are in the chest with [button] <id>: move them to change their slot, they keep everything they do. Without changes, chest and import give back exactly the same file.
Ultimo aggiornamento: