How do you limit a mobs movement to only be strafes

Started by Matt The Banana on

Topic category: Help with modding (Java Edition)

Last seen on 00:53, 14. Mar 2024
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you limit a mobs movement to only be strafes

I am trying to make a mod with a crab in it and I want to make it so the crab only moves left or right. Does anyone know how to do this?