Minecraft wiki entry for Phantom-proofing, associated text: When AFK-ing at a farm, it is likely that the player would be doing so for extended periods of time. Most farms have specific requirements such as world height that makes phantoms spawn regularly. Phantoms are often considered pests since they can deal damage, knock players off of platforms, and trigger redstone components.