Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package camellias_.fallout;
- import net.minecraft.block.Block;
- import net.minecraft.block.BlockRedstoneDiode;
- import net.minecraft.entity.Entity;
- import net.minecraft.entity.EntityLivingBase;
- import net.minecraft.entity.projectile.EntityThrowable;
- import net.minecraft.init.Blocks;
- import net.minecraft.nbt.NBTTagCompound;
- import net.minecraft.util.MovingObjectPosition;
- import net.minecraft.world.World;
- public class EntityNugget extends EntityThrowable
- {
- public EntityNugget(World world)
- {
- super(world);
- }
- public EntityNugget(World world, EntityLivingBase entity)
- {
- super(world, entity);
- }
- @Override
- public void onUpdate()
- {
- super.onUpdate();
- if (ticksExisted > 20)
- {
- }
- for (int i = 0; i < 10; i++)
- {
- double x = (double)(rand.nextInt(10) - 5) / 8.0D;
- double y = (double)(rand.nextInt(10) - 5) / 8.0D;
- double z = (double)(rand.nextInt(10) - 5) / 8.0D;
- worldObj.spawnParticle("fireworksSpark", posX, posY, posZ, x, y, z);
- }
- }
- @Override
- protected float getGravityVelocity()
- {
- return 0.005F;
- }
- public void onImpact1(MovingObjectPosition movingObjectPosition)
- {
- }
- @Override
- protected void onImpact(MovingObjectPosition p_70184_1_) {
- // TODO Auto-generated method stub
- }
- }
Add Comment
Please, Sign In to add comment