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

Started by beam56 on

Topic category: Help with modding (Java Edition)

Last seen on 04:04, 9. Mar 2024
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?

Last seen on 15:30, 3. May 2024
Joined Mar 2024
Points:

User statistics:

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

Image 1

Last seen on 15:30, 3. May 2024
Joined Mar 2024
Points:

User statistics:

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

Image 1

Last seen on 15:30, 3. May 2024
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

Last seen on 14:40, 24. Jun 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
try to put this procedure in…
Wed, 03/27/2024 - 10:41

try to put this procedure in your spider triger "entity tick update"

https://imgur.com/a/67EZku5

Hope it work ;)