Program: 130704
Project: 130704
Buggy source:
public ItemStack onItemRightClick(ItemStack var1,World var2,EntityPlayer var3){
  boolean var4=var3.capabilities.isCreativeMode;
  if (!var4 && !var3.inventory.hasItem(TwilightItemsOther.wildWoodDust)) {
    return var1;
  }
 else {
    if (var1.getItem() == TwilightItemsWeapons.wildwoodBlitz) {
      if (!var2.isRemote) {
        var2.playSoundAtEntity(var3,sound,1.0F,1.0F);
        var2.spawnEntityInWorld(new EntityBlitzWildWood(var2,var3));
      }
      var3.inventory.consumeInventoryItem(TwilightItemsOther.wildWoodDust);
    }
  }
  if (!var4 && !var3.inventory.hasItem(TwilightItemsOther.mortumDust)) {
    return var1;
  }
 else {
    if (var1.getItem() == TwilightItemsWeapons.haliteBlitz) {
      if (!var2.isRemote) {
        var2.playSoundAtEntity(var3,sound,1.0F,1.0F);
        var2.spawnEntityInWorld(new EntityBlitzHalite(var2,var3));
      }
      var3.inventory.consumeInventoryItem(TwilightItemsOther.mortumDust);
    }
    if (var1.getItem() == TwilightItemsWeapons.mortumBlitz) {
      if (!var2.isRemote) {
        var2.playSoundAtEntity(var3,sound,1.0F,1.0F);
        var2.spawnEntityInWorld(new EntityBlitzMortum(var2,var3));
      }
      var3.inventory.consumeInventoryItem(TwilightItemsOther.mortumDust);
    }
  }
  if (!var4 && !var3.inventory.hasItem(TwilightItemsOther.apalachiaDust)) {
    return var1;
  }
 else {
    if (var1.getItem() == TwilightItemsWeapons.apalachiaBlitz) {
      if (!var2.isRemote) {
        var2.playSoundAtEntity(var3,sound,1.0F,1.0F);
        var2.spawnEntityInWorld(new EntityBlitzAlapachia(var2,var3));
      }
      var3.inventory.consumeInventoryItem(TwilightItemsOther.apalachiaDust);
    }
  }
  if (!var4 && !var3.inventory.hasItem(TwilightItemsOther.skythernDust)) {
    return var1;
  }
 else {
    if (var1.getItem() == TwilightItemsWeapons.skythernBlitz) {
      if (!var2.isRemote) {
        var2.playSoundAtEntity(var3,sound,1.0F,1.0F);
        var2.spawnEntityInWorld(new EntityBlitzSkythern(var2,var3));
      }
      var3.inventory.consumeInventoryItem(TwilightItemsOther.skythernDust);
    }
  }
  if (!var4 && !var3.inventory.hasItem(TwilightItemsOther.edenDust)) {
    return var1;
  }
 else {
    if (var1.getItem() == TwilightItemsWeapons.edenBlitz) {
      if (!var2.isRemote) {
        var2.playSoundAtEntity(var3,sound,1.0F,1.0F);
        var2.spawnEntityInWorld(new EntityBlitzEden(var2,var3));
      }
      var3.inventory.consumeInventoryItem(TwilightItemsOther.edenDust);
    }
  }
  var1.damageItem(1,var3);
  return var1;
}

Fixed version (ground truth):
public ItemStack onItemRightClick(ItemStack var1,World var2,EntityPlayer var3){
  boolean var4=var3.capabilities.isCreativeMode;
  if (!var4 && !var3.inventory.hasItem(TwilightItemsOther.wildwoodDust)) {
    return var1;
  }
 else {
    if (var1.getItem() == TwilightItemsWeapons.wildwoodBlitz) {
      if (!var2.isRemote) {
        var2.playSoundAtEntity(var3,sound,1.0F,1.0F);
        var2.spawnEntityInWorld(new EntityBlitzWildWood(var2,var3));
      }
      var3.inventory.consumeInventoryItem(TwilightItemsOther.wildwoodDust);
    }
  }
  if (!var4 && !var3.inventory.hasItem(TwilightItemsOther.mortumDust)) {
    return var1;
  }
 else {
    if (var1.getItem() == TwilightItemsWeapons.haliteBlitz) {
      if (!var2.isRemote) {
        var2.playSoundAtEntity(var3,sound,1.0F,1.0F);
        var2.spawnEntityInWorld(new EntityBlitzHalite(var2,var3));
      }
      var3.inventory.consumeInventoryItem(TwilightItemsOther.mortumDust);
    }
    if (var1.getItem() == TwilightItemsWeapons.mortumBlitz) {
      if (!var2.isRemote) {
        var2.playSoundAtEntity(var3,sound,1.0F,1.0F);
        var2.spawnEntityInWorld(new EntityBlitzMortum(var2,var3));
      }
      var3.inventory.consumeInventoryItem(TwilightItemsOther.mortumDust);
    }
  }
  if (!var4 && !var3.inventory.hasItem(TwilightItemsOther.apalachiaDust)) {
    return var1;
  }
 else {
    if (var1.getItem() == TwilightItemsWeapons.apalachiaBlitz) {
      if (!var2.isRemote) {
        var2.playSoundAtEntity(var3,sound,1.0F,1.0F);
        var2.spawnEntityInWorld(new EntityBlitzAlapachia(var2,var3));
      }
      var3.inventory.consumeInventoryItem(TwilightItemsOther.apalachiaDust);
    }
  }
  if (!var4 && !var3.inventory.hasItem(TwilightItemsOther.skythernDust)) {
    return var1;
  }
 else {
    if (var1.getItem() == TwilightItemsWeapons.skythernBlitz) {
      if (!var2.isRemote) {
        var2.playSoundAtEntity(var3,sound,1.0F,1.0F);
        var2.spawnEntityInWorld(new EntityBlitzSkythern(var2,var3));
      }
      var3.inventory.consumeInventoryItem(TwilightItemsOther.skythernDust);
    }
  }
  if (!var4 && !var3.inventory.hasItem(TwilightItemsOther.edenDust)) {
    return var1;
  }
 else {
    if (var1.getItem() == TwilightItemsWeapons.edenBlitz) {
      if (!var2.isRemote) {
        var2.playSoundAtEntity(var3,sound,1.0F,1.0F);
        var2.spawnEntityInWorld(new EntityBlitzEden(var2,var3));
      }
      var3.inventory.consumeInventoryItem(TwilightItemsOther.edenDust);
    }
  }
  var1.damageItem(1,var3);
  return var1;
}