Summary:
Relates to MC-136208, which was surprisingly fixed. Armadillos continue to drop scutes even when the gamerule doMobLoot is disabled, a behavior inconsistent with turtles due to the fix. This inconsistency might be intentional.
Steps to reproduce:
/gamerule doMobLoot false/summon minecraft:armadillo ~ ~ ~ {scute_time:0}
Observed result:
The armadillo dropped an armadillo scute.
Expected result:
The armadillo should not drop an armadillo scute.
Note:
This gamerule likely shouldn't influence scute drops when using a brush on the armadillo.
Video:
Code analysis by @unknown
Can confirm in 1.21.
Code Analysis / Possible Fix
Minecraft 1.21 using Yarn mappings. This code is located in
ArmadilloEntity#mobTick, and defines the conditions for an armadillo scute to drop:There is no check to see if the gamerule
doMobLootistrue. Adding a check to see if it istrueshould fix this issue, as shown below: