How to make a mob move in a constant direction at a certain speed

Started by KetchupMaster on Tue, 07/16/2019 - 21:39

Topic category: Advanced modding

Last seen on 17:19, 23. Jul 2019
Joined Jun 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How to make a mob move in a constant direction at a certain speed
Tue, 07/16/2019 - 21:39

I'm trying to make an autominer mod, and to make the miner bots I'm using mobs. How could I program it so it goes in a certain direction at a certain speed? I tried using the "move" block in the onMobTickUpdate loop (so it runs once a tick) but that makes it go too fast and I don't know how to make it go slower.

Last seen on 09:33, 16. Aug 2019
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Try using procedure blocks…
Thu, 07/18/2019 - 17:58

Try using procedure blocks to teleport it a very small distance in the direction you want.