The new “display“ field for attribute modifiers is missing for attribute modifiers defined by custom enchantment JSON files, meaning you can’t hide or override the modifier in the tooltip.
Steps To Reproduce:
Download the attached data pack and enable it in a world (requires server restart to add new enchantment).
Give yourself a pickaxe and enchant it with
/enchant @s namespace:example
. Or run this command:/give @s minecraft:diamond_pickaxe[enchantments={"namespace:example":1}]
See that the attribute modifier appears in the tooltip despite the enchantment definition specifying
"display":{"type":"hidden"}
.Give yourself an item with a similar attribute modifier in the
attribute_modifiers
component instead and see that the modifier is hidden./give @s minecraft:wooden_pickaxe[minecraft:attribute_modifiers=[{type:"minecraft:block_break_speed",id:"namespace:example_penalty",amount:-1,operation:"add_multiplied_total",display:{type:"hidden"}}]]
Expected Behaviour:
The display
field is respected by enchantment-defined attribute modifiers
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