Solved Particle List

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

MCProHost

Active Member
Sep 17, 2017
80
0
0
28
Trying to find a particle list for skript's play thingy, any lists that you guys know of?
[doublepost=1505663555,1505659640][/doublepost]Also, for some reason this dosen't work....

play lightning effect on arg-1
play lightning effect on arg-1
play lightning effect on arg-1
play mobspawner flames 1 meter above player
play mobspawner flames 2 meters above player

[10:51:01 ERROR]: 'on' is not a type (teleport command.sk, line 10: play lightning effect on arg-1')
[10:51:01 ERROR]: 'on' is not a type (teleport command.sk, line 11: play lightning effect on arg-1')
[10:51:01 ERROR]: 'on' is not a type (teleport command.sk, line 12: play lightning effect on arg-1')
 
It's called visual effect, you can find a list of every visual effect available here:
http://bensku.github.io/Skript/classes.html#visualeffect

And the effect for display them is:
code_language.skript:
(play|show) %visual effects% (on|%directions%) %entities/locations% [(to %players%|in (radius|range) of %number%)]
(play|show) %number% %visual effects% (on|%directions%) %locations% [(to %players%|in (radius|range) of %number%)]

Also, for the lightning strike you'd use the following effect:
http://bensku.github.io/Skript/effects.html#EffLightning

If you want it per player you can use this function I made with MundoSK and ProtocolLib:
code_language.skript:
function spawnLightning(target: location, viewers: players):
 
  set {_packet-container} to new play_server_spawn_entity_weather packet
 
  set int pnum 1 of {_packet-container} to 1
  set double pnum 0 of {_packet-container} to {_target}'s x-pos
  set double pnum 1 of {_packet-container} to {_target}'s y-pos
  set double pnum 2 of {_packet-container} to {_target}'s z-pos
 
  send packet {_packet-container} to {_viewers::*}

You can use it like this:
code_language.skript:
spawnLightning(player's location, all players)
 
Status
Not open for further replies.