mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Add sounds for the fairy
This commit is contained in:
parent
b7e119a57b
commit
135c8933fd
1 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue