From 19d892ac50bd94d90afecaf8095c6d4363ec9c67 Mon Sep 17 00:00:00 2001 From: Provismet <17149901+Provismet@users.noreply.github.com> Date: Sun, 14 Jul 2024 20:44:58 +0100 Subject: [PATCH] Gale projectiles use the new wind burst particle. --- .../AdditionalArmoury/entity/WindTornadoSpellEntity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/provismet/AdditionalArmoury/entity/WindTornadoSpellEntity.java b/src/main/java/com/provismet/AdditionalArmoury/entity/WindTornadoSpellEntity.java index b537c61..ff06bc0 100644 --- a/src/main/java/com/provismet/AdditionalArmoury/entity/WindTornadoSpellEntity.java +++ b/src/main/java/com/provismet/AdditionalArmoury/entity/WindTornadoSpellEntity.java @@ -1,5 +1,8 @@ package com.provismet.AdditionalArmoury.entity; +import net.minecraft.particle.ParticleTypes; +import net.minecraft.server.world.ServerWorld; +import net.minecraft.util.math.Vec3d; import org.jetbrains.annotations.NotNull; import com.provismet.AdditionalArmoury.registries.AAEntityTypes; @@ -40,6 +43,9 @@ public void onEntityHit (EntityHitResult entityHitResult) { double dz = this.getOwner().getZ() - living.getZ(); living.takeKnockback(2.0, dx, dz); living.addVelocity(0, 0.1, 0); + + if (this.getWorld() instanceof ServerWorld serverWorld) + serverWorld.spawnParticles(ParticleTypes.GUST,this.getX(), this.getY() + this.getHeight() / 2f, this.getZ(), 1, 0, 0, 0, 0); } }