Minecraft wiki entry for Ghast, associated text: When within range, a ghast faces the player and shoots a fireball every 3 seconds, opening its eyes and mouth and making a screeching sound. A ghast requires a line of sight to the player before firing, which can be blocked by any solid block including transparent blocks. In Java Edition, they target players within 64 blocks horizontally and 4 blocks vertically[1], and continue attacking as long as they are within a 64 block sphere and have line of sight. In Bedrock Edition, a ghast normally targets a player within a sphere of 28 blocks, increasing to 64 blocks if the player damages it.