Hi, I'm currently coding an entity that I want to stop moving every time it attacks, but the entity attribute modifiers I'm trying to use don't work, and I'm trying to figure out how to utilize it correctly.
AttributeModifier STOP_MOVING = new AttributeModifier(
UUID.fromString("58c86a40-066f-4ec9-994b-843e81614a80"),
"STOP_MOVING", -0.2f,
AttributeModifier.Operation.ADDITION);
this.getAttribute(Attributes.MOVEMENT_SPEED).addPermanentModifier(STOP_MOVING);
that would be the relevant code for the issue I'm having, and I'm unsure where I'm doing it wrong, or where to receive better documentation.