TrMenu
Purchase
Github
License
Search…
English
Home
Start
Migrate
MENU
Structure
Icons
ACTIONS
Types
Options
Action
SCRIPT
Expressions
Scripts
FUNCTIONS
Arguments
Item Identifiers
Script Placeholder
Register Commands
Shortcuts
Commands
HOOK
PlaceholderAPI
Cronus
Vault
PlayerPoints
HeadDatabase
Oraxen
SkinsRestorer
API
TrMenuAPI
Events
MenuFactory
Powered By
GitBook
Action
Actions can be used in the actions section of the buttons, in menu events, tasks, input catchers, etc...
Normal Example
1
actions
:
2
-
'tell: Hello, %player_name%'
Copied!
Conditionnal Example
1
actions
:
2
condition
:
'hasMoney.100'
3
actions
:
4
-
'tell: You have enough money.'
5
deny-actions
:
6
-
'tell
:
You don''t have enough money.'
Copied!
Multi-Conditions Example
1
actions
:
2
all
:
3
-
condition
:
'utils.chance(0.1)'
4
priority
:
3
5
actions
:
6
-
'tell: Prize 1'
7
-
'return'
8
-
condition
:
'utils.chance(0.5)'
9
priority
:
2
10
actions
:
11
-
'tell: Prize 2'
12
-
'return'
13
-
condition
:
'true'
14
priority
:
1
15
actions
:
16
-
'tell: Prize 3'
Copied!
Note
When using multiples groups of conditions, you can set priorities to define the order to check the conditions
If a break/return/cancel action is executed, the entire group will stop
There are many aliases for nodes names such as:
1
requirement
:
'hasPoints.100'
2
execute
:
'tell: You have 100 points'
3
deny
:
'tell: You dont have 100 points'
Copied!
Previous
All Players
Next - SCRIPT
Expressions
Last modified
1yr ago
Copy link
Contents
Normal Example
Conditionnal Example
Multi-Conditions Example
Note