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

Guardians trying to swim in one block of water causes NaN motion in "Motion" Tag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 20w15a, 20w16a, 20w17a, 20w18a, 20w19a, 20w20a, 1.16 Pre-release 2
    • None
    • Unconfirmed
    • (Unassigned)

      The bug

      When guardians try to swim in one block filled with water, it leads to strange behaviors such as not moving after removing the water. This is because they are swimming in one block of water, (Which never happens in other versions like 1.15.2.) causing their Motion tag to get a NaN value.

      This was never possible in 1.15.2 as guardians never try to swim away from a player when stuck in one block of water.

      How to reproduce

      1. Dig a one block hole and put water
      2. Spawn a guardian
      3. Go to survival
        The guardian starts swimming
      4.  /data get entity @e[type=guardian,limit=1] Motion 

        Chat will display "Guardian has the following entity data " which shows the NaN value.

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

              Created:
              Updated:
              Resolved: