Attribute Loot Condition
by Karashok-Leo
Attribute Loot Condition adds a loot table condition that checks entity attributes, so a loot table can be tied to the stats a mob or player has.
What it does
The mod adds a new loot condition type that can be placed in a loot table JSON file. Up to four attributes can be listed per condition, for example maximum health, armor, armor toughness or attack damage, each paired with its own weight. When a player kills an entity, the weights are summed against the entity's current values, and the drop is released only if the total stays under the configured limit of 20.
Because the condition is read from a datapack, a server owner can write different drop tables for stronger or weaker mobs without editing code. The JSON format is documented with comments in the example files, which are provided for explanation only and are not valid as they stand. The author recommends pairing the mod with RpgDifficulty, L2 Hostility, or other mods that scale monster attributes, so the condition has varied values to act on.
The mod runs on the server alone, and players join without installing it. It requires Fabric API on Fabric, is published for Fabric, Forge and NeoForge across 7 game versions 1.20.1 – 1.21.5, and is released under the GNU Lesser General Public License v2.1 only.
Key features
Attribute-based loot condition
A loot table entry can check up to four entity attributes and decide whether its drop is released.
Weighted attribute sums
Each attribute carries its own weight, and the weights are added together to form the total that the condition compares.
Datapack configuration
Conditions are written in JSON inside a datapack, so loot can differ per mob or per world setup without a restart of the code.
Commented example files
The sample JSON files contain comments that explain each field, though they are meant for reading only.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
How it compares
Scaling Mobs is server-side only and open source under the MIT License, published for Fabric across 1.20.1 – 1.21.10, so it adjusts mobs rather than loot. RpgDifficulty is open source under the MIT License for Fabric across 1.19.2 – 1.21.1 and runs on client and server, so both sides need it; it is the mod the author recommends pairing with this one. Dynamic Difficulty is a Forge mod for 1.18.2 – 1.20.1 that runs on client and server and is not open source.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Attribute Loot Condition | Fabric, Forge and NeoForge | 1.20.1 – 1.21.5 | Server-side only | 2025-04-21 |
| Scaling Mobs | Fabric | 1.20.1 – 1.21.10 | Server-side only | 2025-11-13 |
| RpgDifficulty | Fabric | 1.19.2 – 1.21.1 | Client and server | 2026-09-19 |
| Dynamic Difficulty | Forge | 1.18.2 – 1.20.1 | Client and server | 2025-06-02 |
Questions
Does Attribute Loot Condition need Fabric API?
Does the mod have to be installed on the client?
Which game versions have files?
In the catalog
Attribute Loot Condition is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 15,307 mods support Minecraft 1.21.5.
More from Karashok-Leo
Similar mods
What the author says
This mod has added a new type of loot table condition (What is that?) so that you can configure the loot based on entity attributes. Recommended to use with RpgDifficulty, L2 Hostility and other mods that implement monster attribute scaling.
Official listing
- Modrinth page
- modrinth.com/mod/attribute-loot-condition
- Owner
- Karashok-Leo
- Published
- 2024-08-25
- Updated on Modrinth
- 2025-04-21
- Facts verified
- 2026-10-15
