Minecraft wiki entry for Axolotl_farming, associated text: The ceiling of your farm must be below layer 63 (sea level), as deep as you want, although prior to Bedrock Edition 1.18 the floor of the farm should not be below layer 0. The distance between the floor and ceiling should be at least 5 blocks (6 blocks is best, to give you breathing room).