Fireball Spell

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

Dractical

Member
Dec 30, 2019
14
0
1
Category: Custom Tools

Suggested name: Fireball Spell

Spigot/Skript Version: 2.4

What I want:
A command that gives you a blaze rod with the ability to spawn a customizable amount of fireballs to where you are looking at a customizable delay, sort of like the item, "Ember Rod", from Hypixel Skyblock.

Ideas for commands: /fbwand, /fireballwand

Ideas for permissions: fb.wand, fireball.wand, fireball.spell

When I'd like it by: 1 week

[doublepost=1578705949,1577749679][/doublepost]well
this is an oof
 
Last edited:
I'll try to make it if you still need it, do you?
[doublepost=1578868119,1578867334][/doublepost]try this, tell me if you want anything changed or if it isnt working. no errors in parser
Code:
command fireballwand:
    permission: fb.wand
    aliases: /fbwand
    trigger:
        give player 1 blaze rod of sharpness 5 named "&c&lFireball Wand" with lore "|| &cA wand with the power to shoot fireballs! || &8Ability: || &7Flamethrower || &7Right click to shoot fireballs from the wand! ||"
        set {cooldown.%player's uuid%} to false
on join:
    set {cooldown.%player's uuid%} to false
on right click:
    if player's tool is blaze rod of sharpness 5 named "&c&lFIreball Wand":
        if {cooldown.%player's uuid%} is false:
            set {loc.%player%} to block above block above player's location
            loop 3 times: # change how many fireballs are shot here!
                spawn fireball at {loc.%player%}
                push last spawned entity in direction of player with force 0.5
            set {cooldown.%player's uuid%} to true
            wait 5 seconds # change the cooldown here
            set {cooldown.%player's uuid%} to false
        else:
            send "&cWait for the cooldown!"
 
I'll try to make it if you still need it, do you?
[doublepost=1578868119,1578867334][/doublepost]try this, tell me if you want anything changed or if it isnt working. no errors in parser
Code:
command fireballwand:
    permission: fb.wand
    aliases: /fbwand
    trigger:
        give player 1 blaze rod of sharpness 5 named "&c&lFireball Wand" with lore "|| &cA wand with the power to shoot fireballs! || &8Ability: || &7Flamethrower || &7Right click to shoot fireballs from the wand! ||"
        set {cooldown.%player's uuid%} to false
on join:
    set {cooldown.%player's uuid%} to false
on right click:
    if player's tool is blaze rod of sharpness 5 named "&c&lFIreball Wand":
        if {cooldown.%player's uuid%} is false:
            set {loc.%player%} to block above block above player's location
            loop 3 times: # change how many fireballs are shot here!
                spawn fireball at {loc.%player%}
                push last spawned entity in direction of player with force 0.5
            set {cooldown.%player's uuid%} to true
            wait 5 seconds # change the cooldown here
            set {cooldown.%player's uuid%} to false
        else:
            send "&cWait for the cooldown!"
I do, I will Try it now.
[doublepost=1579011472][/doublepost]Alright, it doesn't work, there are no errors in the console, it doesn't shoot fireballs, do you know a solution? I don't, I'm not good with skript.
 
I'll help you later, sorry. I'm in school at the moment.
[doublepost=1579013896,1579012870][/doublepost]
I do, I will Try it now.
[doublepost=1579011472][/doublepost]Alright, it doesn't work, there are no errors in the console, it doesn't shoot fireballs, do you know a solution? I don't, I'm not good with skript.
Oh, there was a typo in the skript. Here you go
Code:
command fireballwand:
    permission: fb.wand
    aliases: /fbwand
    trigger:
        give player 1 blaze rod of sharpness 5 named "&c&lFireball Wand" with lore "|| &cA wand with the power to shoot fireballs! || &8Ability: || &7Flamethrower || &7Right click to shoot fireballs from the wand! ||"
        set {cooldown.%player's uuid%} to false
on join:
    set {cooldown.%player's uuid%} to false
on right click:
    if player's tool is blaze rod of sharpness 5 named "&c&lFireball Wand" with lore "|| &cA wand with the power to shoot fireballs! || &8Ability: || &7Flamethrower || &7Right click to shoot fireballs from the wand! ||":
        if {cooldown.%player's uuid%} is false:
            set {loc.%player%} to block above block above player's location
            loop 3 times: # change how many fireballs are shot here!
                spawn fireball at {loc.%player%}
                push last spawned entity in direction of player with force 0.5
            set {cooldown.%player's uuid%} to true
            wait 5 seconds # change the cooldown here
            set {cooldown.%player's uuid%} to false
        else:
            send "&cWait for the cooldown!"