Add withering totem spell

This commit is contained in:
Electroblob77
2020-08-21 00:08:31 +01:00
parent 6cdff07180
commit ba487bea41
12 changed files with 403 additions and 0 deletions
@@ -0,0 +1,25 @@
package electroblob.wizardry.spell;
import electroblob.wizardry.entity.construct.EntityWitheringTotem;
import electroblob.wizardry.util.SpellModifiers;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.EnumFacing;
import javax.annotation.Nullable;
public class WitheringTotem extends SpellConstructRanged<EntityWitheringTotem> {
public static final String MAX_TARGETS = "max_targets";
public static final String MAX_EXPLOSION_DAMAGE = "max_explosion_damage";
public WitheringTotem(){
super("withering_totem", EntityWitheringTotem::new, false);
this.addProperties(EFFECT_RADIUS, MAX_TARGETS, DAMAGE, MAX_EXPLOSION_DAMAGE, EFFECT_DURATION, EFFECT_STRENGTH);
this.floor(false);
}
@Override
protected void addConstructExtras(EntityWitheringTotem construct, EnumFacing side, @Nullable EntityLivingBase caster, SpellModifiers modifiers){
construct.posY += 1.2;
}
}