Attribute Modify Transfer
Transfers the value of an attribute modifier from a specified attribute to a specified power class that extends the ValueModifyingPower
super-class.
Type ID: origins:attribute_modify_transfer
Note
Refer to the Minecraft Wiki: Attribute page for a list of vanilla attributes that you can get the value from.
Fields
Field | Type | Default | Description |
---|---|---|---|
class |
Identifier | The ID of the class to transfer the value of an attribute modifier to. See Value Modifying Power Classes for possible values. | |
attribute |
Identifier | The namespace and ID of the attribute to get the value from. | |
multiplier |
Float | 1.0 |
Determines the multiplier for the value. |
Examples
{
"type": "origins:attribute_modify_transfer",
"class": "modify_break_speed",
"attribute": "minecraft:generic.movement_speed",
"multiplier": 1.25
}
This example will transfer the value of the attribute modifier for the minecraft:generic.movement_speed
attribute to the modify_break_speed
(io.github.apace100.apoli.power.ModifyBreakSpeedPower
) class, essentially giving the player mining speed boost if the player's movement speed is quite high.