addAttributeModify

fun addAttributeModify(entity: LivingEntity, attribute: Holder<Attribute>, modifier: AttributeModifier)

Add a transient attribute modifier to an entity.

Parameters

entity

the entity

attribute

attribute holder to modify

modifier

AttributeModifier to add