Repeating Enchantments
Setting enchantment type to 'REPEATING', you unlock access to another flag 'time: (seconds)', which allows a set period in-between each enchantment activation:
1
feed:
2
display: '%group-color%Feed'
3
description: 'Chance to feed 1 bar of food every few seconds.'
4
applies-to: 'Helmets'
5
type: 'REPEATING'
6
time: 5
7
group: 'SIMPLE'
8
applies:
9
- ALL_HELMET
10
levels:
11
1:
12
chance: 30
13
cooldown: 10
14
effects:
15
- 'MESSAGE:&aYou have been fed!'
16
- 'ADD_FOOD:1'
Copied!
This also allows setting chances for activation as shown in this example:
1
chance: 30
Copied!
each time it runs (in this case, every 5 seconds), it has 30/100 chance (30%) to activate and run.
The REPEATING type allows setting **cooldown ** as well, so in case the timer activated it and chance allowed it to run, it will not be ran for the next (in this case 10 seconds).
Last modified 5mo ago
Copy link