-
Notifications
You must be signed in to change notification settings - Fork 44
Updating
cj89898 edited this page Sep 2, 2019
·
2 revisions
If you are on Minecraft v1.12.2 or below:
- Replace item IDs with 1.12.2 Material Names
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]'
- Placeholders
- Materials:
- Enchantments (Be aware that some enchantments are not available on some items.)
- Dye Colors
- Pattern Types
- Sound Types