Shoot fireball

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

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Skitlle

Member
Jul 11, 2023
2
0
1
I want to get help to make so if i right click with a netherite sword named "Test" it would shoot a fireball with cooldown a 30 seconds cooldown to do it again
 
Hey, you can try this:
Code:
on join:
    set {cooldown.%player%} to false

on right click with netherite sword:
    if name of event-item is "Test":
        if {cooldown.%player%} is false:
            shoot a fireball from player at speed 1
            set {cooldown.%player%} to true
            set {cd.time.%player%} to 30 seconds
            set {cd.expires.%player%} to {cd.time.%player%} from now
            wait difference between now and {cd.expires.%player%}
            set {cooldown.%player%} to false
            stop
        else:
            send "&cYou have to wait %difference between now and {cd.expires.%player%}%"
 
How about a splash potion with double effects so it throws a splash potion that gives poison 1 for 10 seconds
 
Last edited: