-
Notifications
You must be signed in to change notification settings - Fork 15
Menus
There's two ways to create item-menu using ReActions.
1. Use action MENU_ITEM to define all menu in one line.
This method is is inconvenient, especially when you need to create big GUI. But it useful when you need to create small (one or two slots menu).
BUTTON:
testmenu:
world: world
x: -483
y: 5
z: 490
flags: []
actions:
- MENU_ITEM=size:9 title:{ReActions menu} slot1:{name:{Execute exec1 activator} type:DIAMOND} exec1:exec1 slot2:{name:{Execute exec2 activator} type:DIAMOND}
reactions: []
/react add testmenu a MENU_ITEM size:9 title:{ReActions menu} slot1:{name:{Execute exec1 activator} type:DIAMOND} exec1:exec1 slot2:name:{Execute exec2 activator} type:DIAMOND}
Menu configuration is saved to file menu.yml and this menu could be show using action MENU_ITEM with parameter id, that points to menu name.
test:
title: This is a test menu!
size: 18
slot1:
item: '&6Execute activator exec1$DIAMOND'
activator: exec1
slot3:
item: DIRT
activator: exec2
BUTTON:
testmenu:
world: world
x: -483
y: 5
z: 490
flags: []
actions:
- MENU_ITEM=menu:test
reactions: []
/react add menu <MenuId> [Size] [Title]
/react set id:<MenuId> <Parameter>:<Value>
<Parameter>
is: size, title, item1, ..., itemN, activator1, ..., activatorN.
/react remove menu <MenuId>
/react list menu <MenuId> [PageNumber] [Mask]
/react info menu <MenuId>
/react add test 18 This is a test menu!
/react set menu id:test item1:{&6Execute activator &4exec1$DIAMOND} activator1:exec1
/react set menu id:test item3:DIRT activator3:exec2
/react add action MENU_ITEM menu:test
Links:
Download | Support | Twitter | VK | MinecraftMain Blog
© 2017, fromgate
http://reactions.fromgate.me
http://reactions.fromgate.ru
- Commands and Permission
- Activators
- Flags
- Actions
- Timers
- Menus
- Data formats
- Configuration
- Команды и пермишены
- Активаторы
- Флаги
- Действия
- Таймеры
- Меню
- Форматы данных
- Конфигурация