Menus / UI
Item System
Full item YAML reference for ExyliaLib menus
Item System
All menu types use the same item structure.
Full reference example
items:
example_item:
material: NETHERITE_SWORD
name: '&c&lExample Item'
display-name: '&fAlternative Name'
lore:
- '&7Line 1'
- '&7Line 2'
amount: 1
glow: true
hide-attributes: true
hide-tooltip: false
unbreakable: true
max_stack_size: 1
slot: 13
# slots: '10-16,19-25'
item_model: 'exylia:example_item'
tooltip_style: 'exylia:rare'
click_sounds:
- 'UI_BUTTON_CLICK|1.0|1.0'
enchantments:
SHARPNESS: 5
UNBREAKING: 3
armor_trim:
material: diamond
pattern: sentry
leather_color: '#55AAFF'
potion:
base_type: STRENGTH
upgraded: true
extended: false
color: '#FF0000'
custom_effects:
- type: SPEED
amplifier: 1
duration: 200
attributes:
- 'GENERIC_ATTACK_DAMAGE:10:ADD_NUMBER'
nbt:
item_id: 'example_item'
rarity: 'rare'
dynamic_update: true
update_interval: 20
actions:
- 'left: close'
- 'right: next_page'
commands:
- 'left: player: msg You clicked'
- 'right: console: say {player} clicked example_item'
requires-target: falseRequired fields
material- Position with
slotorslots
Position formats
slot: 13
slots: '10-16,19-25'
slots:
- 10
- 13
- 16Do not use slot and slots together in the same item.
Visual and metadata keys
name,display-name,lore,amountglow/glowinghide-attributes/hide_attributeshide-tooltip/hide_tooltipunbreakable,max_stack_sizeitem_model,tooltip_styleenchantmentsarmor_trimleather_colorpotion,base_potion_type,potion_color,potion_effectsattributesnbt
Dynamic keys
dynamic_update: Enables item-level dynamic refreshupdate_interval: Tick interval for this item
Actions and commands
Use actions for Exylia action system entries and commands for command execution.
actions:
- 'left: close'
- 'right: next_page'
commands:
- 'left: player: msg Hello'
- 'right: console: say {player} clicked'Command prefixes
player:console:player-proxy:console-proxy:
Click prefixes
left,right,middleshift_left,shift_rightdrop,swap,double,number_keyany
You can combine prefixes: left,right: ...
Sound format
click_sounds:
- 'UI_BUTTON_CLICK|1.0|1.0'Material variants
Supported common head variants:
material: 'playerhead:Notch'
material: 'headbase:<base64>'
material: 'urlhead:https://textures.minecraft.net/texture/...'