How do i make a custom entity attack everything?

Started by klushie225 on

Topic category: Help with Minecraft modding (Java Edition)

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!

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?

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...

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

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.

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.

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