only attack hostle mobs

Started by shawshank1228 on Wed, 04/08/2020 - 19:10

Topic category: Advanced modding

Last seen on 20:37, 20. Apr 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
only attack hostle mobs
Wed, 04/08/2020 - 19:10

help! my entity keeps attacking peaceful mobs! and i dont know how to make it only attack hostle mobs 

Last seen on 16:45, 3. May 2020
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
What is your current AI…
Thu, 04/09/2020 - 04:23

What is your current AI looking like? If you are using a base entity for the AI it may overwrite your current stuff. Make sure that it's behavior is set to creature and that if you wanted it to attack nothing, to specify that in the AI.

Entity Base is in the top right of the mob AI screen and

behavior is on the second screen at the top.

 

To make it only attack hostile mobs make sure it attacks nothing first and on the AI screen drag the Attack entities of type and

Select EntityMob

 

Hope this helps.

Last seen on 20:37, 20. Apr 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
thats what i did but then it…
Thu, 04/09/2020 - 22:41

thats what i did but then it started atacking everything

so now i dont know what to do exept put every hostile mob type in

Last seen on 23:43, 25. May 2020
Joined Jun 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Add iron golem Ai .  
Thu, 05/14/2020 - 21:24

Add iron golem Ai .