Summary:
Prior to 24w05a, llamas and trader llamas would drop equipped carpets upon death, regardless of the gamerule doMobLoot setting. However, as of 24w05a, this behavior has ceased due to alterations in how the carpet is stored.
Steps to reproduce:
/gamerule doMobLoot false
/summon llama ~ ~ ~ {Health:1f,Tame:1b,body_armor_item:{id:"minecraft:red_carpet",count:1}}
Kill the llama.
/summon minecraft:trader_llama ~ ~ ~ {Health:1f,Tame:1b,body_armor_item:{id:"minecraft:red_carpet",count:1}}
Kill the trader llama.
Observed result:
Llamas and trader llamas do not drop their carpet when the gamerule doMobLoot is false.
Expected result:
Llamas and trader llamas should drop their carpet even when the gamerule doMobLoot is set to false, as was the case before 24w05a.
Video:
[media][media]
expected behavior is based on MC-15114 resolution, but note that with 24w05a this is also a similar issue for horses MC-271480