Attribute Loot Condition
Loot tables in Minecraft have always been a bit blunt. A zombie drops what a zombie drops, whether it wandered into your base at full health or crawled out of a spawner with barely a scratch. Attribute Loot Condition changes that by adding a brand-new loot table condition type that reads entity attributes before deciding what drops. If you have ever wanted tougher mobs to feel genuinely more rewarding to kill, this is the mod that makes it happen.
What This Mod Actually Does
At its core, the mod introduces a loot table condition called attribute_loot_condition:attribute_weighted_sum. Instead of relying on fixed chances or player luck, the condition takes the attributes of the entity being killed, applies weights you define, and sums them up. If that total meets your minimum threshold, the loot entry rolls. If it does not, nothing drops.
Out of the box, four attributes are weighted at 1.0 each:
- Maximum health (minecraft:generic.max_health)
- Armor (minecraft:generic.armor)
- Armor toughness (minecraft:generic.armor_toughness)
- Attack damage (minecraft:generic.attack_damage)
The configuration lives in config/attribute_loot_condition.json, and you are not limited to those four. Any attribute you can name can be added to the array with whatever weight you like, which means the system scales from a simple difficulty gate to an elaborate stat-based reward curve.
Why It Pairs So Well With Attribute Mods
This mod really shines when mobs are not all created equal. Mods like RpgDifficulty and L2 Hostility scale monster attributes as you progress, so a late-game zombie might have triple the health and armor of an early one. Without a condition like this, both drop the same apple. With Attribute Loot Condition, you can make the beefed-up version drop something worth the fight.
That design also keeps loot tables honest. You are not guessing at mob strength through spawn caps or hidden multipliers; you are reading the actual numbers the game uses and gating rewards on them directly.
How to Install Attribute Loot Condition
Setup is straightforward, and knowing how to install it properly saves you a headache later. The mod is built for the Fabric loader and supports Minecraft 1.20.x and 1.21.x, so check that your game version matches the file you grab before you start.
- Install Fabric Loader and Fabric API for your Minecraft version.
- Place the mod jar in your mods folder.
- Launch the game once so the config file generates.
- Edit config/attribute_loot_condition.json to set your attribute weights.
- Add datapack loot tables using the new condition, then reload with /reload.
If you would rather skip the manual file shuffling, the foxygame.net launcher handles the whole process in a single click and keeps Attribute Loot Condition updated automatically whenever a new build lands for your selected game version.
Writing Your First Condition
A basic datapack entry for zombies looks like this: a single pool with one roll, an apple as the item, and a condition block using attribute_loot_condition:attribute_weighted_sum with the entity set to "this", a minimum of 20, and a maximum of 0. Setting the maximum to 0 or below disables the upper check entirely, so the condition only cares that the weighted sum reaches 20.
From there, the sky is the limit. Gate rare gear behind armor toughness, tie emerald drops to attack damage, or build a full tiered loot system where every stat bracket unlocks its own reward pool. Because the weights are configurable, you can tune the difficulty curve without touching a single datapack file.
Things to Keep in Mind
JSON does not support comments, so keep your config and loot table files clean. Test your thresholds in a creative world before pushing them to a live server, since a miscalculated weight can quietly lock players out of drops they expect. And if something behaves oddly, the mod's issue tracker is the right place to report bugs or suggest features.
Final Thoughts
Attribute Loot Condition fills a real gap in Minecraft's loot system by making rewards reflect the actual threat a mob poses. Whether you run a lightly modded survival world or a heavily scaled RPG server, it gives you precise, readable control over what drops and why. Download Attribute Loot Condition for Minecraft, spend ten minutes on the config, and your loot tables will finally feel as dynamic as your combat.