Add stormcloud spell

This commit is contained in:
Electroblob77
2020-05-18 20:41:41 +01:00
parent ebde514c98
commit 650344a0c8
11 changed files with 191 additions and 1 deletions
@@ -8,7 +8,6 @@ import electroblob.wizardry.item.SpellActions;
import electroblob.wizardry.spell.*;
import net.minecraft.entity.projectile.EntitySnowball;
import net.minecraft.init.MobEffects;
import net.minecraft.item.EnumAction;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.Mod;
@@ -239,6 +238,10 @@ public final class Spells {
public static final Spell slow_time = placeholder();
public static final Spell resurrection = placeholder();
// Wizardry 4.3 spells
public static final Spell stormcloud = placeholder();
@SubscribeEvent
public static void register(RegistryEvent.Register<Spell> event){
@@ -437,6 +440,11 @@ public final class Spells {
registry.register(new SpeedTime());
registry.register(new SlowTime());
registry.register(new Resurrection());
// Wizardry 4.3 spells
registry.register(new Stormcloud());
}
}
@@ -150,6 +150,7 @@ public class WizardryEntities {
registry.register(createEntry(EntityArrowRain.class, "arrow_rain", TrackingType.CONSTRUCT).build());
registry.register(createEntry(EntityEarthquake.class, "earthquake", TrackingType.CONSTRUCT).build());
registry.register(createEntry(EntityHailstorm.class, "hailstorm", TrackingType.CONSTRUCT).build());
registry.register(createEntry(EntityStormcloud.class, "stormcloud", TrackingType.CONSTRUCT).build());
// These ones move, velocity updates are sent if that's not at constant velocity
registry.register(createEntry(EntityShield.class, "shield") .tracker(160, 10, true).build());
@@ -86,6 +86,8 @@ public final class WizardrySounds {
public static final SoundEvent ENTITY_STORM_ELEMENTAL_WIND = createSound("entity.storm_elemental.wind");
public static final SoundEvent ENTITY_STORM_ELEMENTAL_HURT = createSound("entity.storm_elemental.hurt");
public static final SoundEvent ENTITY_STORM_ELEMENTAL_DEATH = createSound("entity.storm_elemental.death");
public static final SoundEvent ENTITY_STORMCLOUD_THUNDER = createSound("entity.stormcloud.thunder");
public static final SoundEvent ENTITY_STORMCLOUD_ATTACK = createSound("entity.stormcloud.attack");
public static final SoundEvent ENTITY_WIZARD_YES = createSound("entity.wizard.yes");
public static final SoundEvent ENTITY_WIZARD_NO = createSound("entity.wizard.no");
public static final SoundEvent ENTITY_WIZARD_AMBIENT = createSound("entity.wizard.ambient");