mojira.dev
MC-245510

Piglin Brute's generic.follow_range attribute functions oddly

From my understanding, follow_range is supposed to dictate when an entity can detect a player, and will follow the player until it fails to check for the player in the given range, however Piglin Brutes seem to ignore that. They will always detect from the same radius around them (thus never being able to "look" further than, nor be limited below, 16 blocks for players). It seems they use follow_range as the max amount of steps they will allow themselves to take when advancing in any direction. As a few examples that I found;

 

1. When follow_range was set to 0, the Piglin Brute refused to move at all. It became completely stationary, however still aggroed onto the player when the player got within the default detection range by playing its angered noise and holding its axe in the air.

 

2. When follow_range was set to 2, the Piglin Brute moved 2 blocks at a time. When I entered its default aggro range (much further than 2), it became angry at me but would pause every 2 blocks for a brief moment before moving another 2 blocks. 

 

3. When follow_range was set to 32/64/100/1000, the Piglin Brute followed what seemed to be its normal AI pathing (likely because it didn't need to take that many 'steps' to get to me).

 

Factors such as dimension, other NBT data, world type, datapacks, etc. don't seem to affect it.

Linked issues

Comments 2

Does MC-132804 describe your issue?

Only partially. The primary issue this bug report is about is specific only to Piglin Brutes (from what I've found). The bug report you linked talks about the behavior of the amount of steps the mob will take (so the stuttering issue), but not the fact that Piglin Brutes are the only mob I found to strictly only detect players at a follow_range of 16 despite the player being able to edit the follow_range attribute. Other mobs seem to function fine.

David Lock

coschevi

Confirmed

Platform

Low

Commands, Mob behaviour

1.18.1, 1.20.1, 1.20.2

24w33a

Retrieved