Advertisement
Guest User

Modified Bow Code

a guest
Jan 24th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. @Override
  2. public ModelResourceLocation getModel(ItemStack stack, EntityPlayer player, int useRemaining)
  3. {
  4. ModelResourceLocation modelresourcelocation = new ModelResourceLocation(Constants.modid + ":" + elementType + "_bow", "inventory");
  5.  
  6. System.out.println(player.getItemInUse() +":" + useRemaining);
  7.  
  8. if(stack.getItem() == this && player.getItemInUse() != null)
  9. {
  10. if(useRemaining >= 71998)
  11. {
  12. modelresourcelocation = new ModelResourceLocation(Constants.modid + ":" + elementType + "_bow_pulling_0", "inventory");
  13. }
  14. else if(useRemaining > 71993)
  15. {
  16. modelresourcelocation = new ModelResourceLocation(Constants.modid + ":" + elementType + "_bow_pulling_1", "inventory");
  17. }
  18. else if(useRemaining <= 71991 || useRemaining >= 71991)
  19. {
  20. modelresourcelocation = new ModelResourceLocation(Constants.modid + ":" + elementType + "_bow_pulling_2", "inventory");
  21. }
  22. }
  23. return modelresourcelocation;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement