Advertisement
Superloup10

Test2

Mar 28th, 2014
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. public String getArmorTextures(ItemStack itemStack, Entity entity, int slot, String layer)
  2.     {
  3.         if(!itemStack.hasTagCompound())
  4.         {
  5.             itemStack.setTagCompound(new NBTTagCompound());
  6.         }
  7.        
  8.         if(itemStack.getTagCompound().getByte("Mode") == 0)
  9.         {
  10.             if(slot == 2)
  11.             {
  12.                 return "wolf_addons:textures/armor/redstone_layer_off_2.png";
  13.             }
  14.             return "wolf_addons:textures/armor/redstone_layer_off_1.png";
  15.         }
  16.         else
  17.         {
  18.             if(slot == 2)
  19.             {
  20.                 return "wolf_addons:textures/armor/redstone_layer_on_2.png";
  21.             }
  22.             return "wolf_addons:textures/armor/redstone_layer_on_1.png";
  23.         }
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement