- Status
- Offline
- Joined
- Jul 18, 2023
- Messages
- 707
- Reaction score
- 3
Get ready to experience an expanded and enriched Minecraft world like never before! We present a meticulously selected collection of mods, skins, and additional content that will take your gaming experience to new heights. Whether you're a creative builder looking to enhance your projects or an adventurer seeking thrilling challenges, our vast array of resources is designed to cater to all your desires. Embrace this incredible opportunity to revolutionize your Minecraft journey and explore limitless possibilities!
TargetHUD Expensive:
JavaScript:
float width = 90 + Fonts.SEMI_BOLD_12.getStringWidth(name);
float height = 30;
posX = // начальная позиция таргетхуда по x;
posY = // начальная позиция таргетхуда по y;
hp = MathUtility.clamp(MathUtility.lerp(hp, curTarget.getHealth() / curTarget.getMaxHealth(), (float) (12 * AnimationMath.deltaTime())), 0, 1);
GlStateManager.pushMatrix();
Expensive.getInstance().scaleMath.pushScale();
// анимация
GlStateManager.translate(posX + width / 2, posY + 43 / 2, 0);
GlStateManager.scale(scale, scale, 1);
GlStateManager.translate(-posX - width / 2, -posY - 43 / 2, 0);
//ректы
GlowUtility.drawGlow(posX, posY, width, height, 10, new Color(8, 8, 8, 100));
RenderUtility.drawRound(posX, posY, width, height, 2, new Color(8, 8, 8));
RenderUtility.drawFace(posX + 5, posY + 4, 8, 8, 8, 8, 22, 22, 64, 64, (AbstractClientPlayer) curTarget);
RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, 360, 10, 3, false, new Color(55, 55, 55));
RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, hp * 360 + 1, 10, 3, false, HudModule.getColor((int) (hp * 360)));
// текст
Fonts.SEMI_BOLD_12.drawString("Name: " + name, posX + 35, posY + 10, -1);
Fonts.SEMI_BOLD_12.drawString("Distance: " + MathUtility.round(mc.player.getDistance(curTarget), 0.01f), posX + 35, posY + 18, -1);
Fonts.SEMI_BOLD_12.drawCenteredString(MathUtility.round(hp * 20, 0.1f) + "", posX + width - 15, posY + height / 2 - 1, -1);
Expensive.getInstance().scaleMath.popScale();
GlStateManager.popMatrix();