Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicRPG MythicRPG
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 43
    • Issues 43
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicRPGMythicRPG
  • Wiki
  • Custom Menus

Custom Menus · Changes

Page history
Create Custom Menus authored Jul 31, 2024 by Ashijin's avatar Ashijin
Hide whitespace changes
Inline Side-by-side
Showing with 64 additions and 0 deletions
+64 -0
  • Custom-Menus.md Custom-Menus.md +64 -0
  • No files found.
Custom-Menus.md 0 → 100644
View page @ c2f5b59f
Custom Menus are a special feature added by MythicRPG that allows you to make... custom menus.
[[_TOC_]]
# Custom Menus
### Creating Menus
You can create menus by placing them in any `.yml` file inside a `menus` folder in any mythic pack.
For example, you can create a new `.yml` file at `plugins/MythicMobs/menus/custom_menus.yml`.
Any top-level node will be loaded as a menu using the standard Mythic menu format. For example, to create a menu named `MyCustomMenu` you'd place this in the file:
```
MyCustomMenu:
Display: "My Custom Menu"
Size: 27
Schema:
- '1 1 1 1 1 1 1 1 1'
- '0 0 0 0 B 0 0 0 0'
- '1 1 1 1 1 1 1 1 1'
Icons:
FILLER:
Mapping: 1
Material: RED_STAINED_GLASS_PANE
Display: ''
Model: 1
TEST_BUTTON:
Mapping: B
Material: GOLD_INGOT
Model: 4
Display: 'Test'
Skills:
- sound{s=entity.chicken.egg}
- setcustommenubutton{slot=11;icon=DYNAMIC_BUTTON}
- message{m="you hit me"} @self
DYNAMIC_BUTTON:
Material: IRON_SWORD
Model: 100
```
This example includes many of the features of the custom menu system.
The `Schema` defines how the menu looks - it's basically a `9 x height` grid representing the menu's icons. Each letter/number is mapped to one of the icons defined under the `Icons` section.
For example, any slot in the Schema with 1 is mapped to FILLER:
```
FILLER:
Mapping: 1
```
Icons contain:
- `Mapping`: a letter or number used to map the icon to the schema
- `Material`: the Material of the icon
- `Model`: the CustomModelData of the icon
- `Display`: the Display Name of the icon
- `Lore`: a list of lines of lore
- `Skills`: Skills executed when the button is pressed
### Modifying a Menu
You can modify an open menu using the `setcustommenubutton{slot=11;icon=ICON}` mechanic
### Opening Menus
To open a custom menu you've created, you can use one of the following:
- **`Command`** - `/mythicrpg menus open [menu] <player>`
- **`Mechanic`** - the `openCustomMenu{menu=name}` mechanic
Clone repository

MythicRPG

  • Home
  • Changelogs
  • Commands / Permissions
  • FAQ / Common Issues
Usage
  • Installation
  • Spells
    • Learning
    • Casting
    • Reagents
  • Archetypes
    • Leveling
    • Talents
    • Professions
    • Boosters
  • Currencies
  • Custom Commands
  • Custom Menus
  • Global Spells ("MythicScript")
  • Waypoints
Mechanics
  • Mechanics
  • Targeters
  • Triggers
  • Conditions
Placeholders
  • Placeholders