Skip to content

sequentialpicknumber

Daedalus1400 edited this page May 18, 2017 · 3 revisions

Description:

The sequentialpick generic picks sequentially from a specified list, looping when it gets to the end. This page details usage for numbers.

Added in release version 0.4.0

Arguments:

type

Must be "sequentialpick".

value

Accepts an array of numbers.

Example Usage:

The following example applies nausea to the player for 100 ticks the first time the action executes, then 200 the second time, and then 300 the third time:

{"type": "potioneffect", "effect": "nausea", "duration": {"type": "sequentialpick", "value": [100, 200, 300]}}
Clone this wiki locally