-
Notifications
You must be signed in to change notification settings - Fork 1
Attribute Entry
fzzyhmstrs edited this page Nov 18, 2024
·
1 revision
Grants the player a temporary (until next relog, dimension change, or death) or permanent stat boost.
| Key | Type | Value Example | Note |
|---|---|---|---|
"type" |
String |
"lootables:attribute" |
|
"attribute" |
String |
"minecraft:generic.armor" |
|
"value" |
Number |
1.0 |
The numerical adder to apply per the formulas in the Minecraft wiki. [Attribute Modifiers Explanation](https://minecraft.fandom.com/wiki/Attribute#Modifiers) |
"operation" |
String or Number |
"add_value"
"add_mutliplied_base",
"add_multiplied_total"0
1
2 |
Optional, default "add_value" / 0 The numerical adder to apply per the formulas in the Minecraft wiki. Attribute Modifiers Explanation |
"persistent" |
Boolean |
true |
Optional, default false Whether the attribute will "fall off" after leaving the game, dying, or switching dimensions (default), or will be a permanent buff. |
A typical attribute entry, with persistence
{
"type": "lootables:attribute",
"attribute": "minecraft:generic.attack_damage",
"value": 1.0,
"operation": "add_value",
"persistent": true
}If you are using add_value and don't want persistence, those can be left off.
{
"type": "lootables:attribute",
"attribute": "minecraft:generic.attack_damage",
"value": 1.0
}