Added separate handle and head traits for several materials, to specify them more.

This commit is contained in:
Robert Sosnitzka
2016-06-29 16:47:05 +02:00
parent 7944530375
commit b11e69af7c
9 changed files with 178 additions and 20 deletions

View File

@@ -20,7 +20,7 @@ public class TraitResonance extends AbstractTrait {
@Override
public void afterHit(ItemStack tool, EntityLivingBase player, EntityLivingBase target, float damage, boolean wasCritical, boolean wasHit) {
if (random.nextFloat() <= .33) {
target.knockBack(target, random.nextFloat() * random.nextFloat() * 10, player.posX - target.posX, player.posZ - target.posZ);
target.knockBack(target, random.nextFloat() * random.nextFloat() * 12, player.posX - target.posX, player.posZ - target.posZ);
}
}