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!

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

Solved Rain of Arrows

Discussion in 'Requests' started by Mirthfire, Apr 29, 2018.

  1. Mirthfire

    Mirthfire New Member

    Joined:
    Jan 20, 2018
    Messages:
    5
    Likes Received:
    1
    Category: Weapons, Magic

    Suggested name: Rain of Arrows

    What I want:
    When a player throws a Snowball named Rain of Arrows in air, a bundle of arrows will rain down from 10 blocks above the target enemy.
    Crafting Recipe: 8 Arrows around 1 Feather

    [​IMG]

    Ideas for permissions:
    spell.arrowrain

    When I'd like it by: A reasonable time
     
    #1 Mirthfire, Apr 29, 2018
    Last edited: Apr 30, 2018
  2. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,336
    Likes Received:
    177
    Medals:
    idk if its exactly what you want but i think its pretty cool
    Code (Skript):
    1. on script load:
    2.     create shaped recipe with result snowball named "Rain of Arrows" using arrow, arrow, arrow, arrow, feather, arrow, arrow, arrow, and arrow
    3.  
    4. on projectile shoot:
    5.     if name of shooter's tool is "Rain Of Arrows":
    6.         set metadata "Arrow" of projectile to "Rain of Arrows"
    7.         wait 10 ticks
    8.         if metadata "Arrow" of projectile is "Rain of Arrows":
    9.             delete projectile
    10.             pop ball firework colored red at projectile
    11.             spawn a arrow at projectile's location
    12.             spawn a arrow 0.5 meters right of projectile's location
    13.             spawn a arrow 0.5 meters left of projectile's location
    14.             spawn a arrow 0.5 meters in front of projectile's location
    15.             spawn a arrow 0.5 meters behind projectile's location
    16.  
    17. on projectile hit:
    18.     if metadata "Arrow" of projectile is "Rain of Arrows":
    19.         clear metadata "Arrow" of projectile
    20.         delete projectile
     
  3. Mirthfire

    Mirthfire New Member

    Joined:
    Jan 20, 2018
    Messages:
    5
    Likes Received:
    1
    Thanks!
     

Share This Page

Loading...