Posted February 19, 20223 yr I have effect that must disable entity's movement, but all methods i am trying use are'nt working. My code is: @Override public void performEffect(LivingEntity entity, int amplifier) { entity.moveForward = 0; entity.moveStrafing = 0; entity.moveVertical = 0; }
February 19, 20223 yr Author i did it like this: addAttributesModifier(Attributes.MOVEMENT_SPEED, "frozen", 0, AttributeModifier.Operation.MULTIPLY_TOTAL); but still does not work
February 19, 20223 yr Author @Override public void performEffect(LivingEntity entity, int amplifier) { addAttributesModifier(Attributes.MOVEMENT_SPEED, "frozen", 0, AttributeModifier.Operation.MULTIPLY_TOTAL); }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.