Expected output:
'Could not find that structure nearby.' (or whatever the command says when it fails)
Returned output:
'The nearest <structure> is [coords].'
The bug
The /locate
command returns coordinates of structures even in worlds when structure generation is disabled.
To recreate
Create a new world where
generate-structures=false
.Use
/locate <structure>
and observe the output.Click the coordinates to travel there.
There is no structure because structure generation is disabled.
Command should output there is no structure nearby.
Linked issues
duplicates 1
Comments 1

Putting your repro-steps into MC-108011