-
Notifications
You must be signed in to change notification settings - Fork 1
sequentialpickstring
Daedalus1400 edited this page May 18, 2017
·
1 revision
The sequentialpick generic picks sequentially from a specified list, looping when it gets to the end. This page details usage for strings.
Added in release version 0.4.0
Must be "sequentialpick".
Accepts an array of string.
The following example applies hunger the first time the action is executed, then nausea nausea the second time, then wither the third time to the player:
{"type": "potioneffect", "effect": {"type": "sequentialpick", "value": ["hunger", "nausea", "wither"]}, "duration": 100}