(Solved) Entities won't be hostile

Started by TDO on

Topic category: Help with MCreator software

Active 1 month ago
Joined Dec 2022
Points:
598

User statistics:

  • Modifications: 4
  • Forum topics: 46
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 52
(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
Active 21 hours ago
Joined Nov 2019
Points:
878

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 335
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.

Active 1 month ago
Joined Dec 2022
Points:
598

User statistics:

  • Modifications: 4
  • Forum topics: 46
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 52
@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"

Active 21 hours ago
Joined Nov 2019
Points:
878

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 335
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.