code: public static void spawnEjectedItem(World world, BlockPos pos, ItemStack itemStack)
  	{
  		if (itemStack == null || world.isRemote)
  			return;
  
  		float rx = world.rand.nextFloat() * 0.8F + 0.1F;
  		float ry = world.rand.nextFloat() * 0.8F + 0.1F;
  		float rz = world.rand.nextFloat() * 0.8F + 0.1F;
  
  		EntityItem entityItem = new EntityItem(world, pos.getX() + rx, pos.getY() + ry, pos.getZ() + rz, itemStack);
  
  		float factor = 0.05F;
  		entityItem.motionX = world.rand.nextGaussian() * factor;
  		entityItem.motionY = world.rand.nextGaussian() * factor + 0.2F;
  		entityItem.motionZ = world.rand.nextGaussian() * factor;
  		world.spawnEntity(entityItem);
  
  	}
docs: Eject a new item corresponding to the {@link ItemStack}.
  
  @param world the world
  @param pos the pos
  @param itemStack the item stack