getting structure coordinates from locate

Started by Inconnu on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
getting structure coordinates from locate

I am creating a mod in which after a certain action should appear entity and follow the coordinates to the structure in the world and if the player has moved away from this entity for 10 blocks or more, it stops and waits for him and then continues to follow the structure thus leading the player to it

But this is an introduction to understand the main question:

How to get the coordinates of the structure through locate or something else to put it into variables and use it to make the entity move there?

And yes it doesn't work for me to spawn a structure at certain coordinates.