How do i make a mob that pathfinds to another mob?

Started by Dark daia the the on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make a mob that pathfinds to another mob?

basically im making some stupid gunship or fighter jet entity that flies. i want it to have multiple ammo and deploys bombs on you. 

Im using the on Entity tick update procedure but if not the correct procedure trigger thing then tell me

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not sure if this would…
Sun, 06/21/2026 - 15:40

I'm not sure if this would work but its an idea:

 

For the pathfinding, in the AI and goals section you could set it so that the entity has the attack entities of type player (or any entity) block so that it pathfinds towards a creature, but remove the contact attack so that it doesn't actually attack for melee. If you then disable gravity it might fly like how you want. Or you can just use the entity base of a bat or other creature that flies around.

Then, you can have it shoot projectiles downwards using the entity tick update but on a timer so it isn't constant.

I think its doable to make but it might be annoying to set up,

hope this helps.