How to detect when the player walks? [SOLVED!]

Started by im memiest on Mon, 10/17/2022 - 23:47

Topic category: Help with modding (Java Edition)

Last seen on 05:01, 31. Jan 2023
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to detect when the player walks? [SOLVED!]
Tue, 10/18/2022 - 21:24 (edited)

I'm making a mod using the player animator api that plays an animation when the player walks , but don't know how to detect the player walking.

Edited by im memiest on Tue, 10/18/2022 - 21:24
Last seen on 13:53, 31. Jan 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Check that the x and z…
Tue, 10/18/2022 - 13:59

Check that the x and z velocity of the player isn't 0. Checking the y velocity will only matter if you care about whether or not the player is falling or climbing.

Last seen on 05:01, 31. Jan 2023
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks!
Tue, 10/18/2022 - 21:23

Thanks!