added snowball knockback

This commit is contained in:
Lars Neuhaus 2024-09-27 23:35:01 +02:00
parent 87870c96f7
commit 7a15984f19

View File

@ -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());
}
}