How to make a compass that points to coordinates?

Started by CrizoDev on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a compass that points to coordinates?

For starters, I'm using version 1.21.1 Neoforge, 2024.4. I already have a system for locating a structure, and saving its coordinates as variables to be used elsewhere (X and Z, specifically), but how do I make it so that my compass item that I have created points to the X and Z variables using itemstates?