Okay then instead of making it glow how would I do it so on held it changes to another item and when that other item is stopped being held it changes to the original item?
How would I make it so that the item only glows when it's held and doesn't glow when it's not held?
@SideOnly(Side.CLIENT)
@Override
public boolean hasEffect(ItemStack stack) {
return true;
}
True it's limited but like Draco said it's exactly what I wanted However if I was to want to use different colors, would it be like this?:
@Override
public EnumRarity getRarity(ItemStack stack) {
if (this == ModItems.Sword) {
return EnumChatFormatting.AQUA;
}
else {
return EnumChatFormatting.WHITE;
}
}
Never mind, I looked into the Golden Apple code and found they color their items in terms of rarity which is exactly what I wanted to do so I just used the same code with my items.
@Override
public EnumRarity getRarity(ItemStack stack) {
if (this == ModItems.Sword) {
return EnumRarity.EPIC;
}
else {
return EnumRarity.COMMON;
}
}