➖Modify Menu
Guide to modify the menus correctly
Sections available.
title_menu
The menu title is what is displayed at the top left of the inventory. You can modify it to your liking.
Menu:
title_menu: '&bCustomJoin&fEvents &8| &7Main'

size
The size of the menu is important, depending on the value that you place, it will be its size. Here are the sizes available
Valid sizes: 9,18, 27, 36, 45 y 54
It is important that you place the value correctly to avoid errors with the plugin.
Menu:
title_menu: '&bCustomJoin&fEvents &8| &7Main'
size: 45

decorations
The decoration section is to place a variety of decorative items, the plugin has some decorations by default. If you want to remove any of those decorations, just delete the section. But if you want to keep the section and disable the decoration, just look for the enabled
section and change its value to false
. In this way, the decoration will be deactivated but keeping its configuration.
Menu:
decorations:
title_menu: '&bCustomJoin&fEvents &8| &7Main'
size: 45
decorations:
glass:
material: 'GRAY_STAINED_GLASS_PANE'
display_name: ' '
enabled: true
close:
material: 'BARRIER'
display_name: '&6&l✦ &cClose &6&l✦'
enabled: true
lore:
- ''
- '&6&l| &fClick to close this menu'
- ''

material
The material will be the item that is shown to the user in the inventory of their respective menu. In this section you can place materials and even custom player heads.
To place an item or custom player head there are 3
ways to do it.
1) Normal item
For the normal or material item, you must place the name of the material in the corresponding section that is material
.
It is super important that you use the names of the materials correctly, depending on the version, you can absolutely use the names of the higher versions, but materials that exist in lower versions.
Menu:
items:
settings:
material: 'FIREWORK_ROCKET'
2) Textures
To place textures is somewhat more complicated to do, but here I will show you how. First you must go to the following link: click here. You will select the head that you like the most and you will go to the bottom of the page and look for the "Other"
section and copy the value found in value
.

Once we have copied the texture value
, you will paste it into material
followed by the word TEXTURE-value
. Here are some examples.
Menu:
items:
settings:
material: 'TEXTURE-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDg5ODVmODI0MDVjY2FjOGY1YWUxYjlmNjAzMTQyNTYzYzBlNTFmNGI4NGE4ZTM5NThkNTNiOTkzZWNiMThkMyJ9fX0='
3) Player head
This is the same as the texture, but here you can put a player's name (premium) and it will be replaced by that player's head. To place the player's head, you must place the following in material
PLAYER_HEAD-player_name
Menu:
items:
settings:
material: 'PLAYER_HEAD-_ImJona'
display_name
Display_name will be the name that will be given to the item in the inventory, you can choose the name to your liking.
Menu:
items:
settings:
material: 'COMPARATOR'
display_name: '&a&lTitle &e#2'

action_type
Action_type are the actions that the item does when clicked by the user, you can choose already predetermined actions.
Actions available:
1) OPEN_MENU_<menu>
2) CLOSE_MENU
3) BACK_MENU_<menu>
Currently, there are 6 menus available.
1) MAIN
2) FIREWORK
3) SETTINGS
4) SOUND
5) MESSAGE
6) TITLE
This section is only for decorations
, nothing will happen if you place it elsewhere.
message:
material: 'PAPER'
display_name: '&3Messages'
action_type: 'OPEN_MENU_MESSAGE'
sound_on_click
This section is only added by default in decorations - "close"
. What does it really do? Well, it plays a sound when a user clicks on the item in question. You can add them in all the sections that you like.
To know how to place the sounds correctly, click here.
Menu:
items:
close:
material: 'BARRIER'
display_name: '&cClose'
sound_on_click: 'CHEST_CLOSE'
enabled: true
action_type: 'CLOSE_MENU'
slot
Slot will be the place where our material is located within the inventory. You are free to choose the position you like.

In the image shown there are numbers in each slot, you must choose one and write it in your slot
section of your event. But I will show you other ways to place your material in the inventory.
1) Normla slot
The first way is the one that is mentioned to you, select the position in the inventory (number) and place it in the slot
and it would be left.
Menu:
items:
close:
material: 'BARRIER'
display_name: '&cClose'
sound_on_click: 'CHEST_CLOSE'
enabled: true
slot: 40
action_type: 'CLOSE_MENU'
2) List
In this you can place multiple positions of a material in the inventory, we do the same as the above mentioned. We select the positions we want and we are placing it as follows.
Menu:
decorations:
items:
glass_1:
material: 'PINK_STAINED_GLASS_PANE'
display_name: ' '
enabled: true
slot:
- 0
- 1
- 7
- 8
- 9
- 17
- 27
- 35
- 36
- 37
- 43
- 44
3) All
This is easier than it seems, if you want the empty spaces in your inventory to be filled, just put -1
in the slot
section and it will automatically be filled.
Menu:
decorations:
items:
glass:
material: 'PINK_STAINED_GLASS_PANE'
display_name: ' '
enabled: true
slot: -1
lore
The lore is the information that is displayed on a material/item, it is used to specify certain things in more detail, this is fully modifiable in all inventories.
Menu:
decorations:
items:
message:
material: 'PAPER'
display_name: '&3Messages'
action_type: 'OPEN_MENU_MESSAGE'
slot: 23
lore:
- ''
- '&6&l| &fClick to open the messages menu'
- ''

Última actualización