Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

you can look at the LocateCommand, but basically you can use ServerWorld#getStructureLocation it returns a BlockPos

Edited by Luis_ST

  • 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?

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 by Luis_ST

  • 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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.