Closed Rubenicos closed 5 months ago
Option to use $any as player name on /trmenu action to execute the action using any online player.
$any
/trmenu action
data keyword for JavaScript scripts.
data
Load button actions without providing click type. I noticed that almost every button on my menus has the typical:
actions: all: - 'type: content'
So I simplified that by loading actions that doesn't provide a click type, making all as default click type:
all
actions: - 'type: content'
More complex icon inheritance compatible with DISPLAY_NAME, DISPLAY_LORE, DISPLAY_AMOUNT, DISPLAY_SHINY, DISPLAY_NBT, DISPLAY_NBT and ACTIONS.
DISPLAY_NAME
DISPLAY_LORE
DISPLAY_AMOUNT
DISPLAY_SHINY
DISPLAY_NBT
ACTIONS
'A': display: name: '&aColored name' lore: - ' ' - '&7Lore line' actions: all: - 'close' - 'tell: &eHello' icons: - condition: 'perm *any.perm' # Inherit the typical name and lore inherit: true # Or make a more complex inheritance inherit: [ DISPLAY_NAME, DISPLAY_LORE, ACTIONS ] # This actions will be executed after main button actions actions: all: - 'tell: &eWorld'
And also append property (currently only compatible with actions).
append
'A': display: name: '&aColored name' lore: - ' ' - '&7Lore line' actions: all: - 'close' - 'tell: &eHello' icons: - condition: 'perm *any.perm' inherit: true append: ACTIONS # This actions will be executed before main button actions actions: all: - 'tell: &eGood morning'
Allow to parse default menu layout.
Options: Default-Layout: 'Some text to parse as Integer'
DROPPER
DISPENSER
btw, I made a custom syntax highlight for Sublime Text that detect menu scripts and add color to Kether / JavaScript conditions
User
YAML (TrMenu).sublime-syntax
Additions
Option to use
$any
as player name on/trmenu action
to execute the action using any online player.data
keyword for JavaScript scripts.Load button actions without providing click type. I noticed that almost every button on my menus has the typical:
So I simplified that by loading actions that doesn't provide a click type, making
all
as default click type:More complex icon inheritance compatible with
DISPLAY_NAME
,DISPLAY_LORE
,DISPLAY_AMOUNT
,DISPLAY_SHINY
,DISPLAY_NBT
,DISPLAY_NBT
andACTIONS
.And also
append
property (currently only compatible with actions).Allow to parse default menu layout.
Bug fixes
DROPPER
andDISPENSER
menu type load properly.