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

Sprinting flags become inconsistent after attacking an entity while sprinting if the sprint key is held

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.20.1
    • None
    • Unconfirmed
    • (Unassigned)

      If a player holding the sprint key and moving forward while attacking an entity, sprinting flags (predicate) & custom:minecraft.sprint_one_cm (scoreboard objective) will not recognize that player is sprinting.

      To replicate:

      1) Set up a predicate with the "is_sprinting" flag or a scoreboard with the objective "custom:minecraft.sprint_one_cm"and display its status.

      (I have set it up so that the predicate spams "yes" if the "is_sprinting" flag is true and "no" otherwise. A scoreboard with the objective "custom:minecraft.sprint_one_cm"

      2) Double-tap sprint and punch an entity while moving. Notice that the player stops sprinting and both the scoreboard and predicate reflect that change.

      3) Hold the sprint key and punch an entity while moving. Notice that the player stops sprinting, but neither the scoreboard nor predicate reflect that change. {+}This also affects double-tap sprinting with the toggle sprint setting enabled.

      {+}Video Demonstration

            Unassigned Unassigned
            wavgudbye wavgudbye
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: