Fix squelch sound not playing for the slime spell
This commit is contained in:
@@ -13,6 +13,7 @@ import net.minecraft.entity.monster.EntitySlime;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.util.EnumParticleTypes;
|
||||
import net.minecraft.util.SoundEvent;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Vec3d;
|
||||
import net.minecraft.util.text.TextComponentTranslation;
|
||||
@@ -25,6 +26,11 @@ public class Slime extends SpellRay {
|
||||
addProperties(DURATION);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEvent[] createSounds(){
|
||||
return this.createSoundsWithSuffixes("shoot", "squelch");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean onEntityHit(World world, Entity target, Vec3d hit, EntityLivingBase caster, Vec3d origin, int ticksInUse, SpellModifiers modifiers){
|
||||
|
||||
|
||||
@@ -281,7 +281,7 @@
|
||||
"spell.shockwave": {"category": "spells", "sounds": ["ebwizardry:shockwave"]},
|
||||
"spell.silverfish_swarm": {"category": "spells", "sounds": ["random/fizz"]},
|
||||
"spell.sixth_sense": {"category": "spells", "sounds": ["mob/wither/shoot"]},
|
||||
"spell.slime": {"category": "spells", "sounds": ["ebwizardry:ice"]},
|
||||
"spell.slime.shoot": {"category": "spells", "sounds": ["ebwizardry:ice"]},
|
||||
"spell.slime.squelch": {"category": "spells", "sounds": ["mob/slime/attack1", "mob/slime/attack2"], "pitch": 0.5},
|
||||
"spell.slow_time": {"category": "spells", "sounds": ["portal/travel"]},
|
||||
"spell.smoke_bomb": {"category": "spells", "sounds": ["random/bow"]},
|
||||
|
||||
Reference in New Issue
Block a user