Fix squelch sound not playing for the slime spell

This commit is contained in:
Electroblob77
2020-06-13 17:24:41 +01:00
parent 9dbdd2b830
commit 57e96458d5
2 changed files with 7 additions and 1 deletions
@@ -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"]},