How to increase attack speed

Started by GenjjaX on Mon, 07/22/2019 - 18:14

Topic category: User side tutorials

Last seen on 23:26, 7. Sep 2019
Joined Jul 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How to increase attack speed
Mon, 07/22/2019 - 18:14

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

Last seen on 13:46, 23. Sep 2019
Joined May 2017
User points:

Statistics:

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

Last seen on 23:26, 7. Sep 2019
Joined Jul 2019
User points:

Statistics:

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