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!


    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.

Help with particle projectile speed

Discussion in 'Skript' started by ThePraZ, Feb 20, 2017.

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

    ThePraZ Member

    Feb 20, 2017
    Likes Received:
    Skript Version: 2.1.2
    Skript Author: Njol
    Minecraft Version: 1.8

    Full Code:

    Code (Skript):
    2. on leftclick:
    3.     if name of player's tool contains "&9[&2Avada Kedavra&9]":
    4.         if {avadakedavra.%player's uuid%} is 1:
    5.             if {varita.%player's uuid%} is -1:
    6.                 cancel the event
    7.             else if {varita.%player's uuid%} is 0:
    8.                 message "&3Avada Kedavra!"
    9.                 play raw sound "mob.wither.death" at player with pitch 1 volume 10
    10.                 set {_uavadakedavra} to "AVADAKEDAVRA||%player%||%new uuid%"
    11.                 register new particle projectile using particle happy villager {_uavadakedavra}
    12.                 set start location of {_uavadakedavra} to location of player's head
    13.                 set particle count of {_uavadakedavra} to 2
    14.                 set x offset of {_uavadakedavra} to .0
    15.                 set y offset of {_uavadakedavra} to .0
    16.                 set z offset of {_uavadakedavra} to .0
    17.                 set particle speed of {_uavadakedavra} to 3
    18.                 set tps of {_uavadakedavra} to 0.0001
    19.                 set gravity of {_uavadakedavra} to 0
    20.                 set projectile type of {_uavadakedavra} to stop on both
    21.                 make player shoot particle projectile {_uavadakedavra} with speed 0.6
    22.                 set {_pavadakedavra} to location of player's head
    23.                 while distance between current location of {_uavadakedavra} and {_pavadakedavra} is less than 30:
    24.                     if running state of {_uavadakedavra} is false:
    25.                         stop
    26.                     wait 5 ticks
    27.                 stop particle projectile {_uavadakedavra}
    Errors on Reload: nothing

    Console Errors: nothing (if applicable)

    Other Useful Info:

    Addons using (including versions):
    Umbaska 2.0 Beta 5.0541, SkQuery 3.21.4

    Troubleshooting: I want to know how can I do the projectile very very fast like instantly but without editing the projectile speed, like changing the particle tps

    Have you tried searching the docs? Yes
    Have you tried searching the forums? Yes
    What other methods have you tried to fix it?
    #1 ThePraZ, Feb 20, 2017
    Last edited: Feb 21, 2017
Thread Status:
Not open for further replies.

Share This Page