Functions
Functions allows you to perform tasks in an easy way.
Functions can be used in enchantment events to perform different tasks in an easier & faster way, functions are preceded with an @
symbol. The plugin predefines a set of useful functions:
Name
Description
Needed Arguments
Outcome
outgoingEnchantment
Find if there is an enchantment running on the given uuid and name.
UUID, STRING
chance
Checks if the first number is less than a random number between the second number.
INTEGER, INTEGER
Boolean
range
List of all numbers between first and second number.
INTEGER, INTEGER
List<Integer>
nearbyEntitiesOfType
Finds all entities within the given radius in the location.
ENTITY_TYPE[], INTEGER, LOCATION
List<Entity>
Last updated