Started by
DevinTank123145
on
Topic category: Help with Minecraft modding (Java Edition)
I want my entity to attack a certain mob group like undead, illagers, or arthropods but I dont know how too.
Topic category: Help with Minecraft modding (Java Edition)
I want my entity to attack a certain mob group like undead, illagers, or arthropods but I dont know how too.
You can either make a procedure that checks for entities of that type within a radius, and sets the entity's attack target to the nearest one; or you can just specify each individual entity as a target in the Mob AI. (Which may be quicker, depending on how many different types of entities you want it to target.) You would just add an 'attack entities of type' AI function in addition to the melee attack function.
Thanks!
Mindthemoods how would you do this? does it require custom code?