Guest User

Untitled

a guest
Apr 25th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. //Checking stuff for mana and health and stamina
  2. float magicka = (float) (20 * 4.1);
  3. float health = (float) (mc.thePlayer.getHealth() * 4.1);
  4. float stamina = (float) (mc.thePlayer.getFoodStats().getFoodLevel() * 4.1);
  5. //End checking stuff
  6.  
  7. float barMaxWidth = (float) (20 * 4.1);
  8.  
  9. float healthBarWidth = barMaxWidth * (mc.thePlayer.getHealth() / mc.thePlayer.getMaxHealth());
  10. float healthBarStartX = (barMaxWidth - healthBarWidth) / 2;
  11.  
  12. //INNER BARS
  13. drawTexturedModalRect(31, height - 38, 11, 64, (int)magicka, 6); //mana
  14. //drawTexturedModalRect(width / 2 - 39, height - 38, 11, 72, (int)health, 6); //health
  15. drawTexturedModalRect(width / 2 - healthBarStartX, height - 38, 11, 72, (int) healthBarWidth, 6);
  16. drawTexturedModalRect(width - 109, height - 38, 11, 80, (int)stamina, 6); //stamina
  17. //END INNER BARS
Add Comment
Please, Sign In to add comment