If you use /locate
in a custom world with some structures disabled it still gives the location of the nonexistent structure.
Mod edit: Copied repro steps from MC-130441
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
is duplicated by 3
relates to 3
Attachments
Comments 15
This issue relates to MC-108801
@unknown, you don't need to add a link to the version number. Just write it like this: MC-108801
Similarly, if you update to 1.11 from a 1.10.2 world, where the location of a Mansion has already been generated, the locate command will still point you to the location, even though there isn't a Mansion there.
However, I expect I may need to raise a separate ticket for that.