mojira.dev
MC-237537

Certain blocks don't use their drop loot table when removed from minable/<tool> and needs_<type>_tool tag

The Bug: mining a diamond_ore block after it has been removed from minable/pickaxe and needs_iron_tool tag with or without a tool yields no blocks even though it is expected that it would like other blocks such as cactus or any other block that can be mined by any or no tool. Simply put there is an inconsistency with the minable tags and needs_<type>_tool tags and blocks that break without using these features.

 

Steps to reproduce:

If you download the datapack below start at step 4 otherwise start at step 1.

1) Create the basic setup for a datapack that will replace the vanilla one

2) Copy the files from the jar: "<pack_name>/data/minecraft/tags/minable/pickaxe.json" and "<pack_name>/data/minecraft/tags/needs_iron_tool.json"

3) Remove "minecraft:diamond_ore" entry/field from both files.

4) Then either drag and drop the data pack into a new world datapacks screen or move it to the datapacks folder of an existing world.(make sure you have cheats enabled)

5) Make sure the pack is loaded & enabled via "/datapack list" otherwise enable with the "/enable" command.

6) Disable the vanilla datapack with "/datapack disable vanilla"

7) Place a diamond block and mine it with your hand or any tool and it will not drop regardless of the loot table.

 

Expected Result: A diamond would drop from breaking the block with your hand or any tool.

 

Note: The datapack is a near complete copy of the files in the jar, the only edited files are minable/pickaxe.json, needs_iron_tool.json, and loot_tables/blocks/diamond_ore.json(it is a modified copy of the cactus loot table, but it drops a diamond instead.)

Linked issues

Attachments

Comments 1

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.

Spencer Olsen

(Unassigned)

Unconfirmed

(Unassigned)

1.17.1

Retrieved