added snowball knockback
This commit is contained in:
parent
87870c96f7
commit
7a15984f19
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user