Farsighted Mobs (Fabric)

Farsighted Mobs (Fabric)

341k Downloads

Mob TargetGoal range does not change when not set before spawning, breaking the initial targeting of enemies

AKL55 opened this issue · 7 comments

commented

farsight
farsight2

Tried both forge and fabric.

commented

Hi Arkile, thanks for the issue! Could you copy your latest.log for both to pastebin and send the link as well?

commented

[removed to declutter thread]

commented

Hmm, odd. I don't see any obvious failure messages. How did you test the mob's range? Remember that mobs don't instantly target the player, but can take several seconds to find you.
After the weekend, I'll be able to test your config files as well if the issue still persists.

commented

Ok.Thanks.i'm gonna try again.I was running and standing still in a range of 50 blocks then,i changed the default range to 1000 and nothing happend too.

commented

A bit of testing and I might have figured out the problem. Both versions of the mod only affect creatures that are newly spawned in the world. As such, if you change the config value and check the same monsters again, there will be no difference. Let me know if that could be the issue.

commented

After more extensive testing, I managed to find the same problem! This appears to be a bug in Minecraft itself: MC-145656.

What happens here: When a mob is spawned, its follow range is set to the value in the config after spawning. At this moment, the target range in TargetGoal is already set, and will not change. Reloading the world (or possibly even the chunk containing the mob) will fix this.
On fabric, the default follow range for a mob will also be set before it enters the world, so the default range there is working fine.

I will attempt to fix this bug as soon as possible.

commented

Fixed in version 1.1 🥳