Precise Damage
by Andrew6rant
Precise Damage is a Fabric and Quilt library that keeps fractional values in damage and armor calculations instead of rounding them down.
What it does
Vanilla Minecraft rounds damage and armor values down to whole points. An item with an armor attribute of 4.5 points is calculated as if it had 4, and 9 points of armor combined with a 25% attribute bonus, which works out to 11.25, is treated as 11. Precise Damage changes those calculations so fractional values are kept. Percentage-based calculations are handled the same way.
The mod only needs to be installed on the server. Players do not have to add it on their side, and it works with vanilla clients. Single-player worlds that run the mod on the same instance also work. Fabric API is required. Precise Damage is published for Fabric and Quilt for 1.17 – 1.19, with 1.0 as the latest file for 1.19, and it is released under the MIT License as open source.
Projectiles fired from bows and crossbows are affected through the PersistentProjectileEntity class. Other damage sources that round values may still apply whole points. The author asks for reports of any such sources. The source code and issue tracker are public.
Key features
Fractional damage values
Damage calculations keep decimal results, so an attack with a fractional value deals the exact amount.
Fractional armor values
Armor attribute values are applied without rounding, including percentage bonuses added on top of base armor.
Projectile support
Arrows from bows and crossbows use the precise calculation through the persistent projectile entity.
Compatibility
Latest build for each game version and loader.
This mod also publishes snapshot builds. Snapshots are not shown in the matrix.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Armor-focused servers
Server owners who tune armor values can use fractional points so that equipment bonuses are applied as specified.
Balancing custom gear
Modpack authors who add items with decimal armor attributes can rely on the exact values rather than the rounded ones.
Who it’s for: Server owners and modpack authors who set armor or damage values with decimal numbers and want those values to apply without rounding.
Questions
Does Precise Damage need to be installed on the client?
Which loaders does Precise Damage support?
Which game versions have files?
Does every damage source use precise values?
In the catalog
Precise Damage is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 6,369 mods support Minecraft 1.19.
More from Andrew6rant
Similar mods
What the author says
Change damage calculations to allow for fractional values! Can be installed in singleplayer same as any mod, or on a server (works with Vanilla clients!). Normally, an item with an armor attribute of (for example) 4.5 points will be rounded down and calculated exactly the same as an attribute with 4 points. This mod…
Official listing
- Modrinth page
- modrinth.com/mod/precise-damage
- Owner
- Andrew6rant
- Published
- 2022-07-12
- Updated on Modrinth
- 2022-07-12
- Facts verified
- 2026-10-15
