Basic Component Method
Comparison
You can compare two values and return a Boolean
value
For example
1 = 1 return True
1 > 2 return False
DoMCer = UltraFunction return False
Ultra = Ultra return True
Number
You can fill in Number
inside to provide parameters to other methods
String
You can fill in String
inside to provide parameters to other methods
Boolean
You can choose True
/False
, which can be used in if
judgment. If it is True
, the judgment will be run. If it is False
, no judgment will be made. It can also be used as a parameter for other methods
Convert to String
A Number
can be converted into String
, and it can also be used as a parameter for other methods
Concatenate String
Two String
can be concatenated, and they can also be used as String
to provide parameters to other methods
For example
Player + Player Name
+ Join the Server!
The +
sign is implemented by concatenating strings
Logical inversion
In if
, can make True
to False
, make False
to True
Generate random UUID
You can generate a random UUID, the result is String
, there is no -
Return String
Or or And
When choosing Or
, only one of the two Boolean
needs to be true for the entire item to be True
, while 'and' require both Boolean
to be true for the entire item to be False
Require Two Boolean
Return Boolean
Extract String
Extract String,From which position to which position
Requires String
,Number
,Number
Return String
Determine if it is empty
Determine whether a data is null
Require Anything
Return Boolean
Four arithmetic operations
Four operations that can add, subtract, multiply, and divide numerical values
Requires Two Number
Return Number
Find the absolute value of the numerical value
Find numerical value's absolute value
Require Number
Return Number
Randomly select a range of numbers
Randomly select a range of numbers
Require Number
Return Number
Modulo Operation
Calculate the remainder of two numbers
Requires Two Number
Return Number
String Existence Check
Check if String A
exists within String B
Require Two String
Return Boolean
Replace String
Replace content of String B
within String A
with String C
Requires Three String
Return String
Type Checking
Check if data type matches the selected type
Requires Anything
, String
Return Boolean
Data Type Method
Select a specified data type, which can be used for type-checking methods
Require Data Type
Return String
Get Data Type
Retrieve the Data Type
of current data
Requires Anything
Return String
Create an Empty List
Create a new, empty list
List: A list can hold multiple rows of data, useful for methods that require multiple rows
Return List instance
Add an Element to List
Add data to the List instance
Requires List instance
, Anything
Remove an Element from List
Remove data from the List instance
Requires List instance
, Anything
Remove the N-th Element from List
Remove data at specified position from the List instance
, numbering starts from 1
Requires List instance
, Number
Check if Element Exists in List
Check if data exists in the List instance
Requires List instance
, Anything
Return Boolean
Retrieve the N-th Element from List
Retrieve data at specified position from the List instance
Requires List instance
, String
Return Anything
Check if List is Empty
Check if the List instance
has no data
Requires List instance
Returns Boolean
Clear List
Reset List instance
to an empty state, removing all data
Requires List instance
Get List Size
Get the number of rows in the List instance
Requires List instance
Returns Number
Create an Empty Map
Create a new, empty Map
Map: Stores key-value pairs, allowing values to be retrieved by their key; common in real-world projects
Return Map instance
Add Data to Map Using a Number as Key
Store data in the Map instance
with a Number
key
Requires Map instance
, Number
, Anything
Add Data to Map Using a String as Key
Store data in the Map instance
with a String
key
Requires Map instance
, String
, Anything
Remove Data from Map Using a Number as Key
Remove data from the Map instance
by specifying a Number
key
Requires Map instance
, Number
Remove Data from Map Using a String as Key
Remove data from the Map instance
by specifying a String
key
Requires Map instance
, String
Retrieve Data from Map Using a Number as Key
Retrieve data from the Map instance
by specifying a Number
key
Requires Map instance
, Number
Return Anything
Retrieve Data from Map Using a String as Key
Retrieve data from the Map instance
by specifying a String
key
Requires Map instance
, String
Return Anything
Check if Number Key Exists in Map
Check if a Number
key exists in the Map instance
Requires Map instance
, Number
Return Boolean
Check if String Key Exists in Map
Check if a String
key exists in the Map instance
Requires Map instance
, String
Return Boolean
Clear Map
Reset Map instance
to an empty state, removing all data
Requires Map instance
Get All Keys in Map
Retrieve all keys in the Map instance
and organize them into a List instance
Requires Map instance
Return List instance
Get All Values in Map
Retrieve all values in the Map instance
and organize them into a List instance
Requires Map instance
Return List instance
Check if Map is Empty
Check if the Map instance
has no data
Requires Map instance
Return Boolean
Get Map Size
Get the number of key-value pairs in the Map instance
Requires Map instance
Return Number
Set Placeholder Result in PAPI
Set a result in the PAPI placeholder; note: this can only be used in PAPI methods, otherwise it will throw an error
Requires String
End the Entire Operation
Terminate the entire listener operation. Subsequent logic will not run.
End the Current Loop
Terminate the current loop iteration. Subsequent logic within the loop will not run, and the loop will stop here.
Skip the Current Loop
Exit the current loop iteration. Subsequent logic within the current loop will not run, and the loop will proceed to the next iteration.