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.

Fireball wand with custom damage

Discussion in 'Requests' started by Melody, Jan 19, 2021.

Tags:
  1. Melody

    Melody Member

    Joined:
    Jan 19, 2021
    Messages:
    17
    Likes Received:
    1
    Category:
    Uhh idk
    Suggested name:
    Fireball Wand
    Spigot/Skript Version:
    1.16.4
    What I want:
    A wand that shoots fireballs and deals custom damage to mobs when it hits also if possible make it so it does not deal damage to players..

    Ideas for commands:
    /fireballwand to get the wand as a op


    Ideas for permissions:
    I don't think a permission is needed since 1 command would be enough and I want every player to be able to use the wand
    When I'd like it by: I don't know what a reasonable time would be maybe a week?
     
    #1 Melody, Jan 19, 2021
    Last edited: Jan 19, 2021
  2. FireRoz

    FireRoz Active Member

    Joined:
    May 28, 2020
    Messages:
    134
    Likes Received:
    6
    Yikes.
    Code (Text):
    1. command /wand:
    2.   trigger:
    3.     open chest with 1 row named "&e&ka&6&lFire Wand&e&ka" to player
    4.     format slot 4 of player with 1 of glowing blaze rod named "&7&m--&e&ka&6&lFire Wand&e&ks&7&m--" with lore "&7Right click to shoot a fireball" to close then run [execute player command "/firewand"]
    5.    
    6. command /firewand:
    7.   trigger:
    8.     set {cooldown} to difference between {cooldown.%player%} and now
    9.     if {cooldown} is less than 60 seconds:
    10.       send "&cYou must wait %difference between {cooldown} and 60 seconds% &cbefore using this wand again."
    11.       stop
    12.     set {cooldown.%player%} to now
    13.     give player 1 of glowing blaze rod named "&7&m--&e&ka&6&lFire Wand&e&ks&7&m--" with lore "&7Right click to shoot a fireball"
    14.    
    15. on right click:
    16.   player is holding 1 of glowing blaze rod named "&7&m--&e&ka&6&lFire Wand&e&ks&7&m--" with lore "&7Right click to shoot a fireball":
    17.     shoot a fireball from player at speed 1
    18.    
    19. on damage:
    20.   projectile is set
    21.   projectile is a fireball
    22.   attacker is holding 1 of glowing blaze rod named "&7&m--&e&ka&6&lFire Wand&e&ks&7&m--" with lore "&7Right click to shoot a fireball":
    23.     victim is a player
    24.     cancel event
    25.     send "&cYou cannot hit players with the wand." to attacker
    26.     victim is not a player
    27.     damage victim by 3 hearts
    28.    
    the last line is how many hearts you want it to deal when hitting.
    it has a cooldown so people can't spam the command annnnnnndddddddddddddddddddd it requires skquery
     
  3. Melody

    Melody Member

    Joined:
    Jan 19, 2021
    Messages:
    17
    Likes Received:
    1
    Thank you so much!
     
  4. cuddlytrap

    cuddlytrap Member

    Joined:
    Dec 18, 2020
    Messages:
    26
    Likes Received:
    0
    mark the thing as solved xD
     

Share This Page

Loading...