Back to mods
Attribute Loot Condition project artwork

CurseForge · Minecraft mod

Attribute Loot Condition

This mod adds a new type of loot condition.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Attribute Loot Condition release matches 1.21.2?

Updated 1 year ago
Best match for your filters attribute_loot_condition-neoforge-1.0.3.jar
Game version 1.21.5, 1.21.4, 1.21.3
Loader NeoForge

Attribute Loot Condition attribute_loot_condition-neoforge-1.0.3.jar targets 1.21.5, 1.21.4, 1.21.3 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is Attribute Loot Condition required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Attribute Loot Condition attribute_loot_condition-neoforge-1.0.3.jar need?

attribute_loot_condition-neoforge-1.0.3.jar on 1.21.2. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Attribute Loot Condition without breaking your instance.

Built for Attribute Loot Condition attribute_loot_condition-neoforge-1.0.3.jar on 1.21.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use attribute_loot_condition-neoforge-1.0.3.jar. It targets 1.21.5, 1.21.4, 1.21.3 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside attribute_loot_condition-neoforge-1.0.3.jar. It opens that exact file at the source.

About this project

What does Attribute Loot Condition add?

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.

Project description from CurseForge.

Pick your setup

Attribute Loot Condition by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

14 available setups

Check 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

2 of 8 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.