From 135c8933fd5ef9e1e849f289fa1eaf044c25aee5 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 27 Dec 2021 13:04:50 +0200 Subject: [PATCH] Add sounds for the fairy --- .../unicopia/entity/FairyEntity.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/FairyEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/FairyEntity.java index ce42c4fd..db3137b6 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/FairyEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/FairyEntity.java @@ -28,6 +28,8 @@ import net.minecraft.entity.mob.PathAwareEntity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.nbt.NbtCompound; import net.minecraft.nbt.NbtHelper; +import net.minecraft.sound.SoundEvent; +import net.minecraft.sound.SoundEvents; import net.minecraft.util.ActionResult; import net.minecraft.util.Hand; import net.minecraft.util.math.BlockPos; @@ -75,6 +77,18 @@ public class FairyEntity extends PathAwareEntity implements LightEmittingEntity, goalSelector.add(7, new WanderAroundGoal(this, 1)); } + @Override + @Nullable + protected SoundEvent getHurtSound(DamageSource source) { + return SoundEvents.ENTITY_BAT_HURT; + } + + @Override + @Nullable + protected SoundEvent getDeathSound() { + return SoundEvents.ENTITY_BAT_DEATH; + } + @Override public int getLightLevel() { return 15;