Steps to Reproduce:
Run the command:
/attribute @s minecraft:attack_damage base set 10
Give yourself an item with an attack damage modifier:
/give @s stone_sword[attribute_modifiers=[{type:attack_damage,amount:4,id:"minecraft:base_attack_damage",operation:add_value}]]
Hold the item in your main hand.
Check the value from:
/attribute @s minecraft:attack_damage get
Compare the result with the tooltip shown on the item
Expected Result:
The tooltip should display the player’s actual total attack damage (in this case, 14
), consistent with how the attack speed attribute tooltip correctly reflects the player’s real value with modifiers applied.
Observed Result:
The tooltip displays a value of 5
, which is calculated as 1
(hardcoded base) + 4
(modifier). It ignores the player’s actual base attribute value.
Notes:
This behavior appears inconsistent. If the tooltip is intended to represent only the weapon’s damage, there is no reason to include the hardcoded 1
. Otherwise, the tooltip should perform a full calculation of the player’s total attack damage with the item equipped.
Linked issues
Comments 3
Hi @IrL1ne, although your report is a duplicate, I have gone ahead and made you the owner of the parent report considering the information you provided here was much more descriptive (thanks for that!). Feel free to update the parent report so long as you ensure to keep all information accurate and precise.
Hi!
Thank you for your report!
We're already tracking this issue at MC-196250, so I will resolve and link this ticket as a Duplicate.
I suggest also to browse through the main issue for potential fixes.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki