Posted November 24, 20213 yr Hi, so I am currently making a custom compass that points to a structure. I was able to get the compass to point to a hard coded location, but I want it to point to a structure, like a village. I have tried looking through the web to find an answer, but no results have shown up. So, how do I get a coordinate of a structure?
November 24, 20213 yr you can look at the LocateCommand, but basically you can use ServerWorld#getStructureLocation it returns a BlockPos Edited November 24, 20213 yr by Luis_ST
November 25, 20213 yr Author 4 hours ago, Luis_ST said: ServerWorld#getStructureLocation I have tried using that, but it says that the method is undefined. 4 hours ago, Luis_ST said: LocateCommand Where can I find the locate command?
November 25, 20213 yr In the dependencies of your project or you screach for it in your IDE in Eclipse the shortcut is CTRL + SHIFT + H Note: the class name LocatCommand is for 1.17 Edited November 25, 20213 yr by Luis_ST
November 26, 20213 yr Author 18 hours ago, Luis_ST said: In the dependencies of your project or you screach for it in your IDE in Eclipse the shortcut is CTRL + SHIFT + H Note: the class name LocatCommand is for 1.17 After doing some digging, I found out that ServerWorld.func_24117_a_(Structure<?>, BlockPos, int, Boolean) return the BlockPos of the structure. Thanks for your help.
November 26, 20213 yr I would recommend you to update to the latest 1.16.5, there is no reason to use a outdated minor version
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.