Help with mob hostile

Started by JoshKING620 on

Topic category: Help with modding (Java Edition)

Last seen on 17:05, 27. Oct 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with mob hostile

so basically i wanted so that when the mob spawns in it becomes hostile instanly because with the default one you have to hit it to make it hostile but i just want it to be hostile when it spawns in i tried asking chat gpt youtube tutorials but i couldnt find anything so the only way is to ask people so can anyone help me??

Last seen on 21:55, 20. Feb 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a 'make entity set…
Sun, 10/15/2023 - 20:39

There is a 'make entity set attack target' function. You can configure it to check if there's a player within a large radius, and, if there is, set the entity's attack target to the nearest player.