Changing vanilla mobs attitude towards a player

Started by xerrio on Tue, 09/10/2019 - 13:30

Topic category: Help with MCreator's application

Last seen on 13:45, 11. Sep 2019
Joined Sep 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Changing vanilla mobs attitude towards a player
Tue, 09/10/2019 - 14:23 (edited)

Hello!

 

I am new to MCreator and I was wondering how to get the event when an entity is trying to target a player and how to cancel it. I do this to modify hostile mobs aggressiveness depending on surrounding blocks in an area.

 

I also try to change vanilla mobs spawning rate depending on the same block existence in the area.

Of course this block comes from another mod so I also have to detect the presence of this mod to load my own mod and to use a block that is not vanilla.

I could take this second part from the other side and say that a block in particular is increasing hostile mobs by X% in an area arround them.

 

Thank you for your time!

-x

Edited by xerrio on Tue, 09/10/2019 - 14:23
Last seen on 19:54, 17. Sep 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
Tutorials on the bottom of…
Tue, 09/10/2019 - 16:43

Tutorials on the bottom of this page might help: https://mcreator.net/wiki/how-make-mob

Last seen on 13:45, 11. Sep 2019
Joined Sep 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I am not creating a mob.
Tue, 09/10/2019 - 17:10

I am not creating a mob.