Skip to content

sequentialpickstring

Daedalus1400 edited this page May 18, 2017 · 1 revision

Description:

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

Arguments:

type

Must be "sequentialpick".

value

Accepts an array of string.

Example Usage:

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}
Clone this wiki locally