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 valueopen in new window

Require Number

Return Number

Randomly select a range of numbers

Randomly select a range of numbers

Require Number

Return Number

Modulo Operation

Image

Calculate the remainder of two numbers

Requires Two Number

Return Number

String Existence Check

Image

Check if String A exists within String B

Require Two String

Return Boolean

Replace String

Image

Replace content of String B within String A with String C

Requires Three String

Return String

Type Checking

Image

Check if data type matches the selected type

Requires Anything, String

Return Boolean

Data Type Method

Image

Select a specified data type, which can be used for type-checking methods

Require Data Type

Return String

Get Data Type

Image

Retrieve the Data Type of current data

Requires Anything

Return String

Create an Empty List

Image

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

Image

Add data to the List instance

Requires List instance, Anything

Remove an Element from List

Image

Remove data from the List instance

Requires List instance, Anything

Remove the N-th Element from List

Image

Remove data at specified position from the List instance, numbering starts from 1

Requires List instance, Number

Check if Element Exists in List

Image

Check if data exists in the List instance

Requires List instance, Anything

Return Boolean

Retrieve the N-th Element from List

Image

Retrieve data at specified position from the List instance

Requires List instance, String

Return Anything

Check if List is Empty

Image

Check if the List instance has no data

Requires List instance

Returns Boolean

Clear List

Image

Reset List instance to an empty state, removing all data

Requires List instance

Get List Size

Image

Get the number of rows in the List instance

Requires List instance

Returns Number

Create an Empty Map

Image

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

Image

Store data in the Map instance with a Number key

Requires Map instance, Number, Anything

Add Data to Map Using a String as Key

Image

Store data in the Map instance with a String key

Requires Map instance, String, Anything

Remove Data from Map Using a Number as Key

Image

Remove data from the Map instance by specifying a Number key

Requires Map instance, Number

Remove Data from Map Using a String as Key

Image

Remove data from the Map instance by specifying a String key

Requires Map instance, String

Retrieve Data from Map Using a Number as Key

Image

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

Image

Retrieve data from the Map instance by specifying a String key

Requires Map instance, String

Return Anything

Check if Number Key Exists in Map

Image

Check if a Number key exists in the Map instance

Requires Map instance, Number

Return Boolean

Check if String Key Exists in Map

Image

Check if a String key exists in the Map instance

Requires Map instance, String

Return Boolean

Clear Map

Image

Reset Map instance to an empty state, removing all data

Requires Map instance

Get All Keys in Map

Image

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

Image

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

Image

Check if the Map instance has no data

Requires Map instance

Return Boolean

Get Map Size

Image

Get the number of key-value pairs in the Map instance

Requires Map instance

Return Number

Set Placeholder Result in PAPI

Image

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.

Last Updated:
Contributors: SensenPlayer, TongHui