Mineuniverse
Mods
Attribute Loot Condition

Attribute Loot Condition

MOD
This mod adds a new type of loot condition.
by Karashok_Leo
Download Claim this project
523 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Mobs Server Utility
Advertisement Remove ads with Premium →

Attribute Loot Condition

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

attribute_loot_condition-fabric-1.0.2.jar
MC 1.21, Fabric, Client, 1.21.1, Server
Release 2025-04-21 Get
attribute_loot_condition-neoforge-1.0.2.jar
MC 1.21, Client, NeoForge, 1.21.1, Server
Release 2025-04-21 Get
attribute_loot_condition-neoforge-1.0.3.jar
MC 1.21.5, Client, 1.21.4, NeoForge, 1.21.3, Server, 1.21.2
Release 2025-04-21 Get
attribute_loot_condition-fabric-1.0.3.jar
MC 1.21.5, Fabric, Client, 1.21.4, 1.21.3, Server, 1.21.2
Release 2025-04-21 Get
attribute_loot_condition-fabric-1.0.1.jar
MC Fabric, Client, 1.20.1, Server
Release 2024-08-29 Get
attribute_loot_condition-forge-1.0.1.jar
MC Client, 1.20.1, Forge, Server
Release 2024-08-29 Get
attribute_loot_condition-fabric-1.0.0.jar
MC Fabric, Client, 1.20.1, Server
Release 2024-08-25 Get
attribute_loot_condition-forge-1.0.0.jar
MC Client, 1.20.1, Forge, Server
Release 2024-08-25 Get

More from Karashok_Leo

Advertisement Remove ads with Premium →

You Might Also Like