1
0
Fork 0
mirror of https://github.com/Sollace/Unicopia.git synced 2025-03-02 08:14:33 +01:00

Add a particle effect to the bubble spell projectile

This commit is contained in:
Sollace 2022-12-27 20:41:54 +01:00
parent 253962b5f3
commit 14a56adc35

View file

@ -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;
}