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

Bat spawn egg spawns bat inside non-full block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13a, Minecraft 17w13b, Minecraft 17w14a, Minecraft 17w15a, Minecraft 17w16a, Minecraft 17w16b, Minecraft 17w17a, Minecraft 17w17b, Minecraft 17w18a, Minecraft 17w18b, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 3, Minecraft 1.12 Pre-Release 4, Minecraft 1.12 Pre-Release 5, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w47b, Minecraft 17w48a, Minecraft 17w49a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w07a, Minecraft 18w07b, Minecraft 18w07c, Minecraft 18w08a, Minecraft 18w08b, Minecraft 18w09a, Minecraft 18w10a, Minecraft 18w10b, Minecraft 18w10c, Minecraft 18w10d, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w15a, Minecraft 1.13-pre1, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, 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 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14.3, 1.14.4, 19w34a, 19w39a, 19w41a, 19w45b, 1.15 Pre-release 1, 1.15, 1.15.1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w13b, 20w18a, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w11a, 21w13a, 21w17a, 1.17 Pre-release 2, 1.17 Pre-release 5, 1.17 Release Candidate 1, 1.17, 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, 22w11a, 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, 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 Pre-release 7, 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, 24w11a, 24w12a, 24w13a, 24w14a, 1.20.5 Pre-Release 1, 1.20.5 Pre-Release 3, 1.20.5 Release Candidate 2, 1.20.5, 1.20.6 Release Candidate 1, 1.20.6, 24w18a, 24w21b, 1.21 Pre-Release 2, 1.21 Pre-Release 4, 1.21, 24w33a, 1.21.1, 24w34a, 24w35a, 24w36a, 24w37a, 24w38a, 24w39a, 1.21.2 Pre-Release 3, 24w44a, 1.21.3
    • None
    • Confirmed
    • Block states, Mob spawning
    • Low
    • Platform

      Bat spawn egg spawns bat inside non-full block.

      Affected blocks:

      • Soul sand
      • Honey block
      • Farmland
      • Drit path
      • Snow layers 8
      • Slab
      • Sea pickle
      • Big dripleaf
      • Chorus plant
      • Chest
      • Trapped chest
      • Ender chest
      • Cactus
      • Chain(axis: x, z)
      • Enchanting table
      • End portal frame
      • Flower pot
      • Skull or head
      • Grindstone
      • Stonecutter
      • Bell
      • Lantern
      • Soul lantern
      • Campfire
      • Soul campfire
      • Candle
      • Small amethyst bud
      • Medium amethyst bud
      • Large amethyst bud
      • Amethyst cluster
      • Pointed dripstone
      • Hopper
      • Lectern
      • Daylight detector
      • Turtle egg
      • Conduit
      • Cake
      • Brewing stand
      • Mud
      • Sculk shrieker
      • Sculk sensor
      • Carpet
      • Moss carpet
      • Flower pot
      • Lightning rod(facing: east, west, north, south)
      • End rod(facing: east, west, north, south)
      • Calibrated sculk sensor

      Use the following command:

      Bat(Reconfirmed in 19w14a)
      /give @p bat_spawn_egg{EntityTag:{id:"minecraft:bat",NoAI:1b}} 1
      

      Code analysis

      Based on 1.11 decompiled using MCP 9.35 rc1

      For bats the method net.minecraft.entity.passive.EntityBat.onUpdate() is causing this which sets their y position to floor(y) + 1 - height if it is hanging.

        1. 2016-11-13_15.18.44.png
          567 kB
          [Mod] Les3awe
        2. 2020-03-15_18.12.39.png
          997 kB
          [Mod] Les3awe
        3. 2020-03-15_18.13.08.png
          779 kB
          [Mod] Les3awe
        4. 2020-03-15_18.13.21.png
          888 kB
          [Mod] Les3awe
        5. 2020-07-24_14.42.18.png
          911 kB
          [Mod] Les3awe
        6. MC-110067.mp4
          4.07 MB
          [Mod] Avoma

            Unassigned Unassigned
            Les3awe [Mod] Les3awe
            Votes:
            22 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              CHK: