How i get the player attack speed

Started by a guy called l… on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How i get the player attack speed

Thats the question, I dont now how to get the player attack speed, I try whit NTB variables and the /attribute command. Also how do I make a text or number with the result of a command?

 

My idea is use the /attribute @p minecraft:generic.attack_speed get command to get the attack speed, but i dont now how to get the number of the command, someone can help?