Posted May 31, 20178 yr Spoiler @Override @SideOnly(Side.CLIENT) public void onUpdate() { if(!world.isRemote) { if (ticksExisted % 2 == 0) { double motionX = rand.nextGaussian() * 0.02D; double motionY = rand.nextGaussian() * 0.02D; double motionZ = rand.nextGaussian() * 0.02D; double decidedX = posX + rand.nextFloat() * width * 2.0F - width; double decidedY = posY + 0.5D + rand.nextFloat() * height; double decidedZ = posZ + rand.nextFloat() * width * 2.0F - width; world.spawnParticle( EnumParticleTypes.FLAME, decidedX, decidedY, decidedZ, motionX, motionY, motionZ, new int[0]); System.out.println(decidedX + ", " + decidedY + ", " + decidedZ); } } super.onUpdate(); } Code shown above for the particle spawning. The "println" actually is called correctly and the X,Y,Z location is exactly correct for where I want to see the particles, yet they do not appear. public class SoulDustEntity extends EntityItem { This is being ran on a custom Entity Item that is created correctly when a custom item is thrown. The custom item is deleted instantly and replaced with this custom EntityItem which has the onUpdate method in it above to spawn particles around the item. I have checked my Minecraft settings to check if particles are enabled. I've tried without the "isRemote" code, and with, and checking for remote and not-remote. I've tired removing the "@SideOnly" too. I've been stuck on this for a week and checked so many threads. Any help I would love, thank you. ------------SOLVED------------------------- Minecraft MINECRAFT = Minecraft.getMinecraft(); Made a spawn particle handler inside of my client proxy class @Override public void spawnParticle(EnumParticleTypes particleType, double xCoord, double yCoord, double zCoord, double xSpeed, double ySpeed, double zSpeed) { MINECRAFT.world.spawnParticle(particleType, xCoord, yCoord, zCoord, xSpeed, ySpeed, zSpeed); } Edited May 31, 20178 yr by Elliot Format
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.