This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Quote from WaterMinecraft Bump
private void onPlayerTick(EntityPlayer entityplayer) { if(entityplayer.getCurrentItemOrArmor(3) != null & entityplayer.getCurrentItemOrArmor(2) != null & entityplayer.getCurrentItemOrArmor(1) != null & entityplayer.getCurrentItemOrArmor(0) != null) { ItemStack helmet = entityplayer.getCurrentItemOrArmor(3); ItemStack chestplate = entityplayer.getCurrentItemOrArmor(2); ItemStack legs = entityplayer.getCurrentItemOrArmor(1); ItemStack boots = entityplayer.getCurrentItemOrArmor(0); if(helmet.getItem() == mod_Nether.helmGraphite & chestplate.getItem() == mod_Nether.chestGraphite & legs.getItem() == mod_Nether.legsGraphite & boots.getItem() == mod_Nether.bootsGraphite) { entityplayer.addPotionEffect((new PotionEffect(Potion.fireResistance.getId(), 200, 2))); } } }
private void onPlayerTick(EntityPlayer entityplayer)
{
if(entityplayer.getCurrentItemOrArmor(4) != null)
{
if(entityplayer.getCurrentItemOrArmor(3) != null)
{
if(entityplayer.getCurrentItemOrArmor(2) != null)
{
if(entityplayer.getCurrentItemOrArmor(1) != null)
{
ItemStack helmet = entityplayer.getCurrentItemOrArmor(4);
ItemStack chestplate = entityplayer.getCurrentItemOrArmor(3);
ItemStack legs = entityplayer.getCurrentItemOrArmor(2);
ItemStack boots = entityplayer.getCurrentItemOrArmor(1);
if(helmet.getItem() == mod_Nether.helmGraphite)
{
if(chestplate.getItem() == mod_Nether.chestGraphite)
{
if(legs.getItem() == mod_Nether.legsGraphite)
{
if(boots.getItem() == mod_Nether.bootsGraphite)
{
entityplayer.addPotionEffect((new PotionEffect(Potion.fireResistance.getId(), 200, 2)));
}
}
}
}
}
}
}
}
}
Thanks in advance! (:
^^ Click the Signature to go to my page. (: ^^
^^ Click the Signature to go to my page. (: ^^
^^ Click the Signature to go to my page. (: ^^
private void onPlayerTick(EntityPlayer entityplayer)
{
if(entityplayer.getCurrentItemOrArmor(4) != null && entityplayer.getCurrentItemOrArmor(3) != null && entityplayer.getCurrentItemOrArmor(2) != null &&
entityplayer.getCurrentItemOrArmor(1) != null)
{
ItemStack helmet = entityplayer.getCurrentItemOrArmor(4);
ItemStack chestplate = entityplayer.getCurrentItemOrArmor(3);
ItemStack legs = entityplayer.getCurrentItemOrArmor(2);
ItemStack boots = entityplayer.getCurrentItemOrArmor(1);
if(helmet.getItem() == mod_Nether.helmGraphite && chestplate.getItem() == mod_Nether.chestGraphite && legs.getItem() == mod_Nether.legsGraphite &&
boots.getItem() == mod_Nether.bootsGraphite)
{
entityplayer.addPotionEffect((new PotionEffect(Potion.fireResistance.getId(), 200000, 1)));
}
}
}
^^ Click the Signature to go to my page. (: ^^
^^ Click the Signature to go to my page. (: ^^
^^ Click the Signature to go to my page. (: ^^
im not 100% sure but i think the armor slots ids are 0-3 not 1-4