Functions are tags which can be used in effect lines to make them more dynamic. They are written in
<>brackets and are used instead of a value for the effect.
Here is a list of available functions:
Sets a chance for this effect line to activate. The number inside the brackets is the percentage chance of the effect activating.
- 'INCREASE_DAMAGE:5 <chance>50</chance>'
This will cause the entity to take 5% more damage 50% of the time.
Performs a math operation using variables or numbers. The operation is written inside the brackets.
- 'EXP:<math>%exp% * 2</math>'
This will drop double the amount of experience from event.
Picks a random number between two values. The values are written inside the brackets and separated by a dash
- 'INCREASE_DAMAGE:<random number>1-5</random number>'
This will increase the damage to a random amount between 1 and 5.
Picks a random word from a list. The words are written inside the brackets and separated by a comma
- 'MESSAGE:<random word>Hello,Goodbye,Hi</random word>'
This will send a message with a random word from the list.
Rounds a number to the nearest whole number. The number is written inside the brackets.
- 'EXP:<round><math>%exp% * 2.5</math></round>'
This will give the entity an amount of experience that is 2.5 times their current amount, rounded to the nearest whole number.