Started by
BanjoChicken69
on
Topic category: Help with Minecraft modding (Java Edition)
Hey, so im making a mob that is meant to be outsmarted instead of just allowing the player to run away, and i want to know if there's a way to check if the entity can't get to the player. I've noticed that because the entity is 3 blocks tall, there's a lot of ways to just walk under an awning and dig away, and I want it to be able to continue to chase you or atleast summon something to bring you towards it.
If you're ok with your entity teleporting, you can try something like, if attack target does not equal null, then if attack target is not within 10 blocks, teleport to random xyz near attack target.
You can also change the follow distance and whether the mob will still chase the target if they can't see it in the AI settings
@Stitch147 Could you possibly provide an image or explain more in depth?
Something like this. You can modify the numbers to be as close or as far form the player as you want - https://imgur.com/fECbsbV