Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-273828

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w33a
    • 1.21
    • None
    • Confirmed
    • Data Packs
    • Normal
    • Platform

      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 Motion Detector.zip
      2. Start walking
        The predicate detects you are moving
      3. Stop walking
        The predicate still detects you are moving
      4. 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.

        1. Motion Detector.zip
          2 kB
        2. 1.mp4
          8.83 MB
        3. 2.mp4
          7.84 MB

            gegy1000 [Mojang] Gegy
            Darth Cobby [Mod] j_p_smith
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: