Mod
Attribute Loot Condition
No reviews yet
This mod adds a new type of loot condition.
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Neoforge is a fork of the Minecraft Forge available for versions 1.20.1+ of Minecraft. Many Forge mods are compatible with Neoforge and vice versa.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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.
🪄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.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers