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

Started by im memiest on

Topic category: Help with modding (Java Edition)

Last seen on 01:14, 27. Feb 2024
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 05:43, 29. Mar 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 01:14, 27. Feb 2024
Joined Oct 2022
Points:

User statistics:

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

Thanks!

Last seen on 10:09, 28. Mar 2024
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This doesn't work. Velocity…
Fri, 09/29/2023 - 05:46

This doesn't work. Velocity will only change if your jumping, falling or flying. Not walking or running

Last seen on 20:29, 28. Mar 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a Client Side Event…
Fri, 09/29/2023 - 06:02

There is a Client Side Event(Global Trigger in MCreator) that checks if you use the Movement Input.