(Solved) Entities won't be hostile

Started by TDO on

Topic category: Help with MCreator software

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(Solved) Entities won't be hostile
Sat, 02/24/2024 - 17:44 (edited)

I created two entities, and made them hostile, but the AI won't work properly and they won't attack the player unless it attacks them first.

Edited by TDO on Sat, 02/24/2024 - 17:44
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you use an entity base…
Sun, 01/28/2024 - 02:09

If you use an entity base that is neutral like an Enderman, than it will do so, however you could also add the attack block in the AI and goals tab, and make the target a player.

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@TZO_Ghoul How do i chose…
Sun, 01/28/2024 - 09:35

@TZO_Ghoul

How do i chose the attack target? there's only the block "do melee damage" and the block "do ranged melee damage"

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you are using the newest…
Sun, 01/28/2024 - 20:25

if you are using the newest version, it should be the very first one in the "Combat tasks" side bar, the whole thing is 
"Attack (in sight only [ ]) (nearby only [ ]) entities of type [ no entity selected ] [ conditions: OO ] "
what this does is makes the mob focus on these targets, like pillagers attacking villagers.