Mechanic

attributeModifier

Adds an attribute modifier to the attributable target

Configuration Fields (5)

NameTypeDefaultDescription
attribute
attr
AttributeGENERIC_LUCKThe attribute to modify.
operation
op
AttributeModifier.OperationADD_NUMBERThe operation to perform for the attribute modifier.
name
modifierName
PlaceholderString<caster.uuid>The name of the attribute modifier.
amount
amt, a
PlaceholderDouble0The amount to modify the attribute.
duration
dur
PlaceholderDuration0The duration of the attribute modifier in ticks.

Examples & Notes

Examples

ExampleMob:
  Type: ZOMBIE
  Skills:
  - attributeModifier{attribute=GENERIC_LUCK;a=2;dur=1200;op=ADD_NUMBER} @trigger ~onDeath

Universal Mechanic Options

Community-maintained documentation for the Mythic plugin ecosystem.