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.
Linked issues
is duplicated by 1
relates to 4
Attachments
Comments 19
Now this ticket is only about bats.
Shulker is MC-174876.
This issue relates to MC-108226.