Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public ModelResourceLocation getModel(ItemStack stack, EntityPlayer player, int useRemaining)
- {
- ModelResourceLocation modelresourcelocation = new ModelResourceLocation(Constants.modid + ":" + elementType + "_bow", "inventory");
- System.out.println(player.getItemInUse() +":" + useRemaining);
- if(stack.getItem() == this && player.getItemInUse() != null)
- {
- if(useRemaining >= 18)
- {
- modelresourcelocation = new ModelResourceLocation(Constants.modid + ":" + elementType + "_bow_pulling_2", "inventory");
- }
- else if(useRemaining > 13)
- {
- modelresourcelocation = new ModelResourceLocation(Constants.modid + ":" + elementType + "_bow_pulling_1", "inventory");
- }
- else if(useRemaining > 0)
- {
- modelresourcelocation = new ModelResourceLocation(Constants.modid + ":" + elementType + "_bow_pulling_0", "inventory");
- }
- }
- return modelresourcelocation;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement