I tried that but it didn't work. did I do something wrong? I also tried switching the 4 to 1 and 3 to 2 and vice versa.
if (player.getCurrentItemOrArmor(4) != null && player.getCurrentItemOrArmor(3) != null
&& player.getCurrentItemOrArmor(2) != null && player.getCurrentItemOrArmor(1) != null)
{
ItemStack helmet = player.getCurrentItemOrArmor(4);
ItemStack chest = player.getCurrentItemOrArmor(3);
ItemStack legs = player.getCurrentItemOrArmor(2);
ItemStack boots = player.getCurrentItemOrArmor(1);
if (helmet.getItem() == CodeLyoko.AelitaHelmet && chest.getItem() == CodeLyoko.AelitaChest
&& legs.getItem() == CodeLyoko.AelitaLegs && boots.getItem() == CodeLyoko.AelitaBoots)
{
player.capabilities.allowFlying = true;
}
}
I've made some armor in my mod and I was wondering if anyone knows how I can give the player special abilities like flying, sprinting, etc. I know how to make the character fly, but not check if they're wearing the armor or not.
when I load minecraft 1.3.2 with forge 4.0.0.200 I get this error.
but when I run minecraft with a clean minecraft.jar, it works fine. yes I deleted the meta-inf folder.