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

You cannot set the "CanBreakDoors" NBT tag of drowned to "1b"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w43a, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14.3, 1.14.4, 19w34a, 19w39a, 19w40a, 19w44a, 19w45a, 19w45b, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w13a, 20w13b, 20w15a, 20w17a, 20w18a, 20w19a, 20w20a, 20w20b, 20w21a, 1.16 Pre-release 3, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w28a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w11a, 1.17 Pre-release 2, 1.17 Pre-release 4, 1.17 Pre-release 5, 1.17 Release Candidate 1, 1.17, 1.17.1 Pre-release 1, 1.17.1 Pre-release 2, 1.17.1 Pre-release 3, 1.17.1 Release Candidate 1, 1.17.1, 21w37a, 21w40a, 21w43a, 1.18 Pre-release 5, 1.18, 1.18.1 Release Candidate 1, 1.18.1, 1.18.2, 22w13a, 22w14a, 22w17a, 1.19, 1.19.1 Release Candidate 2, 1.19.1 Release Candidate 3, 1.19.1, 1.19.2 Release Candidate 1, 1.19.2, 22w42a, 22w45a, 1.19.3 Pre-release 3, 1.19.3 Release Candidate 1, 1.19.3, 23w04a, 23w06a, 1.19.4 Release Candidate 1, 1.19.4 Release Candidate 3, 1.19.4, 23w16a, 23w17a, 23w18a, 1.20 Pre-release 1, 1.20 Pre-release 2, 1.20 Pre-release 4, 1.20 Pre-release 5, 1.20 Pre-release 6, 1.20 Release Candidate 1, 1.20, 1.20.1 Release Candidate 1, 1.20.1, 23w31a, 23w32a, 23w33a, 23w35a, 1.20.2 Pre-release 2, 1.20.2 Release Candidate 1, 1.20.2, 23w40a, 23w41a, 23w42a, 23w43b, 23w44a, 23w45a, 23w46a, 1.20.3 Pre-Release 2, 1.20.3 Release Candidate 1, 1.20.4, 23w51b, 24w03b, 24w04a, 24w05b, 24w06a, 24w07a, 24w09a
    • Confirmed
    • Commands
    • Low
    • Platform

      The bug

      Unable to set CanBreakDoors to 1b for drowned.

      How to reproduce

      1. Build a small house with for example an oak door
      2. Spawn a villager inside it
        /summon villager ~ ~ ~ {NoAI:1b}
        
      1. Set the difficulty to hard
        /difficulty hard
        
      1. Summon a drowned outside of it
        /summon drowned ~ ~ ~ {CanBreakDoors:1b}
        
      1. Make sure the gamerule mobGriefing is set to true
        /gamerule mobGriefing true
        
      1. Use the following command when the drowned is summoned
        /data get entity @e[type=drowned,limit=1,distance=..3] CanBreakDoors
        

        Notice that CanBreakDoors is still 0b

      Code analysis

      Code analysis by Avoma can be found in this comment.

        1. 2018-09-26_08.37.12.png
          2018-09-26_08.37.12.png
          940 kB
        2. 2018-09-26_08.37.27.png
          2018-09-26_08.37.27.png
          538 kB
        3. MC-137053.mp4
          4.90 MB
        4. MC-137053.png
          MC-137053.png
          920 kB

            Unassigned Unassigned
            Les3awe [Mod] Les3awe
            Votes:
            24 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              CHK: