[SPIGOT-7000] Generation and /locate issues when using custom structure seeds Created: 15/Apr/22  Updated: 16/Apr/22  Resolved: 16/Apr/22

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Jim Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.18.2, Structures

Attachments: PNG File 1-18-1-42342342-village-seed.png     PNG File 1-18-1-default-village-seed.png     PNG File 1-18-2-42342342-village-seed.png     PNG File 1-18-2-default-village-seed.png    
Version: This server is running CraftBukkit version 3477-Spigot-ffceeae-a459f4d (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT)
Plugin: No plugins
Guidelines Read: Yes

 Description   

Setting custom structure seeds (seed-village etc) in spigot.yml do not seem to work correctly since 1.18.2.

 

Structures generated with custom seeds appear to be identical to structures generated with the default seeds and single-player. In addition the /locate command fails to recognise structures, at least when near spawn, and will suggest structures >10 thousand blocks away even if you are right next to the structure you are searching for.

 

Worth noting that /locate works correctly when the seeds are unchanged. See attached images for examples of default and custom seeds in both 1.18.2 and an older 1.18.1 spigot.

 

Steps to reproduce

  1. Create a world with the seed 123456789 (set level-seed in server.properties). Ensure your structure seeds are at the default values
  2. Join the server and /tp -270 90 160. You should be at a village.
  3. Try /locate #village and observe how it correctly finds the village you are in
  4. Take a screenshot of the village for later comparison
  5. Stop the server and delete the world
  6. Change seed-village in spigot.yml to a random value
  7. Start the server, join and /tp -270 90 160 again
  8. Compare the new village to the previous one. They will be identical despite the changed seed.
  9. Try /locate #village again and observe how it takes a significant time to complete and suggests a village many thousands of blocks away

Generated at Fri Nov 15 10:06:29 UTC 2024 using Jira 9.12.15#9120015-sha1:4d9c4bd7a744d02f6fd1c40b1e7bc5cff95adbdc.