ModsFinder

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.

FabricForgeNeoForgeServer-side onlyGNU Lesser General Public License v2.1 onlyOpen source1.20.1 – 1.21.5

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

  1. Attribute-based loot condition

    A loot table entry can check up to four entity attributes and decide whether its drop is released.

  2. Weighted attribute sums

    Each attribute carries its own weight, and the weights are added together to form the total that the condition compares.

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

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

1.21.51.0.3Not available1.0.3
1.21.41.0.3Not available1.0.3
1.21.31.0.3Not available1.0.3
1.21.21.0.3Not available1.0.3
1.21.11.0.2Not available1.0.2
1.211.0.2Not available1.0.2
1.20.11.0.11.0.1Not available
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

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

How it compares

Full comparison

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.

ModLoadersGame versionsEnvironmentUpdated
Attribute Loot ConditionFabric, Forge and NeoForge1.20.1 – 1.21.5Server-side only2025-04-21
Scaling MobsFabric1.20.1 – 1.21.10Server-side only2025-11-13
RpgDifficultyFabric1.19.2 – 1.21.1Client and server2026-09-19
Dynamic DifficultyForge1.18.2 – 1.20.1Client and server2025-06-02

Questions

Does Attribute Loot Condition need Fabric API?

Yes. Fabric API is required on the Fabric loader. Forge and NeoForge builds do not list it.

Does the mod have to be installed on the client?

No. It runs on the server alone, so players need nothing extra to join.

Which game versions have files?

Files exist for 1.20.1, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4 and 1.21.5, with the latest Fabric and NeoForge builds at 1.0.3 for 1.21.5.

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

All projects

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.
Karashok-Leo, on the Modrinth page

Official listing

Owner
Karashok-Leo
Published
2024-08-25
Updated on Modrinth
2025-04-21
Facts verified
2026-10-15

Tags