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
  • Slot
  • Slots
  • Priority
  • Update
  • View Requirements
  • Click Requirements
  • Click Actions

Was this helpful?

  1. Mortis Core
  2. Custom Menus

Menu Items

All menu items related options & configurations

Example

items:
  sword:
    material: IRON_SWORD
    slot: 4
    name: "&aSword"
    lore:
      - "&7A basic iron sword."
    click-actions:
      - "[giveitem] IRON_SWORD"
  sharpness:
    material: ENCHANTED_BOOK
    slot: 12
    name: "&aSharpness"
    lore:
      - "&7Enchant your weapon with Sharpness."
    click-requirement:
      requirements:
        diamond-sword:
          type: has item
          material: DIAMOND_SWORD
          hand: true
    click-actions:
      - "[console] enchant %player_name% sharpness"

Slot

slot: 1

Sets a slot for the Menu Item.

Slots

slots:
  - 1
  - 3-5
  - 7-10
  - 15

Sets multiple slots for the Menu Item.

Priority

priority: 1

Sets the priority for the Menu Item.

Update

update: true

View Requirements

view-requirement:
  requirements:
    ...

Allows you to add view requirements to the Menu Item.

Click Requirements

click-requirement:
  requirements:
    ...    

Allows you to add click requirements to the Menu Item.

  • click-requirement:

  • right-click-requirement:

  • left-click-requirement:

  • shift-right-click-requirement:

  • shift-left-click-requirement:

Click Actions

click-actions:
  - "actiontype action"
  - "actiontype action"

Allows you to add click actions to the Menu Item.

  • click-actions:

  • right-click-actions:

  • left-click-actions:

  • shift-right-click-actions:

  • shift-left-click-actions:

PreviousCustom MenusNextActions

Was this helpful?

Updates the Menu Item every seconds.

Click here to view more about Custom Item
update-interval
Click here to view more about Requirements
Click here to view more about Requirements
Click here to view more about Actions