Add sounds to radiant totem and update sounds for ray of purification
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package electroblob.wizardry.entity.construct;
|
||||
|
||||
import electroblob.wizardry.Wizardry;
|
||||
import electroblob.wizardry.constants.Constants;
|
||||
import electroblob.wizardry.registry.Spells;
|
||||
import electroblob.wizardry.registry.WizardrySounds;
|
||||
import electroblob.wizardry.spell.RadiantTotem;
|
||||
import electroblob.wizardry.spell.Spell;
|
||||
import electroblob.wizardry.util.*;
|
||||
@@ -41,8 +43,8 @@ public class EntityRadiantTotem extends EntityScaledConstruct {
|
||||
@Override
|
||||
public void onUpdate(){
|
||||
|
||||
if(this.ticksExisted % 25 == 1){
|
||||
// TODO: Sound
|
||||
if(this.ticksExisted == 1){
|
||||
Wizardry.proxy.playMovingSound(this, WizardrySounds.ENTITY_RADIANT_TOTEM_AMBIENT, WizardrySounds.SPELLS, 1, 1, true);
|
||||
}
|
||||
|
||||
super.onUpdate();
|
||||
@@ -124,6 +126,12 @@ public class EntityRadiantTotem extends EntityScaledConstruct {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void despawn(){
|
||||
this.playSound(WizardrySounds.ENTITY_RADIANT_TOTEM_VANISH, 1, 1);
|
||||
super.despawn();
|
||||
}
|
||||
|
||||
// Usually damage multipliers don't need syncing, but here we're using it for the non-standard purpose of targeting
|
||||
|
||||
@Override
|
||||
|
||||
@@ -65,6 +65,8 @@ public final class WizardrySounds {
|
||||
public static final SoundEvent ENTITY_ICE_SPIKE_EXTEND = createSound("entity.ice_spike.extend");
|
||||
public static final SoundEvent ENTITY_LIGHTNING_SIGIL_TRIGGER = createSound("entity.lightning_sigil.trigger");
|
||||
public static final SoundEvent ENTITY_METEOR_FALLING = createSound("entity.meteor.falling");
|
||||
public static final SoundEvent ENTITY_RADIANT_TOTEM_AMBIENT = createSound("entity.radiant_totem.ambient");
|
||||
public static final SoundEvent ENTITY_RADIANT_TOTEM_VANISH = createSound("entity.radiant_totem.vanish");
|
||||
public static final SoundEvent ENTITY_SHIELD_DEFLECT = createSound("entity.shield.deflect");
|
||||
public static final SoundEvent ENTITY_TORNADO_AMBIENT = createSound("entity.tornado.ambient");
|
||||
public static final SoundEvent ENTITY_ZOMBIE_SPAWNER_SPAWN = createSound("entity.zombie_spawner.spawn");
|
||||
|
||||
Reference in New Issue
Block a user