The bug:
Pandas can be hit while eating bamboo without interrupting their meal or attacking the player.
Repro steps:
1.Run this command to spawn a panda.(The aggressive personality is intended to make the issue easier to understand.)
/summon panda ~ ~ ~ {MainGene:aggressive,HiddenGene:normal}
2.Give the panda some bamboo and wait for him to eat it.
This issue does not occur with bamboo given directly by the player.If the player attacks a panda when it is given bamboo directly, the panda will stop eating and attack the player.
3.Attack the Panda when it is eating.
Observed results:
Pandas keep eating when getting hit.
Expected results:
Pandas stop eating and attack the Player's Character when getting hit.
Note that piglins with similar behavior will attack the player if they are hit while admiring the gold.
Attachments
Comments 4
Can confirm in 1.21.4. I would like to request ownership as the current reporter is not active since this issue's creation.
Can confirm this behavior in 1.17.1 and 1.18 Pre-release 2.