Add radiant totem spell

This commit is contained in:
Electroblob77
2020-06-26 17:46:47 +01:00
parent 1ea6355a9e
commit 080022127c
29 changed files with 351 additions and 56 deletions
@@ -0,0 +1,24 @@
package electroblob.wizardry.spell;
import electroblob.wizardry.entity.construct.EntityRadiantTotem;
import electroblob.wizardry.util.SpellModifiers;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.EnumFacing;
import javax.annotation.Nullable;
public class RadiantTotem extends SpellConstructRanged<EntityRadiantTotem> {
public static final String MAX_TARGETS = "max_targets";
public RadiantTotem(){
super("radiant_totem", EntityRadiantTotem::new, false);
this.addProperties(EFFECT_RADIUS, MAX_TARGETS, HEALTH, DAMAGE, BURN_DURATION);
this.floor(false);
}
@Override
protected void addConstructExtras(EntityRadiantTotem construct, EnumFacing side, @Nullable EntityLivingBase caster, SpellModifiers modifiers){
construct.posY += 1.2;
}
}