The /locate biome command fails when executed from below y=-63 or from above y=320 in regular worlds.
Steps to recreate:
Create and join a new world (world type: default) with cheats enabled.
Find the biome you are currently in.
Press F3 to open the debug screen. The biome you are currently in is displayed on the left side of the screen.
Verify the command works at normal elevations.
Run the command "/execute positioned ~ X ~ run locate biome Y", where X is any value between -63 and 320, inclusive, and Y is the biome you are currently in.
Verify the command does not work at extreme elevations.
Run the command "/execute positioned ~ X ~ run locate biome Y", where X is any value below -63 or above 320, and Y is the biome you are currently in.
NOTE 1: using the /execute command is convenient for verifying command behavior, though the command can also be verified if you fly or build up or down to the appropriate elevations and run /locate directly. The command fails in both survival and creative mode. See attached image for command response.
NOTE 2: this command will not fail if you are in a superflat world and you attempt to locate the biome present throughout the entire superflat world, regardless of the elevation from which the command is run. Only superflat worlds and default worlds have been tested in the discovery of this bug report. See attached image for superflat command response.
Thank you for your report!
We're tracking this issue in MC-254052, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki