How to increase attack speed

Started by GenjjaX on

Topic category: User side tutorials

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to increase attack speed

I am making a mod that introduces lightsabers (Or just swords) into the game, however, I am making certain lightsabers have more attack speed than other lightsabers. However, I dont have any indication of controlling that when making my lightsabers, I just need help on where to control attack speed. If you know, please help me. I would appreciate your help

Also, I am using MCreator 1.9.0

Joined May 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Instead of making the…
Thu, 08/15/2019 - 13:56

Instead of making the lightsabers a sword make them a special tool instead, then you can edit the code of the tool

find where it says this.attackDamage = 3f;

and change the number before F. Your attack speed will be 4 minus the number before f. the normal sword attack speed is 1.4

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where do I change code? When…
Fri, 08/23/2019 - 01:50

Where do I change code? When I go to the code button at the top, it doesn't allow me to press any of the buttons it drops down when I go to a specific weapon and I dont know how to use the Console code if that is the code you are referring to.

I did change the items to special as well.

Could you maybe guide me through that process if you can?