How to get a mob to attack an entity they cant see

Started by beam56 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get a mob to attack an entity they cant see

Im trying to make a small mod that has a monster that attacks cows. I need the monster to be able to start running towards the cow without having a direct sightline of it. kinda similar to how pillagers are with villagers, even though they cant see the villager they move towards the villager and attack it. Is there anyway to do this or replicate the pillagers behavior with villagers except with a cow instead?

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Wed, 03/27/2024 - 08:52

Image 1

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Wed, 03/27/2024 - 08:59

Image 1

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
He doesn't see the cow and…
Wed, 03/27/2024 - 09:02

Image 1He doesn't see the cow and doesn't attack, just like the pillager