Mechanic

attribute

Sets the mob's attribute

Aliases

setAttribute

Configuration Fields (3)

NameTypeDefaultDescription
attribute
attr
StringGENERIC_LUCKThe attribute to modify.
amount
amt, a
PlaceholderDouble0The amount by which to modify the attribute.
duration
dur
PlaceholderDuration0The duration of the attribute modification in ticks.

Examples & Notes

Examples

ExampleMob:
  Type: ZOMBIE
  Skills:
  - attribute{attribute=GENERIC_LUCK;a=2;duration=1200} @trigger ~onDeath

Universal Mechanic Options

Mentioned by

Community-maintained documentation for the Mythic plugin ecosystem.