mojira.dev
MC-273944

Items removed from flower pots may be hardcoded

The bug

When right clicking on a flower pot containing something, the contents are retrieved as an item. Much like is the case for other blocks which produce an item on right click (pumpkins MC-269838, beehives MC-269839, sweet berry bushes MC-273943), these appear to be completely hardcoded rather than loot table driven.

How to fix

Introduce a dedicated loot table for right clicking on each potted object for handling the item dropped.

Linked issues

MC-149589 The wither boss will always drops a nether star regardless of its DeathLootTable data Open MC-202586 Unbreakable blocks do not have loot tables Open MC-235754 Structure voids do not have loot tables Open MC-235755 Non-targetable blocks do not have loot tables Open MC-276634 Item dropped when using bone meal on tall flowers appears to be hardcoded Open

Comments 3

Can confirm in 1.21 by code analyzation of FlowerPotBlock#onUse. I can also not find any loot table relating to this.

ItemStack itemStack = new ItemStack(this.content);
if (!player.giveItemStack(itemStack)) {
    player.dropItem(itemStack, false); # Second argument is 'retainOwnership'
}

The code seems to give the item back outright.

Please correct me if this is not the related code. 🙂

[Mojang] Triage Team

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

See explanation on MC-109377 - the fixing of many absent loot tables today (MC-94610, MC-269838, MC-269839 MC-276529, MC-276759) may warrant a reconsideration of this ticket's validity, as the lack of loot table for an item drop is a stark inconsistency with all other cases in game currently.

muzikbike

(Unassigned)

Community Consensus

Loot tables

missing-loot-table

1.21

Retrieved