Guest User

EntityGrenadeEffect

a guest
Jan 5th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. package com.Looke81.BioWarfare.entity;
  2.  
  3. import net.minecraft.client.particle.EntityFX;
  4. import net.minecraft.entity.Entity;
  5. import net.minecraft.entity.EntityLivingBase;
  6. import net.minecraft.entity.monster.EntityMob;
  7. import net.minecraft.entity.projectile.EntityThrowable;
  8. import net.minecraft.nbt.NBTTagCompound;
  9. import net.minecraft.util.MovingObjectPosition;
  10. import net.minecraft.world.World;
  11.  
  12. public class EntityGrenadeEffect extends EntityMob {
  13.  
  14. public EntityGrenadeEffect(World p_i1738_1_) {
  15. super(p_i1738_1_);
  16. // TODO Auto-generated constructor stub
  17. }
  18.  
  19. public void onUpdate() {
  20. this.worldObj.spawnParticle("snowshovel", this.posX, this.posY, this.posZ, 0.0F, 0.0F, 0.0F);
  21. this.worldObj.spawnParticle("snowshovel", this.posX + 1, this.posY, this.posZ, 0.0F, 0.0F, 0.0F);
  22. this.worldObj.spawnParticle("snowshovel", this.posX, this.posY + 1, this.posZ, 0.0F, 0.0F, 0.0F);
  23. this.worldObj.spawnParticle("snowshovel", this.posX, this.posY, this.posZ + 1, 0.0F, 0.0F, 0.0F);
  24. this.worldObj.spawnParticle("snowshovel", this.posX + 1, this.posY + 1, this.posZ, 0.0F, 0.0F, 0.0F);
  25. this.worldObj.spawnParticle("snowshovel", this.posX, this.posY + 1, this.posZ + 1, 0.0F, 0.0F, 0.0F);
  26. this.worldObj.spawnParticle("snowshovel", this.posX + 1, this.posY + 1, this.posZ, 0.0F, 0.0F, 0.0F);
  27. this.worldObj.spawnParticle("snowshovel", this.posX + 1, this.posY + 1, this.posZ + 1, 0.0F, 0.0F, 0.0F);
  28. if (this.ticksExisted == 100) {
  29. this.setDead();
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment