-
[1.12.2] Particles won't spawn
Yes and I did just that. Got it working we're all good here.
-
[1.12.2] Particles won't spawn
Fixed the problem... The server kept running spawnParticle on the server side. I made a packet that would send the data to the client.
-
[1.12.2] Particles won't spawn
I tried that but it still doesn't change anything...
-
[1.12.2] Particles won't spawn
https://github.com/Toby2449/Water-s-Elements/blob/master/src/main/java/com/water/elementmod/items/weapons/FireSword.java
-
[1.12.2] Particles won't spawn
I've tried using @SideOnly(Side.CLIENT) and world.isRemote on FireParticleEffect but they both don't change anything.
-
[1.12.2] Particles won't spawn
@Override public boolean hitEntity(ItemStack stack, EntityLivingBase target, EntityLivingBase attacker) { target.setFire(getFireDuration(true, false)); stack.damageItem(1, attacker); FireParticleEffect(target); return true; } It's inside an ItemSword class
- [1.12.2] Particles won't spawn
-
[1.12.2] Particles won't spawn
Not sure why these particles are not spawning. public boolean FireParticleEffect(EntityLivingBase target) { World world = target.getEntityWorld(); for(int countparticles = 0; countparticles <= 7 * this.level / 2; ++countparticles) { Random rand = new Random(); world.spawnParticle(EnumParticleTypes.FLAME, target.posX + (rand.nextDouble() - 0.5D) * (double)target.width, target.posY + rand.nextDouble() * (double)target.height - (double)target.getYOffset(), target.posZ + (rand.nextDouble() - 0.5D) * (double)target.width, 0.0D, 0.0D,0.0D); } for(int countparticles = 0; countparticles <= 20 * this.level / 2; ++countparticles) { Random rand = new Random(); world.spawnParticle(EnumParticleTypes.LAVA, target.posX + (rand.nextDouble() - 0.5D) * (double)target.width, target.posY + rand.nextDouble() * (double)target.height - (double)target.getYOffset(), target.posZ + (rand.nextDouble() - 0.5D) * (double)target.width, 0.0D, 0.0D,0.0D); } return true; } Any ideas?
IPS spam blocked by CleanTalk.