Summon amount limits and new ability

This commit is contained in:
TfT_02
2013-09-17 00:55:38 +02:00
parent eda38cba66
commit c31281971c
13 changed files with 111 additions and 33 deletions

View File

@@ -147,6 +147,8 @@ public final class CombatUtils {
tamingManager.fastFoodService(wolf, event.getDamage());
}
tamingManager.pummel(target, wolf);
if (tamingManager.canUseSharpenedClaws()) {
finalDamage += tamingManager.sharpenedClaws();
}

View File

@@ -34,8 +34,12 @@ public final class ParticleEffectUtils {
return;
}
Location location = player.getEyeLocation();
World world = player.getWorld();
playSmokeEffect(player);
}
public static void playSmokeEffect(LivingEntity livingEntity) {
Location location = livingEntity.getEyeLocation();
World world = livingEntity.getWorld();
// Have to do it this way, because not all block directions are valid for smoke
world.playEffect(location, Effect.SMOKE, BlockFace.SOUTH_EAST);