Jump to content

WateR

Members
  • Posts

    8
  • Joined

  • Last visited

WateR's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Yes and I did just that. Got it working we're all good here.
  2. Fixed the problem... The server kept running spawnParticle on the server side. I made a packet that would send the data to the client.
  3. I tried that but it still doesn't change anything...
  4. https://github.com/Toby2449/Water-s-Elements/blob/master/src/main/java/com/water/elementmod/items/weapons/FireSword.java
  5. I've tried using @SideOnly(Side.CLIENT) and world.isRemote on FireParticleEffect but they both don't change anything.
  6. @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
  7. 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?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.