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.

Magic Wand Skript

Discussion in 'Requests' started by sandor_1234, Feb 2, 2017.

  1. sandor_1234

    sandor_1234 Active Member

    Joined:
    Jan 26, 2017
    Messages:
    165
    Likes Received:
    5
    Category: Fun

    Suggested name: SkyWand

    What I want:
    I would like a skript that allows you to have an blaze rod that acts like an magic wand.
    It should be named "&0Sky&5Wand" with the lore off its current spell.
    When you left click with the wand in your hand it will cast its current spell.
    When you right click with the wand in your wand it will select the next spell.
    Example spells:

    Comet:
    This launches a fireball with some awesome partical effects arround it.
    When this hits the ground it will create fire in a radius of 2/3.

    Explosive:
    This launches a fireball with some awesome partical effects arround it.
    When this hits the ground it will create an explosion.

    Launch:
    This will launch all the mobs/players/animalls in a radius of 3 around the block the player is pointing his SkyWand at in the air like 20 blocks high.

    If any one has some more cool ideas for this project/request please leave them below.


    Ideas for commands:
    /Skywand get (Gives you a SkyWand)
    Alias:
    /sw
    Ideas for permissions:
    SkyWand.use (Allows you to use the skywand)
    SkyWand.Get (Allows you to use /skywand get)

    When I'd like it by: The basics should be done in a week with like 1 or 2 spells.

    Basics:
    Code (Skript):
    1. on left click holding blaze rod named "&0Sky&5Wand":
    2.     If player has permission "SkyWand.Use":
    3.         if player is holding blaze rod with lore "Comet":
    4.             make player shoot a fireball at speed 1
    5.             etc...
    6.         if player is holding blaze rod with lore "Explosive":
    7.             make player shoot a fireball at speed 1
    8.             etc...
    9.         if player is holding blaze rod with lore "Launch":
    10.             etc...
    11. on right click holding blaze rod named "&0Sky&5Wand":
    12.     If player has permission "SkyWand.Use":
    13.         if player is holding blaze rod with lore "Comet":
    14.             set line 1 of lore of player's tool to "Explosive"
    15.         if player is holding blaze rod with lore "Explosive":
    16.             set line 1 of lore of player's tool to "Launch"
    17.         if player is holding blaze rod with lore "Launch":
    18.             set line 1 of lore of player's tool to "Comet"
    19. command /skywand:
    20.     permission: skywand.get
    21.     trigger:
    22.         give player a blaze rod named "&0Sky&5Wand" with lore "Comet"
    So if anybody could add some cool spells to this project it would be amazing. <3

    --- Double Post Merged, Feb 5, 2017, Original Post Date: Feb 2, 2017 ---
    Bump
    --- Double Post Merged, Feb 7, 2017 ---
    Bump
    --- Double Post Merged, Feb 9, 2017 ---
    Bump
    --- Double Post Merged, Feb 11, 2017 ---
    Bump
    --- Double Post Merged, Feb 12, 2017 ---
    Bump
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Code (Skript):
    1.  
    2.  
    3. command /skywand [<text="">]:
    4.     permission: skywand.get
    5.     trigger:
    6.         give player a blaze rod named "&0Sky&5Wand" with lore "&eCurrent Spell: &7Comet"
    7.         set {skywand::currentspell::%player%} to "Comet"
    8.  
    9. on drop:
    10.     name of player's tool is "&0Sky&5Wand":
    11.         player has permission "skywand.use"
    12.         player isn't sneaking:
    13.             cancel event
    14.             {skywand::currentspell::%player%} is "Comet":
    15.                 set {skywand::currentspell::%player%} to "Explosive"
    16.             else if {skywand::currentspell::%player%} is "Explosive":
    17.                 set {skywand::currentspell::%player%} to "Launch"
    18.             else if {skywand::currentspell::%player%} is "Launch":
    19.                 set {skywand::currentspell::%player%} to "Blink"
    20.             else if {skywand::currentspell::%player%} is "Blink":
    21.                 set {skywand::currentspell::%player%} to "Comet"
    22.             set player's tool to a blaze rod named "&0Sky&5Wand" with lore "&eCurrent Spell: &7%{skywand::currentspell::%player%}%"
    23.             message "&eSpell changed to &6%{skywand::currentspell::%player%}%"
    24.  
    25. every second:
    26.     add "Comet" and "Explosive" and "Launch" and "Blink" to {_spells::*}
    27.     loop all players:
    28.         loop {_spells::*}:
    29.             {skywand::cooldowns::%loop-player%::%loop-value-2%} is more than 0:
    30.                 remove 1 from {skywand::cooldowns::%loop-player%::%loop-value-2%}
    31.  
    32. on explosion:
    33.     if metadata "CometSpell" of entity is true:
    34.         cancel event
    35.         loop blocks in radius 3.5 of entity:
    36.             block above loop-block is air:
    37.                 loop-block isn't air or fire:
    38.                     set loop-block to fire
    39.  
    40. on rightclick:
    41.     name of player's tool is "&0Sky&5Wand":
    42.         player has permission "skywand.use"
    43.         {skywand::currentspell::%player%} is set:
    44.             {skywand::cooldowns::%player%::%{skywand::currentspell::%player%}%} is less than or equal to 0:
    45.                 {skywand::currentspell::%player%} is "Comet":
    46.                     set {skywand::cooldowns::%player%::Comet} to 30
    47.                     make player shoot fireball at speed 1
    48.                     set metadata "CometSpell" of shot fireball to true
    49.                     set {_fb} to shot fireball
    50.                     while {_fb} exists:
    51.                         {_fb} is on ground:
    52.                             stop
    53.                         spawn 25 of particle flame:0 offset by 0.2, 0.2, 0.2 at {_fb}
    54.                         wait 1 tick
    55.  
    56.                 {skywand::currentspell::%player%} is "Launch":
    57.                     set {skywand::cooldowns::%player%::Launch} to 30
    58.                     set {_l} to location of targeted block
    59.                     distance between player and {_l} is less than 30:
    60.                         loop all entities:
    61.                             distance between loop-entity and {_l} is less than 4:
    62.                                 push loop-entity upwards at speed 4
    63.                                 spawn 25 of particle cloud:0.2 offset by 0.5, 0.1, 0.5 at loop-entity
    64.  
    65.                 {skywand::currentspell::%player%} is "Explosive":
    66.                     set {skywand::cooldowns::%player%::Explosive} to 30
    67.                     make player shoot fireball at speed 1
    68.                     set {_fb} to shot fireball
    69.                     while {_fb} exists:
    70.                         {_fb} is on ground:
    71.                             stop
    72.                         spawn 25 of particle flame:0 offset by 0.2, 0.2, 0.2 at {_fb}
    73.                         wait 1 tick
    74.  
    75.                 {skywand::currentspell::%player%} is "Blink":
    76.                     set {skywand::cooldowns::%player%::Blink} to 30
    77.                     set {_l} to location of targeted block
    78.                     distance between player and {_l} is less than 30:
    79.                         block above {_l} is air:
    80.                             block above block above {_l} is air:
    81.                                 spawn 25 of particle portal:0 offset by 0.3, 1, 0.3 at player
    82.                                 teleport player to block above {_l}
    83.                                 spawn 25 of particle portal:0 offset by 0.3, 1, 0.3 at block above {_l}
    84.  
    Eh. I was bored. All from memory, hasn't been tested. Enjoy.
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Love yuh <3
     

Share This Page

Loading...