Attribute Loot Condition

Attribute Loot Condition

This mod adds a new type of loot condition.

by
742 Downloads
fabricforgeneoforgegame-mechanics
Rent Server with this Mod

About this Mod

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

Available Versions

Attribute Loot Condition 1.0.2release
MC 1.21, 1.21.1fabric
April 21, 2025
Attribute Loot Condition 1.0.2release
MC 1.21, 1.21.1neoforge
April 21, 2025
Attribute Loot Condition 1.0.3release
MC 1.21.2, 1.21.3, 1.21.4, 1.21.5neoforge
April 21, 2025
Attribute Loot Condition 1.0.3release
MC 1.21.2, 1.21.3, 1.21.4, 1.21.5fabric
April 21, 2025
Attribute Loot Condition 1.0.1release
MC 1.20.1forge
August 29, 2024

How to Install Attribute Loot Condition on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.5).

3

Install Mod

Open the mod browser in the dashboard and search for "Attribute Loot Condition". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricforgeneoforge

Minecraft Versions

1.21.5, 1.21.4, 1.21.3 (+4 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Attribute Loot Condition server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.5). You can switch loaders with one click in the panel.

Is Attribute Loot Condition compatible with fabric and forge and neoforge?

Attribute Loot Condition officially supports fabric, forge, neoforge for Minecraft 1.21.5, 1.21.4, 1.21.3. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Attribute Loot Condition – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Attribute Loot Condition consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Attribute Loot Condition with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v2.1 only
Server-side
Required

Supported Versions

1.21.51.21.41.21.31.21.21.21.11.211.20.1