Minecraft wiki entry for Tropical_Fish, associated text: In Java Edition, tropical fish spawn in groups of 8 at 24 to 64 blocks away from the player, with random patterns (see below) in lukewarm or warm oceans and lush caves, as well as their deep variants. In ocean biomes tropical fish will only spawn at Y levels between sea level, and 13 blocks below sea level.