If a block does not require a tool by default, it cannot be given one via datapack tags. The block will be added to the relevant tags if the files are added, but the behavior of the block is unchanged.
Steps to reproduce:
Create a datapack.
Add a block that does not require a tool to drop, such as a Rail or a Piston, to the block tag "#minecraft:needs_diamond_tool".
Attempt to break the block with an iron pickaxe in survival mode.
Expected: The block would not drop unless using a tool of diamond or better level.
Actual: The block will always drop.
In this example, I used rails because they mine faster with pickaxes, but by default do not require any tool. I have also observed this bug with Pistons, as well as Oak Logs (mines faster with axe).
Attachments
Comments 2
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
Can confirm! Also affects 1.20.4.