Increasing reload speed of ranged item

Started by TheSaltySeaFood on

Topic category: Advanced modding

Last seen on 16:43, 8. Dec 2020
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Increasing reload speed of ranged item

The question is simple... is there a way to increase the amount of time it takes before shooting another shot from a ranged item? I have seen many posts about this but they have all seemed unclear. I don't really care if I need to code by the way I just need to know if it's possible

Last seen on 17:20, 17. Mar 2024
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
At some point, I tried…
Mon, 12/14/2020 - 10:28

At some point, I tried putting it on negative cooldown (ex. -20 ticks). I don't remember if it worked though.

Last seen on 19:17, 5. May 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Don´t know if you still need…
Sun, 03/07/2021 - 10:56

Don´t know if you still need an answer, but i am going to comment anyway. When creating a ranged item, you also have the option of "can use ranged item". You need a return value for this. Either "true" or "false". I would suggest creating an NBT tag for the player called "reloadTime" or whatever you want and decrease it every tick, if it´s above 0, using the global trigger "on player tick update". In the "can use ranged item" procedure you check, if the counter is <= 0, increase the timer again and return true. I hope this is, what you ment