SHARE
TWEET

EntityNugget.java

Camellias_ Jul 5th, 2017 19 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package camellias_.fallout;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.block.BlockRedstoneDiode;
  5. import net.minecraft.entity.Entity;
  6. import net.minecraft.entity.EntityLivingBase;
  7. import net.minecraft.entity.projectile.EntityThrowable;
  8. import net.minecraft.init.Blocks;
  9. import net.minecraft.nbt.NBTTagCompound;
  10. import net.minecraft.util.MovingObjectPosition;
  11. import net.minecraft.world.World;
  12.  
  13.  
  14.     public class EntityNugget extends EntityThrowable
  15.     {
  16.      
  17.         public EntityNugget(World world)
  18.         {
  19.             super(world);
  20.         }
  21.      
  22.         public EntityNugget(World world, EntityLivingBase entity)
  23.         {
  24.             super(world, entity);
  25.         }
  26.      
  27.         @Override
  28.         public void onUpdate()
  29.         {
  30.             super.onUpdate();
  31.             if (ticksExisted > 20)
  32.             {
  33.             }
  34.      
  35.             for (int i = 0; i < 10; i++)
  36.             {
  37.                 double x = (double)(rand.nextInt(10) - 5) / 8.0D;
  38.                 double y = (double)(rand.nextInt(10) - 5) / 8.0D;
  39.                 double z = (double)(rand.nextInt(10) - 5) / 8.0D;
  40.                 worldObj.spawnParticle("fireworksSpark", posX, posY, posZ, x, y, z);
  41.             }
  42.         }
  43.      
  44.         @Override
  45.         protected float getGravityVelocity()
  46.         {
  47.             return 0.005F;
  48.         }
  49.      
  50.         public void onImpact1(MovingObjectPosition movingObjectPosition)
  51.         {
  52.         }
  53.  
  54.         @Override
  55.         protected void onImpact(MovingObjectPosition p_70184_1_) {
  56.             // TODO Auto-generated method stub
  57.            
  58.         }
  59.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top