mojira.dev
MC-273942

Scute drop from armadillos appears to be hardcoded

The bug

The dropping of scutes from armadillos appears to be a hardcoded item drop, rather than referring to a loot table as with just about all other item drops from mobs.

This affects both random drops as well as forced drops via brushing.

How to fix

Introduce one or two loot tables for armadillos dropping scutes - either one for random dropping and one for brushing, or one for both.

Linked issues

MC-273944 Items removed from flower pots may be hardcoded Resolved MC-94610 Missing loot table entries for mob heads from charged creepers Resolved MC-109377 Non-mob entities have no loot tables Resolved MC-149589 The wither boss will always drops a nether star regardless of its DeathLootTable data Open MC-173732 Fire and soul fire do not have loot tables Resolved

Comments 4

Can confirm by code analyzation of Minecraft 1.21 in ArmadilloEntity.class. I can also not find any loot table relating to this.

Random dropping (mobTick method):

if (this.isAlive() && !this.isBaby() && --this.nextScuteShedCooldown <= 0) {
    this.playSound(SoundEvents.ENTITY_ARMADILLO_SCUTE_DROP, 1.0F, (this.random.nextFloat() - this.random.nextFloat()) * 0.2F + 1.0F);
    this.dropItem(Items.ARMADILLO_SCUTE);
    this.emitGameEvent(GameEvent.ENTITY_PLACE);
    this.nextScuteShedCooldown = this.getNextScuteShedCooldown();
}

Brushing:

public boolean brushScute() {
    if (this.isBaby()) {
        return false;
    } else {
        this.dropStack(new ItemStack(Items.ARMADILLO_SCUTE));
        this.emitGameEvent(GameEvent.ENTITY_INTERACT);
        this.playSoundIfNotSilent(SoundEvents.ENTITY_ARMADILLO_BRUSH);
        return true;
    }
}

Considering similar issues have been fixed MC-267866 i think it can be considered a valid issue.

Thank you for your report!
After consideration, the issue is being closed as Invalid.

You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

This is fixed in 24w37a.

muzikbike

(Unassigned)

Community Consensus

Loot tables

missing-loot-table

1.21

Retrieved