mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 19:54:44 +02:00
Added boosts to Fishing chance depending on conditions. Also, the
kraken, now with 100% more sound!
This commit is contained in:
@ -32,6 +32,7 @@ public final class Misc {
|
||||
public static final float POP_VOLUME = 0.2F;
|
||||
public static final float BAT_VOLUME = 1.0F;
|
||||
public static final float BAT_PITCH = 0.6F;
|
||||
public static final float GHAST_VOLUME = 1.0F;
|
||||
|
||||
private Misc() {};
|
||||
|
||||
@ -43,6 +44,10 @@ public final class Misc {
|
||||
return ((getRandom().nextFloat() - getRandom().nextFloat()) * 0.7F + 1.0F) * 2.0F;
|
||||
}
|
||||
|
||||
public static float getGhastPitch() {
|
||||
return (getRandom().nextFloat() - getRandom().nextFloat()) * 0.2F + 1.0F;
|
||||
}
|
||||
|
||||
public static boolean isNPCEntity(Entity entity) {
|
||||
return (entity == null || entity.hasMetadata("NPC") || (mcMMO.isCombatTagEnabled() && entity instanceof HumanEntity && ((HumanEntity) entity).getName().contains("PvpLogger")));
|
||||
}
|
||||
|
Reference in New Issue
Block a user