Skip to content

Updating

cj89898 edited this page Sep 2, 2019 · 2 revisions

If you are on Minecraft v1.12.2 or below:

If you are on Minecraft v1.13 or above:

  • Replace item IDs with Material Names for your version
  • Remove data tags

Old Config Example:

menu_title: '&aExample GUI menu'
open_command: examplemenu
size: 9
open_requirement:
  requirements:
    permission:
      type: has permission
      permission: some.permission
      deny_commands:
      - '[message] You dont have permission to open the example menu'
items:
  '1':
    material: 1
    data: 1
    slot: 0
    display_name: '&aHey &f%player_name%'
    lore:
    - '&aThis is a piece of Granite!'
    - '&aThis menu is just for you!'
    left_click_commands:
    - '[close]'
    right_click_commands:
    - '[player] help'
    - '[close]'
  '2':
    material: 3
    data: 0
    amount: 1
    slot: 1
    priority: 1
    view_requirement:
      requirements:
        permission:
          type: has permission
          permission: some.permission
    display_name: '&bTeleport home'
    lore:
    - '&bClick to teleport'
    - '&bto your home'
    left_click_commands:
    - '[close]'
    right_click_commands:
    - '[player] home'
    - '[close]'

1.12.2 Config Example:

menu_title: '&aExample GUI menu'
open_command: examplemenu
size: 9
open_requirement:
  requirements:
    permission:
      type: has permission
      permission: some.permission
      deny_commands:
      - '[message] You dont have permission to open the example menu'
items:
  '1':
    material: STONE
    data: 1
    slot: 0
    display_name: '&aHey &f%player_name%'
    lore:
    - '&aThis is a piece of Granite!'
    - '&aThis menu is just for you!'
    left_click_commands:
    - '[close]'
    right_click_commands:
    - '[player] help'
    - '[close]'
  '2':
    material: DIRT
    data: 0
    amount: 1
    slot: 1
    priority: 1
    view_requirement:
      requirements:
        permission:
          type: has permission
          permission: some.permission
    display_name: '&bTeleport home'
    lore:
    - '&bClick to teleport'
    - '&bto your home'
    left_click_commands:
    - '[close]'
    right_click_commands:
    - '[player] home'
    - '[close]'

1.13+

menu_title: '&aExample GUI menu'
open_command: examplemenu
size: 9
open_requirement:
  requirements:
    permission:
      type: has permission
      permission: some.permission
      deny_commands:
      - '[message] You dont have permission to open the example menu'
items:
  '1':
    material: GRANITE
    slot: 0
    display_name: '&aHey &f%player_name%'
    lore:
    - '&aThis is a piece of Granite!'
    - '&aThis menu is just for you!'
    left_click_commands:
    - '[close]'
    right_click_commands:
    - '[player] help'
    - '[close]'
  '2':
    material: DIRT
    amount: 1
    slot: 1
    priority: 1
    view_requirement:
      requirements:
        permission:
          type: has permission
          permission: some.permission
    display_name: '&bTeleport home'
    lore:
    - '&bClick to teleport'
    - '&bto your home'
    left_click_commands:
    - '[close]'
    right_click_commands:
    - '[player] home'
    - '[close]'
Clone this wiki locally