How do i make a custom entity attack everything?

Started by klushie225 on

Topic category: Help with modding (Java Edition)

Last seen on 23:58, 19. Apr 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make a custom entity attack everything?

 I would like to know how i make my custom entity target and attack all mobs and animals. The attack entity ENTITY:MOB and ENTITY:ANIMAL is not working. All they do is just walk around. Thank you for helping!

Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have you set up the mob…
Fri, 05/01/2020 - 12:32

Have you set up the mob correctly? Like, did you use the “follow mob” AI base?

Last seen on 23:58, 19. Apr 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i have them as iron golems,…
Fri, 05/01/2020 - 19:26

i have them as iron golems, and i set them to creature but they still kill each other. i read somewhere else that the iron golem ai base wont kill each other...

Last seen on 23:58, 19. Apr 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wait... now they attack but…
Fri, 05/01/2020 - 19:43

wait... now they attack but they kill each other too

Last seen on 23:58, 19. Apr 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so how do i make an exeption…
Fri, 05/01/2020 - 19:49

so how do i make an exeption? how do i make it attack all mobs but not each other, because my friend and i are both coding our own soldiers to fight each other. But they are different workspaces so i have to make it attack all mobs.

Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make it attack each mob…
Fri, 05/01/2020 - 20:16

Make it attack each mob individually. If you do not know how to do that, watch a tutorial on Youtube.

Last seen on 23:58, 19. Apr 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok, thank you  
Fri, 05/01/2020 - 22:12

ok, thank you