Fast firing machine gun and cooldown ticks

Started by ArbiterOfLyell on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Fast firing machine gun and cooldown ticks

RN I got a bit of a problem. I have a machine gun item (Item, NOT Ranged Item) and I want it to fire faster. Right now I have it working on a cooldown system between each round, but I can only make that cooldown a minimum of 1 tick. Any way I can make it faster? Because there are plenty of mods with faster firing guns than this.
gunnedsasdf

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe you could surround the…
Thu, 03/10/2022 - 07:01

Maybe you could surround the shooting code with a repeat 3 times or something

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So i have a way i do it, it…
Sat, 03/19/2022 - 04:26

So i have a way i do it, it may not be performance friendly but here it is:

 

shoot

 

So the image shows [Clicking once shoots 5 shots within 5 ticks]

You have to change it around, add more, remove some, change the ticks and so on to fine tune it to what you want.

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem, hope it helps!
Sun, 03/20/2022 - 12:06

No problem, hope it helps!