How do I detect if a player has moved?

Started by pixelcat on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I detect if a player has moved?

As the title suggests, I need help with detecting if a player has moved. I am trying to set a variable to false if a player is not moving.

 

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
After setting up a procedure…
Mon, 11/04/2024 - 15:10

After setting up a procedure by making one then add three variables for x y and z and then set them to the player's x y and z and then when it matters if the variable is required for true or false make it compare the player's x y and z to the current ones set from it earlier. If you need it always checking then this is not super efficient on RAM but should work.