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

Started by im memiest on

Topic category: Help with Minecraft modding (Java Edition)

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
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.

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

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.