The bug
/locate biome
does not work when run from a position above or below the world bounds, even though the biome could be found with no extra computation compared to an execution position inside the world bounds.
The reproduction steps
Run
/locate biome minecraft:ocean
and teleport to the oceanRun
/execute positioned ~ 320 ~ run locate biome minecraft:ocean
and note how it finds the oceanRun
/execute positioned ~ 321 ~ run locate biome minecraft:ocean
and note how it fails to find the ocean
The consequences
This bug is most noticeable when running a command like the following:
/execute positioned ^ ^ ^100000 run locate biome #minecraft:has_structure/stronghold
This command will fail to locate anything unless the player's y rotation is 0 or very nearly so, since the specified position will otherwise be well above or below the world bounds.
The fix
If the y value were clamped to these bounds before the location algorithm began, the command would work and there would be no negative side effects (theoretically a biome slightly further from the actual execution position could be found, but this would have no negative impact on anything). This should be trivial to implement, although care should be taken to ensure that the distance returned (listed in chat and stored in the command result) is with regard to the unclamped y value.
Misc
This issue could be considered a clone of MC-238604.
Linked issues
Comments 3
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
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Duplicate of MC-254052.