added snowball knockback
This commit is contained in:
@ -13,7 +13,7 @@ public class SnowballKnockbackListener extends ApplianceListener<SnowballKnockba
|
||||
if(!(event.getHitEntity() instanceof LivingEntity hitEntity)) return;
|
||||
|
||||
Entity snowball = event.getEntity();
|
||||
hitEntity.damage(0.0001);
|
||||
hitEntity.damage(0.1);
|
||||
hitEntity.knockback(0.4, -snowball.getVelocity().getX(), -snowball.getVelocity().getZ());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user