Started by
JoshKING620
on
Topic category: Help with Minecraft modding (Java Edition)
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??
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.