Attack speed reduction based on armor

Started by TSDman on

Topic category: Help with modding (Java Edition)

Last seen on 07:15, 8. Jun 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Attack speed reduction based on armor

I am trying to make a mod that reduces the player's attack speed the more armor they have, but I cannot figure out how to do it. Could anybody help me?

Last seen on 12:10, 26. Jun 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If I'm not wrong, attack…
Wed, 05/15/2024 - 13:37

If I'm not wrong, attack speed is hard-coded into the game, coding is probably required to change it.

Last seen on 07:15, 8. Jun 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It can be done by modifying…
Thu, 05/16/2024 - 14:21

It can be done by modifying the player's attributes, but I don't know how to read or modify the attributes through a procedure.