mojira.dev
MC-301148

Attack Damage attribute tooltip uses a hardcoded base value of 1 instead of the player’s actual base attribute.

Steps to Reproduce:

  1. Run the command:

/attribute @s minecraft:attack_damage base set 10
  1. 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}]]
  1. Hold the item in your main hand.

  2. Check the value from:

/attribute @s minecraft:attack_damage get
  1. 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!
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 

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.

Thanks a lot! I really appreciate it. This issue matters to me, and I’ll do my best to update the parent report.

IrL1ne

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8, 25w33a

Retrieved