From 14a56adc35d9c7a5330100e33e2bbf8683125c95 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 27 Dec 2022 20:41:54 +0100 Subject: [PATCH] Add a particle effect to the bubble spell projectile --- .../unicopia/ability/magic/spell/effect/BubbleSpell.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/BubbleSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/BubbleSpell.java index 80bde7b8..323e8555 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/BubbleSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/BubbleSpell.java @@ -22,6 +22,7 @@ import net.minecraft.entity.LivingEntity; import net.minecraft.entity.attribute.*; import net.minecraft.entity.attribute.EntityAttributeModifier.Operation; import net.minecraft.nbt.NbtCompound; +import net.minecraft.particle.ParticleTypes; import net.minecraft.sound.SoundEvents; import net.minecraft.util.hit.EntityHitResult; import net.minecraft.util.math.MathHelper; @@ -94,6 +95,8 @@ public class BubbleSpell extends AbstractSpell implements TimedSpell, public boolean tick(Caster source, Situation situation) { if (situation == Situation.PROJECTILE) { + + source.spawnParticles(ParticleTypes.BUBBLE, 2); return true; }