mojira.dev
MC-108011

/locate and custom worlds

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

  1. Create a new world where generate-structures=false.

  2. Use /locate <structure> and observe the output.

  3. Click the coordinates to travel there.

  4. There is no structure because structure generation is disabled.

  5. Command should output there is no structure nearby.

Related issues

Attachments

Comments

migrated
[media][media][media]
Dylan

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.

Robin Gravel

Still happens to 16w40a

CDES4

This issue relates to MC-108801

SunCat

@unknown, you don't need to add a link to the version number. Just write it like this: MC-108801

CDES4

#ThanksAgain

CDES4

Affects Version(s) 16w42a

CDES4

Why is the CHK set to 23/Oct/16 10:38 AM when it should be set to when it was confirmed? And who did actually confirm it?

SunCat

CHK is an internal field and it is set to whatever date it needs to be set.

CDES5

In 16w44a,
Causes error for Strongholds in Screenshot 1
Nonexistent structure being supposedly located in Screenshot 2
Digs to Fire/water cave (which also occurs in MC-108801) in Screenshot 3

Robin Gravel

Still happens in 1.11pre1

Robin Gravel

Minecraft 1.11 too.

CDES5

Affects Version 16w50a

CDES5

Affects Version 1.11.2

Robin Gravel

Still happens in version pre-release1

Robin Gravel

I get 'An unexpected error occurred trying to execute that command' when using /locate instead giving a location in 18w47b.

Maybe it's fixed.

James Bauer

(Unassigned)

Confirmed

(Unassigned)

/locate, customized-world, structure, world-generation

Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w40a, Minecraft 16w42a, Minecraft 16w44a, ..., Minecraft 1.13-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w43c

Retrieved