ModsFinder

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.

FabricQuiltServer-side onlyMIT LicenseOpen source1.17 – 1.19

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

  1. Fractional damage values

    Damage calculations keep decimal results, so an attack with a fractional value deals the exact amount.

  2. Fractional armor values

    Armor attribute values are applied without rounding, including percentage bonuses added on top of base armor.

  3. 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.

1.19precise_armor-1.0precise_armor-1.0
1.18.2precise_armor-1.0precise_armor-1.0
1.18.1precise_armor-1.0precise_armor-1.0
1.18precise_armor-1.0precise_armor-1.0
1.17.1precise_armor-1.0precise_armor-1.0
1.17precise_armor-1.0precise_armor-1.0
ReleaseBetaAlphaNot available

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

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

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?

No. Players join without it, since only the server has to run the mod.

Which loaders does Precise Damage support?

The mod is published for Fabric and Quilt. Fabric API is required on Fabric.

Which game versions have files?

Files cover 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2 and 1.19, and snapshot builds are published as well.

Does every damage source use precise values?

Bows and crossbows do. The author notes that some other damage sources still round, and asks players to report them.

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

All projects

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…
Andrew6rant, on the Modrinth page

Official listing

Owner
Andrew6rant
Published
2022-07-12
Updated on Modrinth
2022-07-12
Facts verified
2026-10-15

Tags