Minecraft wiki entry for Axolotl_farming, associated text: In Java Edition, drowned don't spawn in shallow water, although they can in Bedrock Edition. Either way, light up the border around the pen to prevent hostile mobs from spawning in it.