how do you make damage multiply by how much speed the player is going??

Started by Eton_boy087 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do you make damage multiply by how much speed the player is going??
Wed, 02/05/2025 - 22:01 (edited)

Im trying to make a lance that deals more damage by how fast your going but everything I do doesn't seem to work

Edited by Eton_boy087 on Wed, 02/05/2025 - 22:01
Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get player velocity and then…
Thu, 03/27/2025 - 17:17

Get player velocity and then do mathematical operations with the absolute values of those values (so they aren't negative) and try to set it up how you want, I'd recommend having the output sent to chat to make testing easier