Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-169865

Speed queries return erratic values on non-local players

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.73
    • Confirmed
    • Windows
    • 1038698

      When using queries like query.ground_speed and query.vertical_speed on non-local players, the output of those queries will continuously flop from its real speed all the way down to zero, which ends up giving the client untrue values and makes it difficult for creators to work with them on resource packs.

      The way this should work is:

      These queries should consistently return their actual value at all times and not erratically drop down to zero when zero should not be its true output.

      An example of this is the video with the pig in it. These queries don't seem to have a problem giving off consistent values from entities. consistent speed values.mp4

      Demonstration:

      A couple of videos have been attached to this issue to demonstrate how these queries suddenly return false values real time.

      In order to visually demonstrate this bug, I've created a resource pack which is attached to this issue bug_demonstration-1.mcpack. It uses particles right next to our characters to represent the values that these queries return (I applied these particles to playes and pigs). It uses a blue bar to represent our character's overall speed (query.ground_speed's output), and one red arrow to represent our character's vertical direction (query.vertical_speed's positive or negative output).

      All of it can be replicated by simply walking and/or jumping around from a non-local player on a multiplayer world (or realm).

            query-is_hungry query-is_hungry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: