Making a mob attacking you

Started by VoraX91 on Fri, 04/15/2016 - 11:16

Topic category: Help with MCreator software

Last seen on 23:15, 3. May 2016
Joined Sep 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Making a mob attacking you
Fri, 04/15/2016 - 11:16

Hello, i had make a mob with a custom AI, it's a biped. He can walk, open doors, etc... All is ok.

BUT, he can't attack me, it doesn't works.

 

With Agressive against entityplayer, i tried to attack him in singleplayer, he don't reacts.

I tried attack and colide too, i think it's when someone or something is attacking this mob, i'm not sure, but nothing is hapening.

I tried leap on target too, i think it works, i'm not sure that it's when mob is jumping on you when your at 1 block of him, right?

 

Thanks for help, i hope that my mob will kill me when i'll have some answers ^^

Last seen on 14:30, 26. Aug 2018
Joined Jun 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
What version of MCreator do
Fri, 04/15/2016 - 16:01

What version of MCreator do you use?

Last seen on 23:15, 3. May 2016
Joined Sep 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
1.6.5 Windows 64 bit.
Fri, 04/15/2016 - 16:26

1.6.5 Windows 64 bit.

Last seen on 20:41, 12. Apr 2020
Joined May 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
did you set him as a mob?
Fri, 04/15/2016 - 19:56

did you set him as a mob?

Last seen on 23:15, 3. May 2016
Joined Sep 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It's a mob yes, not a
Fri, 04/15/2016 - 20:54

It's a mob yes, not a creature.

Last seen on 20:41, 12. Apr 2020
Joined May 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
you have a really good
Sat, 04/16/2016 - 06:27

you have a really good problem i was looking at the mob setup and the only thing i can think of is the AI Task....Make sure when you add "Act Aggresivly agaisnt" The Priority is set to 10

Last seen on 23:15, 3. May 2016
Joined Sep 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You know, it was on priority
Sat, 04/16/2016 - 08:47

You know, it was on priority 10 for all agressive behaviour, i tried one by one these tasks, but it does not works...

Last seen on 20:41, 12. Apr 2020
Joined May 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
use the "AI base on" and if
Sat, 04/16/2016 - 16:41

use the "AI base on" and if it attacks you then retry the "Has Ai" and if it doesnt attack you it might be a bug for some people

Last seen on 23:15, 3. May 2016
Joined Sep 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Nothing to do...
Wed, 04/20/2016 - 17:09

Nothing to do...

Last seen on 15:35, 13. Sep 2016
Joined Apr 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
DUDE ik your problem it
Thu, 04/21/2016 - 16:25

DUDE ik your problem it happened to me! i can help

Last seen on 15:35, 13. Sep 2016
Joined Apr 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
you need to ad 'act
Thu, 04/21/2016 - 16:27

you need to ad 'act aggresively against' then make it entity player and make it top priority.

Now he will act agresive... He wont attack tho.

To make him attack you need to add 'Attack on colide'.

Make it second priority.

Now he will attack you!

 

Last seen on 18:32, 28. May 2018
Joined Jul 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Use an AI based on a zombie.
Thu, 04/21/2016 - 17:25

Use an AI based on a zombie.

That helped me too....

Last seen on 04:06, 8. Jan 2019
Joined Feb 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hi, y working in my mod, and…
Sun, 12/02/2018 - 17:30

Hi, y working in my mod, and i have a problem, my mobs don´t attack me, i have the mcreator 1.8.1 mi mod walk looks around but don´t attack me, i don´t speck english very well so probably y meking something bad but i don´t know what, thanks for your help.

Last seen on 12:53, 25. Jul 2020
Joined May 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
What version of Mcreator do…
Sun, 06/16/2019 - 07:52

What version of Mcreator do you have because I don't have the "Attack on collide" and "act agressively against" :/

I only have:

Attack target (make mob agressive) call for help,  Attack on melee with speed factor, Attack in sight only, nearby only on type,

watch closest entity in radius [], and follow same mobs but it does nothing.

Last seen on 19:55, 28. Sep 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
In older versions AI tasks…
Sun, 06/16/2019 - 16:53

In older versions AI tasks were defined in a different way.


Anyway, here is how you do it in MCreator 1.7.9+:

 

Look around or look at the nearbiest entity of type "Player" [Depending on the effect you want to create]

Wander or Follow same mobs [Wander will make the mob randomly walk anywhere, even when there are no targets around, while follow same mobs will make the mob walk towards its targets]

Attack target (make mob aggressive)

Attack on melee [if the mob doesn't do ranged attacks]

Attack on type "Player"


Please search on the forums next time because this question was answered a lot of times.