
Modrinth · Minecraft mod
Attribute Loot Condition
This mod adds a new type of loot condition.
Quick answer
Which Attribute Loot Condition release should I use?
Attribute Loot Condition 1.0.2 targets 1.21, 1.21.1 with Fabric. Do not install it on the client. It must be installed on the dedicated server. All 1 required mods have matching files.
Where it goes
Is Attribute Loot Condition required on the client, server, or both?
Do not install it on the client. It must be installed on the dedicated server.
This file is marked server-only.
What else does Attribute Loot Condition 1.0.2 need?
1.0.2. Change the file and its required mods may change too.
Install Fabric API first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Attribute Loot Condition without breaking your instance.
Built for Attribute Loot Condition 1.0.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.2. It targets 1.21, 1.21.1 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.2. It opens that exact file at the source.
About this project
What does Attribute Loot Condition add?
🪄Introduction
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.
⚙️Configuration
The initial configuration file looks like:
(config/attribute_loot_condition.json)
{
"attributeWeights": [
{
"attribute": "minecraft:generic.max_health",
"weight": 1.0
},
{
"attribute": "minecraft:generic.armor",
"weight": 1.0
},
{
"attribute": "minecraft:generic.armor_toughness",
"weight": 1.0
},
{
"attribute": "minecraft:generic.attack_damage",
"weight": 1.0
}
]
}
The entries in this array determine the weights of various attributes.
You can configure addtional attributes, not just limited to these four.
📜Example Usage
It is obvious that there should be no comments in the JSON format file, and this case is only for the sake of explanation.
Datapack:
data/minecraft/loot_tables/entities/zombie.json
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:apple"
}
],
"conditions": [
{
"condition": "attribute_loot_condition:attribute_weighted_sum",
"entity": "this",
"min": 20,
"max": 0 // Not greater than 0 means canceling this check
}
]
}
]
}
After loading this datapack, when a player kills a zombie, the game will weight and sum the maximum health, armor, armor toughness, and attack damage of the zombie. If this sum is not less than 20, then the condition is met.
✉️Feedback
If there are any bugs or suggestions, please provide feedback to the issue page.
Project description from Modrinth.
Pick your setup
Attribute Loot Condition by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.5
2 loader builds1.21.4
2 loader builds1.21.3
2 loader builds1.21.2
2 loader builds1.21.1
2 loader builds1.21
2 loader builds1.20.1
2 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Attribute Loot Condition versions and loaders
1.0.2
attribute_loot_condition-fabric-1.0.2.jar
21 Apr 2025
1.0.2
attribute_loot_condition-neoforge-1.0.2.jar
21 Apr 2025
1.0.3
attribute_loot_condition-neoforge-1.0.3.jar
21 Apr 2025
1.0.3
attribute_loot_condition-fabric-1.0.3.jar
21 Apr 2025
1.0.1
attribute_loot_condition-forge-1.0.1.jar
29 Aug 2024
1.0.1
attribute_loot_condition-fabric-1.0.1.jar
29 Aug 2024
1.0.0
attribute_loot_condition-forge-1.0.0.jar
25 Aug 2024
1.0.0
attribute_loot_condition-fabric-1.0.0.jar
25 Aug 2024
Looking for an older file? The official Modrinth project page is in Resources.