How do you limit a mobs movement to only be strafes

Started by Matt The Banana on

Topic category: Help with Minecraft modding (Java Edition)

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?