How to make a mob goes to it's spawpoint

Started by cuckoo on Sat, 07/03/2021 - 05:33

Topic category: Help with modding (Java Edition)

Last seen on 09:19, 10. Sep 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a mob goes to it's spawpoint
Sat, 07/03/2021 - 05:33

I want a ob that'll go to it's spawn point after the sun has go down.

In the morning,The mob will go to the closes beach and swim around until it find a fish,then it'll attack and at dusk it'll go back to it's spawn point.

I know it'll require coding if someone could tell me something,It'll be very good