mojira.dev
MC-265116

Dead corals cannot have custom loot tables

I was creating a custom data pack with a custom loot table for dead coral items, like the fans and plant variants, and noticed that the loot table only drops when using a Silk Touch Pickaxe. Even when the loot table was changed to drop an item regardless of the conditions, it would still only work when a Silk Touch Pickaxe was used. It is almost as if there is a precondition to even running the loot table that must be met, which is having a pickaxe with silk touch. No matter what I typed in the loot table, it wouldn't drop anything until I used Silk Touch. I gave up on the loot table, and then tried using a scoreboard, but it seems as though the score for mining dead coral fans and the shrubs only counts when breaking it with a Silk Touch Pickaxe. I really need to be able to test for when a player breaks one of these blocks, but all the current methods require the player to be holding a Silk Touch Pickaxe.

I've noticed that the loot table for these dead coral items include the Silk Touch requirement, however removing this condition doesn't change the fact that they still require Silk Touch for the loot table to even run.

Not sure if this also applies to the living variants of these items, but it definitely does to the dead ones.

Linked issues

Comments 2

Duplicate of MC-138163, see the comment from mojang. There is indeed a separate precondition for used item to mine, before triggering the loot table, and changing that is a feature request.

Thank you for your report!
We're tracking this issue in MC-138163, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

Michael Turco

(Unassigned)

Unconfirmed

(Unassigned)

1.20.1, 23w33a

Retrieved