Mortis Development
  • 👋Mortis Development
  • Mortis Core
    • Commands & Permissions
    • Custom Items
      • Detectors
      • Crafting Recipes
    • Custom Menus
      • Menu Items
      • Actions
        • Action Types
      • Requirements
    • Custom Blocks
    • Custom Mobs
    • Randomizer
    • Actions
      • Action Types
    • Requirements
      • Requirement Types
    • Default Configs
  • Mortis Minion
    • Commands & Permissions
    • Placeholders
    • Minions
      • Layouts
      • Minion Tiers
    • Skins
    • Fuels
    • Shippings
    • Upgrades
    • External Storages
    • Action Types
    • Default Configs
  • Mortis Bank
    • Commands & Permissions
    • Placeholders
    • Accounts
    • Action Types
    • Default Configs
Powered by GitBook
On this page
  • Example
  • Identifier
  • Title
  • Size
  • Rows
  • Menu Type
  • Open Requirements
  • Open Actions
  • Close Actions
  • Update Interval
  • Menu Items

Was this helpful?

  1. Mortis Core

Custom Menus

All custom menu related options & configurations

Example

id: color_patterns
title: "&cColor Patterns"
size: 9
items:
  red:
    material: RED_WOOL
    slot: 1
    click-actions:
      - "[message] &4You clicked the red colored wool"
  green:
    material: GREEN_WOOL
    slot: 2
    click-actions:
      - "[message] &2You clicked the green colored wool"
  blue:
    material: BLUE_WOOL
    slot: 3
    click-actions:
      - "[message] &1You clicked the blue colored wool"

Identifier

id: example_id

Allows you to set a identifier for the Custom Menu.

This option is only required when created in menus folder

Title

title: "&cColor Patterns"

Allows you to set the menu title for the Custom Menu.

You can use color codes and hex codes in this option

Size

size: 9

Allows you to set the size for the Custom Menu.

Rows

rows: 1

Allows you to set the rows for the Custom Menu.

Menu Type

menu-type: CHEST

Allows you to select a different type of inventory for the Custom Menu.

Open Requirements

open-requirement:
  requirements:
    ...

Allows you to add open requirements to the Custom Menu.

Open Actions

open-actions:
  - "actiontype action"
  - "actiontype action"

Allows you to add open actions to the Custom Menu.

Close Actions

close-actions:
  - "actiontype action"
  - "actiontype action"

Allows you to add close actions to the Custom Menu.

Update Interval

update-interval: 5

Allows you to set update interval (in seconds) to the Custom Menu.

This option will be used by items with the update option set to true

Menu Items

items:
  ...

PreviousCrafting RecipesNextMenu Items

Was this helpful?

Click here to view the list of menu types
Click here to view more about requirements
Click here to view more about actions
Click here to view more about actions
Click here to view more about menu items