Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. Kotlin/Java
  3. A Targethud Modeled on Remix

A Targethud Modeled on Remix

Scheduled Pinned Locked Moved Kotlin/Java
1 Posts 1 Posters 977 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • LarissaL Offline
    LarissaL Offline
    Larissa
    wrote on last edited by
    #1

    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
                        }
                    }
    
    

    8A981A1A-57BB-478C-A6E7-4E846195ACF1.png

    1 Reply Last reply
    5

    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
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    About
    • Terms of Service
    • Privacy Policy
    • Status
    • Contact Us
    Downloads
    • Releases
    • Source code
    • License
    Docs
    • Tutorials
    • CustomHUD
    • AutoSettings
    • ScriptAPI
    Community
    • Forum
    • Guilded
    • YouTube
    • Twitter
    • D.Tube
    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups