-
Notifications
You must be signed in to change notification settings - Fork 1
lightning
Daedalus1400 edited this page May 17, 2017
·
8 revisions
The lightning action creates a lightning bolt.
Added in release version 0.1.0
Must be "lightning".
Accepts a string. Valid values are "player", and "nearplayer". Default value is "player".
"player" causes the lightning bolt to strike exactly on the player.
"nearplayer" causes the lightning bolt to strike within "radius" blocks in X and Z of the player at random. Added in release version 0.2.0
Accepts a number. Default value is 1.
Added in release version 0.2.0
Accepts a number. Default value is 1.
The following example has a 1 in 20 chance to strikes the player with lighting:
{"type": "lightning", "target": "player", "chance": 20}