A Targethud Modeled on Remix
-
a part of codes
"Remix" -> { var r = 0 var g = 0 var b = 0 RenderUtils.drawRect(-1F, -1F, 154F, 52F,Color(25,25,25).rgb) //draw bg outline RenderUtils.drawRect(1F, 1F, 152F, 50F,Color(45,45,45).rgb) //draw bg Fonts.minecraftFont.drawStringWithShadow(convertedTarget.name, 44F , 5F, Color(255,255,255).rgb) //draw head outline RenderUtils.drawRect(3F,3F,39F,39F, Color(205,205,205).rgb) //draw head if (mc.netHandler.getPlayerInfo(convertedTarget.uniqueID) != null) { drawHead(mc.netHandler.getPlayerInfo(convertedTarget.uniqueID).locationSkin, 4, 4, 34, 34) } //draw heal bg RenderUtils.drawRect(3F, 41F, 150F, 48F, Color(124,0,0).rgb) //draw damage anima if (easingHealth > convertedTarget.health) RenderUtils.drawRect(0F, 34F, (easingHealth / convertedTarget.maxHealth) * width,Color(0, 255, 0, 150).rgb) } //draw heal bar RenderUtils.drawRect(0F, 34F, (convertedTarget.health / convertedTarget.maxHealth) * width, 36F, Color(0,255,0).rgb) //draw armor outline RenderUtils.drawRect(44F, 17F, 62F, 35F, Color(25,25,25).rgb) RenderUtils.drawRect(66F, 17F, 84F, 35F, Color(25,25,25).rgb) RenderUtils.drawRect(88F, 17F, 106F, 35F, Color(25,25,25).rgb) RenderUtils.drawRect(110F, 17F, 128F, 35F, Color(25,25,25).rgb) //draw armor bg RenderUtils.drawRect(45F, 18F, 61F, 34F, Color(95,95,95).rgb) RenderUtils.drawRect(67F, 18F, 83F, 34F, Color(95,95,95).rgb) RenderUtils.drawRect(89F, 18F, 105F, 34F, Color(95,95,95).rgb) RenderUtils.drawRect(111F, 18F, 127F, 34F, Color(95,95,95).rgb) //draw armor bar bg RenderUtils.drawRect(44F, 36F, 149.5F, 39F, Color(0,0,255).rgb) //draw armor bar if (convertedTarget.getTotalArmorValue() != 0) { RenderUtils.drawRect(44F, 36F, 30F + (convertedTarget.getTotalArmorValue()) * 6F, 39F, Color(36,77,255).rgb) // Draw armor bar } //render armor var x = 45 var y = 18 for (index in 3 downTo 0) { val stack = convertedTarget.inventory.armorInventory[index] ?: continue if (stack.getItem() == null) continue mc.renderItem.renderItemIntoGUI(stack, x, y) mc.renderItem.renderItemOverlays(mc.fontRendererObj, stack, x, y) x += 22 } }
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login