content: //package org.devoxx4kids.forge.mods;
  //
  //import net.minecraft.entity.player.EntityPlayer;
  //import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent;
  //import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
  //
  //public class Parachute {
  //	@SubscribeEvent
  //	public void deployParachute(LivingUpdateEvent event) {
  //		if (!(event.entity instanceof EntityPlayer)) {
  //			return;
  //		}
  //		if (!((EntityPlayer) event.entity).isAirBorne
  //				|| !((EntityPlayer) event.entity).isSneaking()) {
  //			return;
  //		}
  //		event.entity.motionY = -0.05;
  //		event.entity.fallDistance = -10;
  //	}
  //}
  package org.devoxx4kids.forge.mods;
  
  import net.minecraft.entity.player.EntityPlayer;
  import net.minecraftforge.event.entity.living.LivingFallEvent;
  import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
  import net.minecraftforge.fml.common.gameevent.TickEvent.PlayerTickEvent;
  
  public class Parachute {
  	@SubscribeEvent
  	public void deployParachute(PlayerTickEvent event) {
  		EntityPlayer player = event.player;
  		if (!player.isAirBorne || !player.isSneaking()) {
  			return;
  		}
  		player.motionY = -0.05;
  	}
  
  	@SubscribeEvent
  	public void negateFallDamage(LivingFallEvent event) {
  		if (!(event.entity instanceof EntityPlayer)) {
  			return;
  		}
  
  		EntityPlayer player = (EntityPlayer) event.entity;
  
  		if (!player.isSneaking()) {
  			return;
  		}
  
  		event.setCanceled(true);
  	}
  }