I need this custom method to recognize when the Player is wearing a certain set of armor. For example, when wearing custom armor, you jump higher. WHen your not wearing custom armor, you jump normally. I've tried, and don't seem to be using the right thing. Anyone have experience doing this?
Thank you! I've been looking for this all night in the code. I've never thought of using a minecraft instance. I was looking for methods that determined whether or not something was in the slot or not. I can't try this tonight, it's late, but I'll let you know if it works tomorrow!
Minecraft mc = ModLoader.getMinecraftInstance();
if(mc.thePlayer.inventory.armorInventory.equals(Item.Wings) == true){
player.capabilities.allowFlying = true;
}