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