AnimeDevil Posted May 8, 2021 Share Posted May 8, 2021 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 More sharing options...
0 CoolProgrammer Posted May 8, 2021 Share Posted May 8, 2021 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. 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. 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 More sharing options...
0 AnimeDevil Posted May 8, 2021 Author Share Posted May 8, 2021 (edited) 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 May 8, 2021 by AnimeDevil 1 Link to comment Share on other sites More sharing options...
0 CoolProgrammer Posted May 8, 2021 Share Posted May 8, 2021 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. 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. 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 More sharing options...
0 AnimeDevil Posted May 9, 2021 Author Share Posted May 9, 2021 can you make me one which does it with lightning ? ty in advance : D Link to comment Share on other sites More sharing options...
Question
AnimeDevil
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now