Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Get coordinates of a structure in 1.16.


bossmania
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.