1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Particle List

Discussion in 'Skript' started by MCProHost, Sep 17, 2017.

Thread Status:
Not open for further replies.
  1. MCProHost

    MCProHost Active Member

    Joined:
    Sep 17, 2017
    Messages:
    80
    Likes Received:
    0
    Trying to find a particle list for skript's play thingy, any lists that you guys know of?
    --- Double Post Merged, Sep 17, 2017, Original Post Date: Sep 17, 2017 ---
    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')
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    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 (Skript):
    1. (play|show) %visual effects% (on|%directions%) %entities/locations% [(to %players%|in (radius|range) of %number%)]
    2. (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 (Skript):
    1. function spawnLightning(target: location, viewers: players):
    2.  
    3.   set {_packet-container} to new play_server_spawn_entity_weather packet
    4.  
    5.   set int pnum 1 of {_packet-container} to 1
    6.   set double pnum 0 of {_packet-container} to {_target}'s x-pos
    7.   set double pnum 1 of {_packet-container} to {_target}'s y-pos
    8.   set double pnum 2 of {_packet-container} to {_target}'s z-pos
    9.  
    10.   send packet {_packet-container} to {_viewers::*}
    You can use it like this:
    Code (Skript):
    1. spawnLightning(player's location, all players)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...