Posted October 13, 201312 yr Ok I have a registered Entity which is spawning a Particle (EntityFX) like this FMLClientHandler.instance().getClient().getMinecraft().effectRenderer.addEffect(new EntitySpecialSmokeFX(this.worldObj, this.posX, this.posY, this.posZ, this.rand.nextGaussian() * 0.1D, this.motionY * (this.rand.nextGaussian() * 0.075D), this.rand.nextGaussian() * 0.1D)); That works fine but when I spawn the particles again (from another Entity) the particles that exist already despawn or becoming invisible(I dont know what exactly happen) but they are not visible any more. What can I do to fix that? (If you need code tell me which files you need) Thanks for answering! http://signaturecraft.us/signatures/eJwLKS3Iz0ktMzQxUdBV8M3MS00uSkwrUfDNT0lJLeJyzkhNzlbILy1RyK0Ei2XmpSsEFOVnpSaXKCiFwPWqF4Nki5W4EEJccMO4QlKLihIz8xSMuIxNuAy4jExNuQwBmXMmdA~~.png[/img]
October 15, 201312 yr That is strange, I'm using virtually same code (isn't the getMinecraft() redundant?) and it spawns particles normally. mnn.getNativeLang() != English If I helped you please click on the "thank you" button.
October 15, 201312 yr How much particles are beeing spawned exactly? Sounds like you are hitting the particle limit, try increasing it if it is not maxed out yet.
October 16, 201312 yr Author I am spawning 50 particles in a for loop when I do this the second time this happen. Where exactly is this limit and is it possible to expand it? (Sorry but I dont know very much about the particle engine and I dindnt work with it before) http://signaturecraft.us/signatures/eJwLKS3Iz0ktMzQxUdBV8M3MS00uSkwrUfDNT0lJLeJyzkhNzlbILy1RyK0Ei2XmpSsEFOVnpSaXKCiFwPWqF4Nki5W4EEJccMO4QlKLihIz8xSMuIxNuAy4jExNuQwBmXMmdA~~.png[/img]
October 16, 201312 yr If i remember correctly, the hard limit set in EffectRenderer is 4000 EntityFX per layer. Default EntityFX is on layer 0. You can override getFXLayer() to a different value to see if that fixes it.
October 17, 201312 yr Author The problem with getFXLayer() is that it doesen work if particleTextureIndex is set. http://signaturecraft.us/signatures/eJwLKS3Iz0ktMzQxUdBV8M3MS00uSkwrUfDNT0lJLeJyzkhNzlbILy1RyK0Ei2XmpSsEFOVnpSaXKCiFwPWqF4Nki5W4EEJccMO4QlKLihIz8xSMuIxNuAy4jExNuQwBmXMmdA~~.png[/img]
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.