Solved Rain of Arrows

  • 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!

Mirthfire

New Member
Jan 20, 2018
5
1
0
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



Ideas for permissions:
spell.arrowrain

When I'd like it by: A reasonable time
 
Last edited:
idk if its exactly what you want but i think its pretty cool
code_language.skript:
on script load:
    create shaped recipe with result snowball named "Rain of Arrows" using arrow, arrow, arrow, arrow, feather, arrow, arrow, arrow, and arrow

on projectile shoot:
    if name of shooter's tool is "Rain Of Arrows":
        set metadata "Arrow" of projectile to "Rain of Arrows"
        wait 10 ticks
        if metadata "Arrow" of projectile is "Rain of Arrows":
            delete projectile
            pop ball firework colored red at projectile
            spawn a arrow at projectile's location
            spawn a arrow 0.5 meters right of projectile's location
            spawn a arrow 0.5 meters left of projectile's location
            spawn a arrow 0.5 meters in front of projectile's location
            spawn a arrow 0.5 meters behind projectile's location

on projectile hit:
    if metadata "Arrow" of projectile is "Rain of Arrows":
        clear metadata "Arrow" of projectile
        delete projectile