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 Lightning Wand.

Discussion in 'Requests' started by witld, Apr 25, 2020.

Tags:
  1. witld

    witld New Member

    Joined:
    Apr 24, 2020
    Messages:
    7
    Likes Received:
    0
    Category: Magic wand

    Suggested name: Lightning wand

    Spigot/Skript Version: 1.15.2

    What I want:
    I want a script that's whenever I click with stick named "Lightning Wand" it's summons a lightning bolt where I'm looking at.

    Ideas for commands: At command /lightningwand IT would give me stick named "lightning Wand"

    Ideas for permissions: witld.lightning

    When I'd like it by: ASAP
     
  2. Best Answer:
    Post #2 by PanHack, Apr 25, 2020
  3. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    Ok so this skript is ALMOST DONE only thing that is not working is striking of lightning, I can't figure it out how to do it "/
    Code (Text):
    1. command /lightningwand <player>:
    2.     aliases: lw
    3.     usage: &7[&6LW&7] &cWho do you want to give the wand?
    4.     permission: lw.give
    5.     trigger:
    6.         if arg-1 is set:
    7.             give player 1 stick named "&f&lLightning Wand" with lore "&7Summons lightning where you looking at"
    8.         else:
    9.             stop
    10.                
    11. on rightclick: #you can also change it to leftclick
    12.     if player's tool is stick named "&f&lLightning Wand" with lore "&7Summons lightning where you looking at":
    13.         send "test" to player
    14.     else:
    15.         stop
     
  4. witld

    witld New Member

    Joined:
    Apr 24, 2020
    Messages:
    7
    Likes Received:
    0
    I made it, so it should work now.
    Code (Text):
    1. command /lightningwand <player>:
    2.     aliases: lw
    3.     usage: &7[&6LW&7] &cWho do you want to give the wand?
    4.     permission: lw.give
    5.     trigger:
    6.         if arg-1 is set:
    7.             give player 1 stick named "&f&lLightning Wand" with lore "&7Summons lightning where you looking at"
    8.         else:
    9.             stop
    10.              
    11. on rightclick: #you can also change it to leftclick
    12.     if player's tool is stick named "&f&lLightning Wand" with lore "&7Summons lightning where you looking at":
    13.         strike lightning at the targeted block
    14.     else:
    15.         stop
     
  5. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    nice, Have fun with it !
     

Share This Page

Loading...