diff --git a/src/main/java/com/uraneptus/sullysmod/common/blocks/AmberBlock.java b/src/main/java/com/uraneptus/sullysmod/common/blocks/AmberBlock.java index 2b6b5761..5008fd9d 100644 --- a/src/main/java/com/uraneptus/sullysmod/common/blocks/AmberBlock.java +++ b/src/main/java/com/uraneptus/sullysmod/common/blocks/AmberBlock.java @@ -7,6 +7,7 @@ import com.uraneptus.sullysmod.core.other.tags.SMBlockTags; import com.uraneptus.sullysmod.core.registry.SMBlocks; import net.minecraft.core.BlockPos; +import net.minecraft.core.particles.BlockParticleOption; import net.minecraft.core.particles.ParticleTypes; import net.minecraft.nbt.CompoundTag; import net.minecraft.util.Mth; @@ -202,7 +203,7 @@ else if (mob.getBoundingBox().getYsize() < 3.5F) { RandomSource randomsource = pLevel.getRandom(); boolean flag = pEntity.xOld != pEntity.getX() || pEntity.zOld != pEntity.getZ(); if (flag && randomsource.nextBoolean()) { - pLevel.addParticle(ParticleTypes.SOUL_FIRE_FLAME, pEntity.getX(), pPos.getY() + 1, pEntity.getZ(), Mth.randomBetween(randomsource, -1.0F, 1.0F) * 0.083333336F, 0.05F, Mth.randomBetween(randomsource, -1.0F, 1.0F) * 0.083333336F); + pLevel.addParticle(new BlockParticleOption(ParticleTypes.BLOCK, SMBlocks.AMBER.get().defaultBlockState()), pEntity.getX(), pPos.getY() + 1, pEntity.getZ(), Mth.randomBetween(randomsource, -1.0F, 1.0F) * 0.083333336F, 0.05F, Mth.randomBetween(randomsource, -1.0F, 1.0F) * 0.083333336F); } } } diff --git a/src/main/java/com/uraneptus/sullysmod/core/registry/SMParticleTypes.java b/src/main/java/com/uraneptus/sullysmod/core/registry/SMParticleTypes.java index 3815ae0c..a3eac921 100644 --- a/src/main/java/com/uraneptus/sullysmod/core/registry/SMParticleTypes.java +++ b/src/main/java/com/uraneptus/sullysmod/core/registry/SMParticleTypes.java @@ -16,6 +16,4 @@ public class SMParticleTypes { public static final RegistryObject RICOCHET = PARTICLES.register("ricochet", () -> new ParticleWithDirectionType(false)); public static final RegistryObject BLOT_EYES = PARTICLES.register("blot_eyes", () -> new SimpleParticleType(false)); - - }