Bats can spawn in the Overworld at a light level of 3 or less on opaqueblocks below layer 63. Between October 20 and November 3, they only require a light level of 6 or less to spawn. On Superflat worlds, bats spawn below the top non-air layer, ignoring the usual layer-63 limitation.
Bats do not drop any items or experience when killed.
Bats are very small, being less than half a block tall and wide. They will randomly squeak. They often fly around aimlessly, tending to favor the east, and will sometimes fly into lava and catch on fire.
Bats also will often hang upside down on the underside of a solid block when idle, though they cannot hang on transparent or non-solid blocks. If a player approaches it while hanging upside down, including if the player is invisible, they start to fly away from the player. If you break the block a bat is resting on, the bat will go into the flying state and fly away from you.
- See also: Chunk format
Bats have entity data associated with them that contain various properties of the mob. Their entity ID is bat.
- Tags common to all entities
- Tags common to all mobs
BatFlags: 1 when hanging upside-down from a block, 0 when flying.
|12w42a||Bats no longer "trample" crops nor do they activate pressure plates.|
|1.4-pre||Added bat sounds: entity.bat.ambient, entity.bat.hurt, entity.bat.death,entity.bat.takeoff|
|1.11||16w32a||Changed entity ID from Bat to bat.|
|Pocket Edition Alpha|
|0.11.0||build 1||Added bats.|
|Legacy Console Edition|
|TU19||CU7||1.12||Patch 1||Added bats.|
Issues relating to “Bat” are maintained on the issue tracker. Report issues there.