A custom enchant which increases damage by a percentage per level stacks additively with the critical hit multiplier, rather than multiplicatively.
Below are screenshots showing a custom enchantment which increases sword damage by 20% per level. This benchmark was done with two netherite swords, one enchanted with the enchantment, one unenchanted, against an Iron Golem.
Note when critical attacking with an unenchanted netherite sword, the amount of damage dealt is 8 on a normal hit. With the first level of the enchantment on a netherite sword with a critical hit, 13.6 damage is dealt. 13.6 is a 70% increase (1.7x factor) compared to the unenchanted sword's 8 base damage (without critical hitting), which is an additive increase of 20% onto the 150% multiplier that critical attacking provides.
Also note that the increase between a normal critical hit and an enchanted critical hit in this scenario is a 13.33% increase due to this, when it should be a 20% increase.
The JSON for the custom enchantment (modified Sharpness) is included for troubleshooting purposes.
Linked issues
Attachments
Comments 2
Thank you for your report!
We're resolving and linking this ticket forward as a duplicate of MC-272004, as that ticket contains more detailed information and/or has already been triaged by Mojang.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 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.
Both the critical hit modifier and enchantments are calculated based on the base attack damage (although including effects). This behavior is intended