mojira.dev
MC-273828

Movement predicate is incorrect for stationary players until either mouse is moved or one second elapses

The bug

After a player stops moving, the new "movement" predicate continues to detect motion for precisely one more second. Moving the mouse during this time corrects this error.

How to reproduce

  1. Use the data pack

[media]
  1. Start walking
    → ✔ The predicate detects you are moving

  2. Stop walking
    → ❌ The predicate still detects you are moving

  3. Move your mouse OR wait one second
    → ✔ The predicate detects you are stationary

Expected behaviour

The "movement" predicate should detect your speed as 0 as soon as you stop moving, without you having to move your mouse or wait.

Attachments

Comments 0

No comments.

j_p_smith

gegy

Confirmed

Platform

Normal

Data Packs

1.21

24w33a

Retrieved