toolbox4minecraft / amidst

Advanced Minecraft Interface and Data/Structure Tracking
GNU General Public License v3.0
2.16k stars 239 forks source link

Use `/locate` command to locate structures #237

Open stefandollase opened 8 years ago

stefandollase commented 8 years ago

Minecraft 1.11 introduces a /locate command. We might be able to use it directly to determine the location of structures. While this does not allow us to remove the manual world icon producers (they are still needed for the old Minecraft versions), it should relieve us from adding new manual world icon producers for new structures. We might also be able to increase the precision for old structures by using the locate command.

ghost commented 8 years ago

Be aware that /locate works for: Endcity, Fortress, Mansion, Mineshaft, Monument, Stronghold, Temple, and Village. Also, what is the search range of the locate command? One data point: from my spawn point of 244,256 /locate Mansion found one at -1175, (?), -503. 2nd data point (different world) location: -171,85,150 /locate Mansion found one at -9784,?,-1812 Note: /locate Temple includes WitchHuts. Also, /locate Mineshaft did something interesting on another world. It gave me a location between two mineshafts displayed by Amidst. I verified this with Minutor and Amidst is correct and the point /locate gave seems to be the averages of the x and z values of the two mines.

stefandollase commented 8 years ago

@BigAlanM Thanks for the heads up. Indeed, we cannot use /locate for everything. We will have to investigate what works and what does not work.