Fire rate in ranged item code?

Started by Cayman20 on

Topic category: Help with modding (Java Edition)

Last seen on 13:46, 1. Mar 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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
Last seen on 13:18, 11. Oct 2024
Joined Dec 2014
Points:

User statistics:

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

It's probably tied to the tps.

Last seen on 13:46, 1. Mar 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.