Started by
ruoshili
on
Topic category: Help with Minecraft modding (Java Edition)
I recently encountered a few roadbocks to a mod I'm currently making, and I wasn't able to find any tutorials that suit my case, so hopefully some of you nice people can help me with what I'm trying to code:
- A "flag-bearer" enemy which makes other hostile mobs follow it, and aggro onto any entity it gets hit by.
- An "observer" zombie that seeks the highest point (on th y axis) then uses its spyglass (I already made the animation). It then make all undead enemies around it aggro onto the nearest player in the world.
- A zombie that, when killed, spawns a layer of flesh on the ground that, if not mined fast enough, spawns another enemy.
Hopefully some of you will know how to implement this!
Thanks in advance!
Behavior like this will require you to set the entity to have no ai in the entities ai editor, then you have to create your own state machine and ai handling using the entitys triggers and variables. Use the 'attempt to amke entity find path' block to guide around your entities then use other blocks and animation triggers to manage their various abilities.
uhhh... what a tedious task. you'd have to use procedures
Thanks, but, how do I apply the reworked AI to pre-existing mobs, like zombies and creepers?