Compass Procedures

Started by TeaCrusading on Wed, 05/05/2021 - 20:32

Topic category: Help with modding (Java Edition)

Last seen on 14:02, 20. May 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Compass Procedures
Wed, 05/05/2021 - 20:32

Hi folks,

I'm trying to make a mod based on exploration and a number of different biomes and structures.

However I really need the ability to have compasses directing players to the biomes or structures (either is fine really) to make the whole thing work (and also make it easier to test if my biomes are working correctly.

I'm assuming that it'll be something to do with the biomes or structures running a procedure to give their location data and then calling that procedure from the compass item (and changing it's image or the item entirely). 

I'm also assuming it'll make use of the function that gives the direction (yaw), but I'm kind of at a loss how to go about it. 

Anyone have any ideas/advice/solutions that could help?

Many thanks!