Skip to content

Instantly share code, notes, and snippets.

@codahq
Created June 5, 2015 05:10
Show Gist options
  • Save codahq/bf21640107959ad73bf4 to your computer and use it in GitHub Desktop.
Save codahq/bf21640107959ad73bf4 to your computer and use it in GitHub Desktop.
//tell the client to spawn particles
Iterator iterator = this.worldObj.playerEntities.iterator();
while (iterator.hasNext())
{
EntityPlayer entityplayer = (EntityPlayer)iterator.next();
if (entityplayer.getDistanceSq(mop.entityHit.posX, mop.entityHit.posY, mop.entityHit.posZ) < 4096.0D)
{
MessageSpawnParticles message = new MessageSpawnParticles(ParticleType.HEALSINGLE, entityHit.posX, entityHit.posY, entityHit.posZ, 1);
Pearlmod.network.sendTo(message, (EntityPlayerMP)entityplayer);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment