Posted September 15, 201312 yr Is there a method that Forge has to wait x amount of seconds and continue as usual? Kain
September 15, 201312 yr Author I just want to make a fancy particle effect: public boolean onEntitySwing(EntityLivingBase entityLiving, ItemStack stack) { World world = entityLiving.worldObj; for(int x = 0; x < 10;x++) { world.spawnParticle("smoke", entityLiving.posX, entityLiving.posY + x, (entityLiving.posZ), 0.0D, 0.0D, 0.0D); } return false; } Trying to add a delay after the spawnParticle() method so that it gradually spawns the particles. Kain
September 17, 201312 yr Torches use tickRandomly, not sure if that might be something you could use: this.setTickRandomly(true); public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
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.