Mojira Archive
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 [Mod] Anthony Cicinelli

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.

Unresolved

Dmitry Konev

2019-12-14, 08:41 AM

2024-08-29, 02:14 AM

14

5

Confirmed

Normal

Gameplay

Mob behaviour

llama, trader_llama

1.15 - 24w35a1.15, 1.15.1 Pre-release 1, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w11a, 20w12a, 20w21a, 20w22a, 1.16 Pre-release 3, 1.16 Pre-release 7, 1.16.1, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3, 1.16.4 Pre-release 1, 20w46a, 20w48a, 1.17.1, 24w35a

-