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

Sprinting isn't canceled upon receiving the blindness effect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.10.2, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w36a, Minecraft 16w38a, Minecraft 16w39a, Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w40a, Minecraft 16w41a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.1, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13b, Minecraft 17w15a, Minecraft 17w16b, Minecraft 17w17b, Minecraft 17w18b, Minecraft 1.12 Pre-Release 2, Minecraft 1.12.2, Minecraft 18w03b, Minecraft 1.13, Minecraft 1.13.1, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, 1.16.1, 20w27a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Release Candidate 1, 1.16.2, 1.16.4, 20w46a, 20w48a, 21w03a, 21w05b, 21w06a, 21w07a, 21w11a, 1.17, 1.17.1, 1.18.2, 22w16b, 22w18a, 1.19, 1.19.2, 22w43a, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.4, 23w51b
    • Confirmed
    • Player
    • Low
    • Gameplay

      The Bug:

      Sprinting isn't canceled upon receiving the blindness effect.

      The player cannot begin sprinting while having the blindness effect, but their sprinting state isn't canceled when initially receiving the blindess effect.

      Steps to Reproduce:

      1. Summon a command block that will give you the blindness effect along with a pressure plate to activate it by using the commands provided below.
        /setblock ~2 ~-1 ~ minecraft:command_block{Command:"effect give @p minecraft:blindness"}
        /setblock ~2 ~ ~ minecraft:oak_pressure_plate
      1. Begin sprinting and activate the command block by running on top of the pressure plate.
      2. Observe the speed at which you are moving once you are given the blindness effect.

      Observed Behavior:

      Sprinting isn't canceled.

      Expected Behavior:

      Sprinting would be canceled.

      Code Analysis:

      Code analysis by Oval can be found in this comment.

        1. 2020-11-26_20.04.03.png
          2020-11-26_20.04.03.png
          860 kB
        2. MC-99848.mp4
          3.82 MB
        3. mojirablindness.png
          mojirablindness.png
          4 kB

            Unassigned Unassigned
            Avoma [Mod] Avoma
            Votes:
            16 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              CHK: