mojira.dev
MC-167920

Inconsistency in llama and trader llama panicking when attacked

If a player punches any animal including trader llamas, they will try to run away from a player, normal llamas however never run around if a player punches it (survival or creative mode).

Both trader llama and normal llama should act the same way if the player attacks them.

Both run around before attacking back OR both start attacking a player without being in running around mode

Code Analysis

Code Analysis done by @unknown

The reason this happens is because the in the registerGoals method in net/minecraft/world/entity/animal/horse/TraderLlama.java there is a new PanicGoal selector being added. This panic goal should be removed since the goal is already set in net/minecraft/world/entity/animal/horse/Llama.java which the Trader Llama extends from.

Linked issues

Comments 10

Confirmed. For some reason the trader llamas AI and the llama AI are different.

Can confirm. To me, it seems like more of an issue that the trader llama actually runs away after being punched, and only spits after running around.

Changed the title to better describe the issue, both llamas should act the same

Can confirm in 1.17.1.

In 24w34a and 1.21.1

Dmitry Konev

(Unassigned)

Confirmed

Gameplay

Normal

Mob behaviour

llama, trader_llama

1.15, 1.15.1 Pre-release 1, 1.15.2, 20w06a, 20w07a, ..., 20w46a, 20w48a, 1.17.1, 24w35a, 1.21.8

Retrieved