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

Last edited by Lxlp Aug 04, 2024
Page history
This is an old version of this page. You can view the most recent version or browse the history.

Custom Menus

Custom Menus are a special feature added by MythicRPG that allows you to make... custom menus.

  • Custom Menus
    • Creating Menus
    • Modifying a Menu
    • Opening Menus

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