/locate still returns coordinates when structure generation is disabled
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
duplicates1
Created Issue:
/locate still returns coordinates when structure generation is disabled
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.
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.
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.
duplicates
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.
Putting your repro-steps into
MC-108011