Vanilla mob avoid

Started by Trehmor on Thu, 09/10/2020 - 00:04

Topic category: Help with modding (Java Edition)

Last seen on 17:57, 26. Oct 2020
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Vanilla mob avoid
Thu, 09/10/2020 - 00:04

There is any way to make a vanilla mob avoid a mob from my mob? If it is by coding, Can someone help me?

Last seen on 12:13, 28. Oct 2020
Joined Jan 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I don't think you can with…
Sun, 09/13/2020 - 21:25

I don't think you can with MCreator (even with coding, it's a matter of what elements MCreator is able to affect). However, you could have your custom mob avoid the other mob, and it would achive a similar effect.

Last seen on 03:53, 28. Oct 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
with coding, you can hook…
Mon, 09/14/2020 - 01:27

with coding, you can hook LivingUpdateEvent to check if your AI task has been added, and if not, add it to the entity's AI tasks.