Fire rate in ranged item code?

Started by Cayman20 on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Feb 2022
Points:
476

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Fire rate in ranged item code?
Tue, 02/08/2022 - 09:13 (edited)

Hello! I have a problem.

I made a "Ranged Item" and checked the box that says "Shoot Constantly".

The question is: where in the code does the firing rate value appear? (with procedures I can't modify that) So I want to change it from the code to make the gun fire faster but I don't know how to find this value.

I'm using MCreator 1.12.2 and I know that everything can be changed by code, but I don't know how to find the value I'm looking for to modify it.

Thanks in advance!

Edited by Cayman20 on Tue, 02/08/2022 - 09:13
Active 9 hours ago
Joined Dec 2014
Points:
1084

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 673
It's probably tied to the…
Tue, 02/08/2022 - 12:02

It's probably tied to the tps.

Active 3 years ago
Joined Feb 2022
Points:
476

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Hello, sorry for the delay,…
Tue, 02/15/2022 - 20:43

Hello, sorry for the delay, I was a few days without using the computer.

I looked at the code of the weapon and searched for the word "Tick" but to no avail, I saw some variables indicating the power, the knockback and others, but the rate of fire I still do not find it.