I need a mob when it spawns, record its spawn position

Started by Lucca Bitencourt on

Topic category: Help with modding (Java Edition)

Last seen on 03:10, 31. Jan 2023
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need a mob when it spawns, record its spawn position
im creating a mod in which I have a mob that I want when the time is right,
it will return to the initial spawn location, but I don't know how to do this,
I thought about saving the location in the form of tags,
but maybe there's a way easier to do this.