Jump to content
  • 0

/fireball cooldown


AnimeDevil

Question

hi everyone : D

im trying to make a netherite hoe powertool which will shoot a fireball when clicked but right now its spamable and i dont want that and im not good at scripting so could anyone make me a script which puts a cooldown on the powertools ?

ty in advance : D

-AnimeDevil

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
5 minutes ago, AnimeDevil said:

hi everyone : D

im trying to make a netherite hoe powertool which will shoot a fireball when clicked but right now its spamable and i dont want that and im not good at scripting so could anyone make me a script which puts a cooldown on the powertools ?

ty in advance : D

-AnimeDevil

 

Hey. Here, I've made one for you:

options:
    item: netherite hoe
    name: &cFireball Shooter
    cooldown: 1 second

command fireballshooter:
    trigger:
        give player {@item} named "{@name}"
        send "Powertool given"

right click with netherite hoe:
    stop if tool's name != "{@name}"
    stop if difference between {fcd::%player's uuid%} and now <= {@cooldown}
    shoot fireball at speed 1
    set {fcd::%player's uuid%} to now

Adjust the "options" as per your needs. Name, item, etc. If you want to go lower than 1 second, use ticks. Examples: 10 ticks, 1 tick, etc. Note that 20 ticks = 1 second. Calculate accordingly. Use /fireballshooter to obtain a tool.

Next time, you can either post similar questions in the Script Discussion of this forum, or in the Marketplace if you directly want someone to make a script for you.

Anyways, enjoy buddy.

  • Thanks 1

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

  • 0

tysm but how do i add a cooldown on the fireball ? because now i can shoot it alot and idk how to make it only shootable every 2 seconds 

 

nvm it works im just opped haha

Edited by AnimeDevil
  • Like 1
Link to comment
Share on other sites

  • 0
2 hours ago, AnimeDevil said:

tysm but how do i add a cooldown on the fireball ? because now i can shoot it alot and idk how to make it only shootable every 2 seconds 

 

nvm it works im just opped haha

Unbind any other commands from the tool, and only use the one with /fireballshooter since it might be conflicting with EssentialsX's power tool feature.

  • Like 1

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...