Custom Menus
BTCMobs includes a powerful menu system for in-game administration and browsing of mobs, items, and spawners.Opening Menus
Menus can be opened with the/btc menu command:
Available Menus
| Menu | Description |
|---|---|
main | Main navigation hub with access to all sub-menus |
mob-browser | Paginated list of all registered mobs |
item-browser | Paginated list of all registered items |
spawner-browser | Paginated list of all spawners |
mob-editor | Edit mob properties (view, spawn, kill) |
item-editor | Edit item properties (get, give) |
spawner-editor | Edit spawner settings |
config | Plugin configuration options |
color-picker | Color selection utility for customization |
Menu Features
Dynamic Content
Browser menus automatically populate with real data from the plugin:- Mob Browser: Shows all registered mobs with active instance counts
- Item Browser: Displays all custom items with their actual icons
- Spawner Browser: Lists all spawners with their current status
Pagination
Large lists are automatically paginated. Use the Previous Page and Next Page buttons to navigate.Quick Actions
Click on items in browsers to perform quick actions:- Mobs: Left-click to spawn, right-click to kill all instances
- Items: Click to receive the item
- Spawners: Left-click to force spawn, right-click to toggle active state
Creating Custom Menus
You can create custom menus by placing YAML files in theplugins/btcMobs/menus/ directory.
Menu Structure
Icon Properties
| Property | Description | Example |
|---|---|---|
Mapping | Character used in Schema | M |
Material | Bukkit material type | DIAMOND_SWORD |
Display | Display name (supports MiniMessage) | <gold><bold>My Item |
Lore | List of lore lines | See below |
Model | Custom model data | 100 |
Actions | List of click actions | See below |
Dynamic | Mark as dynamic slot for DataProvider | true |
Available Actions
| Action | Description | Example |
|---|---|---|
open: <menu> | Open another menu | open: item-browser |
close | Close the current menu | close |
command: <cmd> | Execute command as player | command: btc mobs spawn zombie |
console: <cmd> | Execute command as console | console: give <player> diamond 1 |
message: <msg> | Send message to player | message: <green>Hello! |
nextpage: <menu> | Go to next page | nextpage: mob-browser |
prevpage: <menu> | Go to previous page | prevpage: mob-browser |
Placeholders
| Placeholder | Description |
|---|---|
<page> | Current page number (1-indexed) |
<totalPages> | Total number of pages |
<currentPage> | Alias for page |
<totalItems> | Total items in the data provider |
<player> | Player name (in console commands) |
Data Providers
| Provider | Description |
|---|---|
mobs | Provides all registered mob types |
items | Provides all registered custom items |
spawners | Provides all configured spawners |