Navigation

    CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Larissa
    • Profile
    • Following 4
    • Followers 7
    • Topics 6
    • Posts 16
    • Best 5
    • Groups 0

    Larissa

    @Larissa

    a cute girl

    9
    Reputation
    109
    Profile views
    16
    Posts
    7
    Followers
    4
    Following
    Joined Last Online
    Location China Age 15

    Larissa Unfollow Follow

    Best posts made by Larissa

    • A Notification Theme like IntelliJ IDEA.

      this is a notification like idea.i will give you icons and codes.

      
      import net.ccbluex.liquidbounce.LiquidBounce
      import net.ccbluex.liquidbounce.utils.timer.MSTimer
      import net.ccbluex.liquidbounce.LiquidBounce.hud
      import net.ccbluex.liquidbounce.value.BoolValue
      import net.ccbluex.liquidbounce.value.FloatValue
      import net.ccbluex.liquidbounce.value.ListValue
      import net.ccbluex.liquidbounce.value.IntegerValue
      import net.ccbluex.liquidbounce.ui.client.hud.designer.GuiHudDesigner
      import net.ccbluex.liquidbounce.ui.client.hud.element.Border
      import net.ccbluex.liquidbounce.ui.client.hud.element.Element
      import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
      import net.ccbluex.liquidbounce.ui.client.hud.element.Side
      import net.ccbluex.liquidbounce.utils.render.AnimationUtils
      import net.ccbluex.liquidbounce.utils.render.BlurUtils
      import net.ccbluex.liquidbounce.utils.render.Stencil
      import net.minecraft.client.gui.Gui
      import net.minecraft.client.renderer.GlStateManager
      import net.ccbluex.liquidbounce.ui.font.Fonts
      import net.ccbluex.liquidbounce.utils.ClientUtils
      import net.ccbluex.liquidbounce.utils.render.RenderUtils
      import net.minecraft.util.ResourceLocation
      import java.awt.Color
      
      import org.lwjgl.opengl.GL11
      
      @ElementInfo(name = "Notifications", single = true)
      class Notifications(x: Double = 0.0, y: Double = 30.0, scale: Float = 1F,
                          side: Side = Side(Side.Horizontal.RIGHT, Side.Vertical.DOWN)) : Element(x, y, scale, side) {
      
          private val smoothYTransition = BoolValue("Smooth-YTransition", true)
          private val blurValue = BoolValue("Blur", false)
          private val blurStrength = FloatValue("Blur-Strength", 0F, 0F, 30F)
          private val styleValue = ListValue("Style", arrayOf("Compact", "New", "IntelliJ IDEA LOL"), "Compact")
          private val newAnimValue = BoolValue("UseNewAnim", true)
          private val animationSpeed = FloatValue("Anim-Speed", 0.5F, 0.01F, 1F, { newAnimValue.get() })
          private val bgRedValue = IntegerValue("Background-Red", 0, 0, 255)
          private val bgGreenValue = IntegerValue("Background-Red", 0, 0, 255)
          private val bgBlueValue = IntegerValue("Background-Red", 0, 0, 255)
          private val bgAlphaValue = IntegerValue("Background-Alpha", 190, 0, 255)
      
          /**
           * Example notification for CustomHUD designer
           */
          private val exampleNotification = Notification("Example Notification", Notification.Type.INFO)
      
          /**
           * Draw element
           */
          override fun drawElement(): Border? {
              val bgColor = Color(bgRedValue.get(), bgGreenValue.get(), bgBlueValue.get(), bgAlphaValue.get())
              var animationY = 30F
              val notifications = mutableListOf()
      
              for (i in hud.notifications)
                  notifications.add(i)
              
              if (mc.currentScreen !is GuiHudDesigner || !notifications.isEmpty()) 
                  for(i in notifications)
                      i.drawNotification(
                      animationY, 
                      smoothYTransition.get(), 
                      newAnimValue.get(), 
                      animationSpeed.get(), 
                      bgColor, side, 
                      styleValue.get(), 
                      blurValue.get(), 
                      blurStrength.get(), 
                      renderX.toFloat(), 
                      renderY.toFloat())
                          .also { animationY += when (styleValue.get().toLowerCase()) {
                              "compact" -> 20
                              "full" -> 30
                              else -> 30
                          } * if (side.vertical == Side.Vertical.DOWN) 1F else -1F}
              else
                  exampleNotification.drawNotification(
                      animationY, 
                      smoothYTransition.get(), 
                      newAnimValue.get(), 
                      animationSpeed.get(), 
                      bgColor, side, 
                      styleValue.get(), 
                      blurValue.get(), 
                      blurStrength.get(), 
                      renderX.toFloat(), 
                      renderY.toFloat())
      
              if (mc.currentScreen is GuiHudDesigner) {
                  exampleNotification.fadeState = Notification.FadeState.STAY
                  //exampleNotification.stayTimer.reset()
                  exampleNotification.x = exampleNotification.textLength + 8F
                  if (exampleNotification.stayTimer.hasTimePassed(exampleNotification.displayTime)) 
                      exampleNotification.stayTimer.reset()
      
                  return if (styleValue.get().equals("compact", true)) Border(-102F, -48F, 0F, -30F) else Border(-130F, -58F, 0F, -30F)
              }
      
              return null
          }
      
      }
      class Notification(message : String, type : Type, displayLength: Long) {
          private val notifyDir = "liquidbounce+/notif/"
          private val imgSuccess = ResourceLocation("${notifyDir}checkmark.png")
          private val imgError = ResourceLocation("${notifyDir}error.png")
          private val imgWarning = ResourceLocation("${notifyDir}warning.png")
          private val imgInfo = ResourceLocation("${notifyDir}info.png")
      
          var x = 0f
          var textLength = 0
          private var stay = 0f
          private var fadeStep = 0f
          var fadeState = FadeState.IN
          var displayTime : Long = 0L
          var stayTimer = MSTimer()
          private var firstY = 0f
          private var message: String = ""
          private var type: Type
          init {
              this.message = message
              this.type = type
              this.displayTime = displayLength
              this.firstY = 19190F
              this.stayTimer.reset()
              this.textLength = Fonts.minecraftFont.getStringWidth(message)
          }
      
          constructor(message: String, type: Type) : this(message, type, 2000L)
      
          constructor(message: String) : this(message, Type.INFO, 500L)
      
          constructor(message: String, displayLength: Long) : this(message, Type.INFO, displayLength)
      
          enum class Type {
              SUCCESS,
              INFO,
              WARNING,
              ERROR
          }
      
          enum class FadeState {
              IN,STAY,OUT,END
          }
      
          fun drawNotification(animationY: Float, smooth: Boolean, newAnim: Boolean, animSpeed: Float, backgroundColor: Color, side: Side, style: String, blur: Boolean, strength: Float, originalX: Float, originalY: Float) {
              val delta = RenderUtils.deltaTime
              val width = textLength.toFloat() + 8.0f
              
              if (smooth) {
                  if (firstY == 19190.0F) {
                      firstY = animationY
                  }
                  firstY += (animationY - firstY) * 0.25F
              } else {
                  firstY = animationY
              }
      
              var y = firstY
      
              when (style.toLowerCase()) {
                  "compact" -> {
                      GlStateManager.resetColor()
                      if (blur) {
                          GL11.glTranslatef(-originalX, -originalY, 0F)
                          GL11.glPushMatrix()
                          BlurUtils.blurAreaRounded(originalX + -x - 5F, originalY + -18F - y, originalX + -x + 8F + textLength, originalY + -y, 3F, strength)
                          GL11.glPopMatrix()
                          GL11.glTranslatef(originalX, originalY, 0F)
                      } 
      
                      RenderUtils.customRounded(-x + 8F + textLength, -y, -x - 2F, -18F - y, 0F, 3F, 3F, 0F, backgroundColor.rgb)
                      RenderUtils.customRounded(-x - 2F, -y, -x - 5F, -18F - y, 3F, 0F, 0F, 3F, when(type) {
                              Type.SUCCESS -> Color(80, 255, 80).rgb
                              Type.ERROR -> Color(255, 80, 80).rgb
                              Type.INFO -> Color(255, 255, 255).rgb
                              Type.WARNING -> Color(255, 255, 0).rgb
                          })  
      
                      GlStateManager.resetColor()
                      Fonts.minecraftFont.drawStringWithShadow(message, -x + 3, -13F - y, -1)
                  }
      
                  "new" -> {
                      val dist = (x + 1 + 26F) - (x - 8 - textLength)
                      val kek = -x - 1 - 20F
      
                      val toolong = dist * if (stayTimer.hasTimePassed(displayTime)) 0F else ((displayTime - (System.currentTimeMillis() - stayTimer.time)).toFloat() / displayTime.toFloat())
      
                      GlStateManager.resetColor()
                      if (blur) {
                          GL11.glTranslatef(-originalX, -originalY, 0F)
                          GL11.glPushMatrix()
                          BlurUtils.blurAreaRounded(originalX + kek, originalY + -28F - y, originalX + -x + 8 + textLength, originalY + -y, 3F, strength)
                          GL11.glPopMatrix()
                          GL11.glTranslatef(originalX, originalY, 0F)
                      } 
      
                      Stencil.write(true)
                      RenderUtils.drawRoundedRect(-x + 8 + textLength, -y, kek, -28F - y, 0F, backgroundColor.rgb)
                      Stencil.erase(true)
      
                      GlStateManager.resetColor()
                      if (fadeState == FadeState.STAY && !stayTimer.hasTimePassed(displayTime))
                          RenderUtils.newDrawRect(kek, -y, kek + toolong, -1.5F - y, when(type) {
                              Type.SUCCESS -> Color(80, 255, 80, 255).rgb
                              Type.ERROR -> Color(255, 80, 80, 255).rgb
                              Type.INFO -> Color(127,174,210).rgb
                              Type.WARNING -> Color(255, 255, 0).rgb
                          })
                      else if (fadeState == FadeState.IN)
                          RenderUtils.newDrawRect(kek, -y, kek + dist, -1.5F - y, when(type) {
                              Type.SUCCESS -> Color(80, 255, 80, 255).rgb
                              Type.ERROR -> Color(255, 80, 80, 255).rgb
                              Type.INFO -> Color(127,174,210).rgb
                              Type.WARNING -> Color(255, 255, 0).rgb
                          })
      
                      Stencil.dispose()
      
                      GL11.glPushMatrix()
                      GlStateManager.disableAlpha()
                      GlStateManager.resetColor()
                      GL11.glColor4f(1F, 1F, 1F, 1F)
                      RenderUtils.drawImage2(when (type) {
                          Type.SUCCESS -> imgSuccess
                          Type.ERROR -> imgError
                          Type.WARNING -> imgWarning
                          Type.INFO -> imgInfo
                      }, kek +2, -24F - y, 18, 18)
                      GlStateManager.enableAlpha()
                      GL11.glPopMatrix()
      
                      Fonts.minecraftFont.drawStringWithShadow(message, -x + 2, -18F - y, -1)
                  }
      
                  "intellij idea lol" -> {
                      val dist = (x + 1 + 26F) - (x - 8 - textLength)
                      val kek = -x - 1 - 20F
      
                      GlStateManager.resetColor()
                      if (blur) {
                          GL11.glTranslatef(-originalX, -originalY, 0F)
                          GL11.glPushMatrix()
                          BlurUtils.blurAreaRounded(originalX + kek, originalY + -28F - y, originalX + -x + 8 + textLength, originalY + -y, 3F, strength)
                          GL11.glPopMatrix()
                          GL11.glTranslatef(originalX, originalY, 0F)
                      }
      
                      Stencil.write(true)
      
                      if (type == Type.ERROR) {
                          RenderUtils.drawRoundedRect(-x + 9 + textLength, -y + 1, kek - 1, -28F - y - 1, 0F, Color(115,69,75).rgb)
                          RenderUtils.drawRoundedRect(-x + 8 + textLength, -y, kek, -28F - y, 0F, Color(89,61,65).rgb)
                          Fonts.minecraftFont.drawStringWithShadow("IDE Error:", -x - 4, -25F - y, Color(249,130,108).rgb)
                      }
                      if (type == Type.INFO) {
                          RenderUtils.drawRoundedRect(-x + 9 + textLength, -y + 1, kek - 1, -28F - y - 1, 0F, Color(70,94,115).rgb)
                          RenderUtils.drawRoundedRect(-x + 8 + textLength, -y, kek, -28F - y, 0F, Color(61,72,87).rgb)
                          Fonts.minecraftFont.drawStringWithShadow("IDE Information:", -x - 4, -25F - y, Color(119,145,147).rgb)
                      }
                      if (type == Type.SUCCESS) {
                          RenderUtils.drawRoundedRect(-x + 9 + textLength, -y + 1, kek - 1, -28F - y - 1, 0F, Color(67,104,67).rgb)
                          RenderUtils.drawRoundedRect(-x + 8 + textLength, -y, kek, -28F - y, 0F, Color(55,78,55).rgb)
                          Fonts.minecraftFont.drawStringWithShadow("IDE Success:", -x - 4, -25F - y, Color(10,142,2).rgb)
                      }
                      if (type == Type.WARNING) {
                          RenderUtils.drawRoundedRect(-x + 9 + textLength, -y + 1, kek - 1, -28F - y - 1, 0F, Color(103,103,63).rgb)
                          RenderUtils.drawRoundedRect(-x + 8 + textLength, -y, kek, -28F - y, 0F, Color(80,80,57).rgb)
                          Fonts.minecraftFont.drawStringWithShadow("IDE Warning:", -x - 4, -25F - y, Color(175,163,0).rgb)
                      }
      
                      Stencil.erase(true)
      
                      GlStateManager.resetColor()
      
                      Stencil.dispose()
      
                      GL11.glPushMatrix()
                      GlStateManager.disableAlpha()
                      GlStateManager.resetColor()
                      GL11.glColor4f(1F, 1F, 1F, 1F)
                      RenderUtils.drawImage2(when (type) {
                          Type.SUCCESS -> imgSuccess
                          Type.ERROR -> imgError
                          Type.WARNING -> imgWarning
                          Type.INFO -> imgInfo
                      }, kek + 5, -25F - y, 7, 7)
                      GlStateManager.enableAlpha()
                      GL11.glPopMatrix()
      
                      Fonts.minecraftFont.drawStringWithShadow(message, -x - 4, -13F - y, -1)
                  }
              }
      
              when (fadeState) {
                  FadeState.IN -> {
                      if (x < width) {
                          if (newAnim) 
                              x = net.ccbluex.liquidbounce.utils.AnimationUtils.animate(width, x, animSpeed * 0.025F * delta)
                          else 
                              x = AnimationUtils.easeOut(fadeStep, width) * width
                          fadeStep += delta / 4F
                      }
                      if (x >= width) {
                          fadeState = FadeState.STAY
                          x = width
                          fadeStep = width
                      }
      
                      stay = 60F
                      stayTimer.reset()
                  }
      
                  FadeState.STAY -> {
                      if (stay > 0) {
                          stay = 0F
                          stayTimer.reset()
                      }
                      if (stayTimer.hasTimePassed(displayTime))
                          fadeState = FadeState.OUT
                  }
      
                  FadeState.OUT -> if (x > 0) {
                      if (newAnim) 
                          x = net.ccbluex.liquidbounce.utils.AnimationUtils.animate(-width, x, animSpeed * 0.025F * delta)
                      else 
                          x = AnimationUtils.easeOut(fadeStep, width) * width
      
                      fadeStep -= delta / 4F
                  } else
                      fadeState = FadeState.END
      
                  FadeState.END -> hud.removeNotification(this)
              }        
          }
      }
      
      

      icon and ending photo!
      58CEA7EF-A755-4D52-9115-48F5C0E45083.png 55D78E4E-2882-4605-9869-8EC44C3B25AD.png 230046AE-FDC0-43BB-B75A-D00AA7872B8F.png 4B50C6C2-7A01-449F-9D0B-7405554E7E10.png 7E15207E-EDCD-438B-A8FA-643925E7C81D.png

      posted in Kotlin/Java
      Larissa
      Larissa
    • a Minor changes to the original TargetHUD

      this is a very brief TargetHUD。this is cod:

      • LiquidBounce Hacked Client
      • A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
      • https://github.com/CCBlueX/LiquidBounce/
        */

      package net.ccbluex.liquidbounce.ui.client.hud.element.elements

      import net.ccbluex.liquidbounce.LiquidBounce
      import net.ccbluex.liquidbounce.features.module.modules.combat.KillAura
      import net.ccbluex.liquidbounce.ui.client.hud.element.Border
      import net.ccbluex.liquidbounce.ui.client.hud.element.Element
      import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
      import net.ccbluex.liquidbounce.ui.font.Fonts
      import net.ccbluex.liquidbounce.utils.extensions.getDistanceToEntityBox
      import net.ccbluex.liquidbounce.utils.render.RenderUtils
      import net.ccbluex.liquidbounce.value.FloatValue
      import net.minecraft.client.gui.Gui
      import net.minecraft.entity.Entity
      import net.minecraft.entity.player.EntityPlayer
      import net.minecraft.util.ResourceLocation
      import org.lwjgl.opengl.GL11
      import java.awt.Color
      import java.text.DecimalFormat
      import java.text.DecimalFormatSymbols
      import java.util.*
      import kotlin.math.abs
      import kotlin.math.pow

      /**

      • A target hud
        */
        @ElementInfo(name = "Target")
        class Target : Element() {

        private val decimalFormat = DecimalFormat("##0.00", DecimalFormatSymbols(Locale.ENGLISH))
        private val fadeSpeed = FloatValue("FadeSpeed", 3F, 1F, 9F)

        private var easingHealth: Float = 0F
        private var lastTarget: Entity? = null

        override fun drawElement(): Border {
        val target = (LiquidBounce.moduleManager[KillAura::class.java] as KillAura).target

         if (target is EntityPlayer) {
             if (target != lastTarget || easingHealth < 0 || easingHealth > target.maxHealth ||
                     abs(easingHealth - target.health) < 0.01) {
                 easingHealth = target.health
             }
        
             val width = (38 + Fonts.font40.getStringWidth(target.name))
                     .coerceAtLeast(118)
                     .toFloat()
        
             // Draw rect box
             RenderUtils.drawBorderedRect(0F, 0F, width, 30F, 3F, Color.darkGray.rgb, Color.darkGray.rgb)
        
             // Damage animation
             if (easingHealth > target.health)
                 RenderUtils.drawRect(0F, 34F, (easingHealth / target.maxHealth) * width,
                         34F, Color(212, 107, 107).rgb)
        
             // Health bar
             RenderUtils.drawRect(0F, 34F, (target.health / target.maxHealth) * width,
                     45F, Color(250, 0, 0).rgb)
        
             // Heal animation
             if (easingHealth < target.health)
                 RenderUtils.drawRect((easingHealth / target.maxHealth) * width, 34F,
                         (target.health / target.maxHealth) * width, 45F, Color(250, 250, 250).rgb)
        
             easingHealth += ((target.health - easingHealth) / 2.0F.pow(10.0F - fadeSpeed.get())) * RenderUtils.deltaTime
        
             Fonts.font40.drawString(target.name, 36, 3, 0xffffff)
             Fonts.font35.drawString("Distance: ${decimalFormat.format(mc.thePlayer.getDistanceToEntityBox(target))}", 36, 15, 0xffffff);
         }
         // Draw head
        

      lastTarget = target
      return Border(0F, 0F, 120F, 50F)
      }

      private fun drawHead(skin: ResourceLocation, width: Int, height: Int) {
      GL11.glColor4f(1F, 1F, 1F, 4F)
      mc.textureManager.bindTexture(skin)
      Gui.drawScaledCustomSizeModalRect(2, 2, 8F, 8F, 8, 8, width, height,
      64F, 64F)
      }

      }

      posted in Kotlin/Java
      Larissa
      Larissa
    • 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
                          }
                      }
      
      

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

      posted in Kotlin/Java
      Larissa
      Larissa
    • i share a good scaffold to bypass hypixel
      Hello i share a scaffold  parameter, bypass hypixel fastscaffold 。you can replace it in values
      
      "Scaffold": {
          "Mode": "Normal",
          "MaxDelay": 0,
          "MinDelay": 0,
          "PlaceableDelay": false,
          "AutoBlock": true,
          "StayAutoBlock": true,
          "Sprint": false,
          "Swing": false,
          "Search": true,
          "Down": false,
          "PlaceTiming": "Post",
          "Eagle": false,
          "EagleSilent": false,
          "BlocksToEagle": 0,
          "ExpandLength": 1,
          "Rotations": true,
          "KeepRotationLength": 5,
          "KeepRotation": true,
          "Zitter": false,
          "ZitterMode": "Teleport",
          "ZitterSpeed": 0.13,
          "ZitterStrength": 0.072,
          "Timer": 1.6,
          "SpeedModifier": 1.0,
          "SameY": false,
          "SafeWalk": true,
          "AirSafe": false,
          "Counter": true,
          "Mark": true
      
      
      posted in Configs
      Larissa
      Larissa
    • RE: A Notification Theme like IntelliJ IDEA.

      @koitoyuu thx

      posted in Kotlin/Java
      Larissa
      Larissa

    Latest posts made by Larissa

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

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

      posted in Kotlin/Java
      Larissa
      Larissa
    • RE: A Notification Theme like IntelliJ IDEA.

      @koitoyuu thx

      posted in Kotlin/Java
      Larissa
      Larissa
    • A Notification Theme like IntelliJ IDEA.

      this is a notification like idea.i will give you icons and codes.

      
      import net.ccbluex.liquidbounce.LiquidBounce
      import net.ccbluex.liquidbounce.utils.timer.MSTimer
      import net.ccbluex.liquidbounce.LiquidBounce.hud
      import net.ccbluex.liquidbounce.value.BoolValue
      import net.ccbluex.liquidbounce.value.FloatValue
      import net.ccbluex.liquidbounce.value.ListValue
      import net.ccbluex.liquidbounce.value.IntegerValue
      import net.ccbluex.liquidbounce.ui.client.hud.designer.GuiHudDesigner
      import net.ccbluex.liquidbounce.ui.client.hud.element.Border
      import net.ccbluex.liquidbounce.ui.client.hud.element.Element
      import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
      import net.ccbluex.liquidbounce.ui.client.hud.element.Side
      import net.ccbluex.liquidbounce.utils.render.AnimationUtils
      import net.ccbluex.liquidbounce.utils.render.BlurUtils
      import net.ccbluex.liquidbounce.utils.render.Stencil
      import net.minecraft.client.gui.Gui
      import net.minecraft.client.renderer.GlStateManager
      import net.ccbluex.liquidbounce.ui.font.Fonts
      import net.ccbluex.liquidbounce.utils.ClientUtils
      import net.ccbluex.liquidbounce.utils.render.RenderUtils
      import net.minecraft.util.ResourceLocation
      import java.awt.Color
      
      import org.lwjgl.opengl.GL11
      
      @ElementInfo(name = "Notifications", single = true)
      class Notifications(x: Double = 0.0, y: Double = 30.0, scale: Float = 1F,
                          side: Side = Side(Side.Horizontal.RIGHT, Side.Vertical.DOWN)) : Element(x, y, scale, side) {
      
          private val smoothYTransition = BoolValue("Smooth-YTransition", true)
          private val blurValue = BoolValue("Blur", false)
          private val blurStrength = FloatValue("Blur-Strength", 0F, 0F, 30F)
          private val styleValue = ListValue("Style", arrayOf("Compact", "New", "IntelliJ IDEA LOL"), "Compact")
          private val newAnimValue = BoolValue("UseNewAnim", true)
          private val animationSpeed = FloatValue("Anim-Speed", 0.5F, 0.01F, 1F, { newAnimValue.get() })
          private val bgRedValue = IntegerValue("Background-Red", 0, 0, 255)
          private val bgGreenValue = IntegerValue("Background-Red", 0, 0, 255)
          private val bgBlueValue = IntegerValue("Background-Red", 0, 0, 255)
          private val bgAlphaValue = IntegerValue("Background-Alpha", 190, 0, 255)
      
          /**
           * Example notification for CustomHUD designer
           */
          private val exampleNotification = Notification("Example Notification", Notification.Type.INFO)
      
          /**
           * Draw element
           */
          override fun drawElement(): Border? {
              val bgColor = Color(bgRedValue.get(), bgGreenValue.get(), bgBlueValue.get(), bgAlphaValue.get())
              var animationY = 30F
              val notifications = mutableListOf()
      
              for (i in hud.notifications)
                  notifications.add(i)
              
              if (mc.currentScreen !is GuiHudDesigner || !notifications.isEmpty()) 
                  for(i in notifications)
                      i.drawNotification(
                      animationY, 
                      smoothYTransition.get(), 
                      newAnimValue.get(), 
                      animationSpeed.get(), 
                      bgColor, side, 
                      styleValue.get(), 
                      blurValue.get(), 
                      blurStrength.get(), 
                      renderX.toFloat(), 
                      renderY.toFloat())
                          .also { animationY += when (styleValue.get().toLowerCase()) {
                              "compact" -> 20
                              "full" -> 30
                              else -> 30
                          } * if (side.vertical == Side.Vertical.DOWN) 1F else -1F}
              else
                  exampleNotification.drawNotification(
                      animationY, 
                      smoothYTransition.get(), 
                      newAnimValue.get(), 
                      animationSpeed.get(), 
                      bgColor, side, 
                      styleValue.get(), 
                      blurValue.get(), 
                      blurStrength.get(), 
                      renderX.toFloat(), 
                      renderY.toFloat())
      
              if (mc.currentScreen is GuiHudDesigner) {
                  exampleNotification.fadeState = Notification.FadeState.STAY
                  //exampleNotification.stayTimer.reset()
                  exampleNotification.x = exampleNotification.textLength + 8F
                  if (exampleNotification.stayTimer.hasTimePassed(exampleNotification.displayTime)) 
                      exampleNotification.stayTimer.reset()
      
                  return if (styleValue.get().equals("compact", true)) Border(-102F, -48F, 0F, -30F) else Border(-130F, -58F, 0F, -30F)
              }
      
              return null
          }
      
      }
      class Notification(message : String, type : Type, displayLength: Long) {
          private val notifyDir = "liquidbounce+/notif/"
          private val imgSuccess = ResourceLocation("${notifyDir}checkmark.png")
          private val imgError = ResourceLocation("${notifyDir}error.png")
          private val imgWarning = ResourceLocation("${notifyDir}warning.png")
          private val imgInfo = ResourceLocation("${notifyDir}info.png")
      
          var x = 0f
          var textLength = 0
          private var stay = 0f
          private var fadeStep = 0f
          var fadeState = FadeState.IN
          var displayTime : Long = 0L
          var stayTimer = MSTimer()
          private var firstY = 0f
          private var message: String = ""
          private var type: Type
          init {
              this.message = message
              this.type = type
              this.displayTime = displayLength
              this.firstY = 19190F
              this.stayTimer.reset()
              this.textLength = Fonts.minecraftFont.getStringWidth(message)
          }
      
          constructor(message: String, type: Type) : this(message, type, 2000L)
      
          constructor(message: String) : this(message, Type.INFO, 500L)
      
          constructor(message: String, displayLength: Long) : this(message, Type.INFO, displayLength)
      
          enum class Type {
              SUCCESS,
              INFO,
              WARNING,
              ERROR
          }
      
          enum class FadeState {
              IN,STAY,OUT,END
          }
      
          fun drawNotification(animationY: Float, smooth: Boolean, newAnim: Boolean, animSpeed: Float, backgroundColor: Color, side: Side, style: String, blur: Boolean, strength: Float, originalX: Float, originalY: Float) {
              val delta = RenderUtils.deltaTime
              val width = textLength.toFloat() + 8.0f
              
              if (smooth) {
                  if (firstY == 19190.0F) {
                      firstY = animationY
                  }
                  firstY += (animationY - firstY) * 0.25F
              } else {
                  firstY = animationY
              }
      
              var y = firstY
      
              when (style.toLowerCase()) {
                  "compact" -> {
                      GlStateManager.resetColor()
                      if (blur) {
                          GL11.glTranslatef(-originalX, -originalY, 0F)
                          GL11.glPushMatrix()
                          BlurUtils.blurAreaRounded(originalX + -x - 5F, originalY + -18F - y, originalX + -x + 8F + textLength, originalY + -y, 3F, strength)
                          GL11.glPopMatrix()
                          GL11.glTranslatef(originalX, originalY, 0F)
                      } 
      
                      RenderUtils.customRounded(-x + 8F + textLength, -y, -x - 2F, -18F - y, 0F, 3F, 3F, 0F, backgroundColor.rgb)
                      RenderUtils.customRounded(-x - 2F, -y, -x - 5F, -18F - y, 3F, 0F, 0F, 3F, when(type) {
                              Type.SUCCESS -> Color(80, 255, 80).rgb
                              Type.ERROR -> Color(255, 80, 80).rgb
                              Type.INFO -> Color(255, 255, 255).rgb
                              Type.WARNING -> Color(255, 255, 0).rgb
                          })  
      
                      GlStateManager.resetColor()
                      Fonts.minecraftFont.drawStringWithShadow(message, -x + 3, -13F - y, -1)
                  }
      
                  "new" -> {
                      val dist = (x + 1 + 26F) - (x - 8 - textLength)
                      val kek = -x - 1 - 20F
      
                      val toolong = dist * if (stayTimer.hasTimePassed(displayTime)) 0F else ((displayTime - (System.currentTimeMillis() - stayTimer.time)).toFloat() / displayTime.toFloat())
      
                      GlStateManager.resetColor()
                      if (blur) {
                          GL11.glTranslatef(-originalX, -originalY, 0F)
                          GL11.glPushMatrix()
                          BlurUtils.blurAreaRounded(originalX + kek, originalY + -28F - y, originalX + -x + 8 + textLength, originalY + -y, 3F, strength)
                          GL11.glPopMatrix()
                          GL11.glTranslatef(originalX, originalY, 0F)
                      } 
      
                      Stencil.write(true)
                      RenderUtils.drawRoundedRect(-x + 8 + textLength, -y, kek, -28F - y, 0F, backgroundColor.rgb)
                      Stencil.erase(true)
      
                      GlStateManager.resetColor()
                      if (fadeState == FadeState.STAY && !stayTimer.hasTimePassed(displayTime))
                          RenderUtils.newDrawRect(kek, -y, kek + toolong, -1.5F - y, when(type) {
                              Type.SUCCESS -> Color(80, 255, 80, 255).rgb
                              Type.ERROR -> Color(255, 80, 80, 255).rgb
                              Type.INFO -> Color(127,174,210).rgb
                              Type.WARNING -> Color(255, 255, 0).rgb
                          })
                      else if (fadeState == FadeState.IN)
                          RenderUtils.newDrawRect(kek, -y, kek + dist, -1.5F - y, when(type) {
                              Type.SUCCESS -> Color(80, 255, 80, 255).rgb
                              Type.ERROR -> Color(255, 80, 80, 255).rgb
                              Type.INFO -> Color(127,174,210).rgb
                              Type.WARNING -> Color(255, 255, 0).rgb
                          })
      
                      Stencil.dispose()
      
                      GL11.glPushMatrix()
                      GlStateManager.disableAlpha()
                      GlStateManager.resetColor()
                      GL11.glColor4f(1F, 1F, 1F, 1F)
                      RenderUtils.drawImage2(when (type) {
                          Type.SUCCESS -> imgSuccess
                          Type.ERROR -> imgError
                          Type.WARNING -> imgWarning
                          Type.INFO -> imgInfo
                      }, kek +2, -24F - y, 18, 18)
                      GlStateManager.enableAlpha()
                      GL11.glPopMatrix()
      
                      Fonts.minecraftFont.drawStringWithShadow(message, -x + 2, -18F - y, -1)
                  }
      
                  "intellij idea lol" -> {
                      val dist = (x + 1 + 26F) - (x - 8 - textLength)
                      val kek = -x - 1 - 20F
      
                      GlStateManager.resetColor()
                      if (blur) {
                          GL11.glTranslatef(-originalX, -originalY, 0F)
                          GL11.glPushMatrix()
                          BlurUtils.blurAreaRounded(originalX + kek, originalY + -28F - y, originalX + -x + 8 + textLength, originalY + -y, 3F, strength)
                          GL11.glPopMatrix()
                          GL11.glTranslatef(originalX, originalY, 0F)
                      }
      
                      Stencil.write(true)
      
                      if (type == Type.ERROR) {
                          RenderUtils.drawRoundedRect(-x + 9 + textLength, -y + 1, kek - 1, -28F - y - 1, 0F, Color(115,69,75).rgb)
                          RenderUtils.drawRoundedRect(-x + 8 + textLength, -y, kek, -28F - y, 0F, Color(89,61,65).rgb)
                          Fonts.minecraftFont.drawStringWithShadow("IDE Error:", -x - 4, -25F - y, Color(249,130,108).rgb)
                      }
                      if (type == Type.INFO) {
                          RenderUtils.drawRoundedRect(-x + 9 + textLength, -y + 1, kek - 1, -28F - y - 1, 0F, Color(70,94,115).rgb)
                          RenderUtils.drawRoundedRect(-x + 8 + textLength, -y, kek, -28F - y, 0F, Color(61,72,87).rgb)
                          Fonts.minecraftFont.drawStringWithShadow("IDE Information:", -x - 4, -25F - y, Color(119,145,147).rgb)
                      }
                      if (type == Type.SUCCESS) {
                          RenderUtils.drawRoundedRect(-x + 9 + textLength, -y + 1, kek - 1, -28F - y - 1, 0F, Color(67,104,67).rgb)
                          RenderUtils.drawRoundedRect(-x + 8 + textLength, -y, kek, -28F - y, 0F, Color(55,78,55).rgb)
                          Fonts.minecraftFont.drawStringWithShadow("IDE Success:", -x - 4, -25F - y, Color(10,142,2).rgb)
                      }
                      if (type == Type.WARNING) {
                          RenderUtils.drawRoundedRect(-x + 9 + textLength, -y + 1, kek - 1, -28F - y - 1, 0F, Color(103,103,63).rgb)
                          RenderUtils.drawRoundedRect(-x + 8 + textLength, -y, kek, -28F - y, 0F, Color(80,80,57).rgb)
                          Fonts.minecraftFont.drawStringWithShadow("IDE Warning:", -x - 4, -25F - y, Color(175,163,0).rgb)
                      }
      
                      Stencil.erase(true)
      
                      GlStateManager.resetColor()
      
                      Stencil.dispose()
      
                      GL11.glPushMatrix()
                      GlStateManager.disableAlpha()
                      GlStateManager.resetColor()
                      GL11.glColor4f(1F, 1F, 1F, 1F)
                      RenderUtils.drawImage2(when (type) {
                          Type.SUCCESS -> imgSuccess
                          Type.ERROR -> imgError
                          Type.WARNING -> imgWarning
                          Type.INFO -> imgInfo
                      }, kek + 5, -25F - y, 7, 7)
                      GlStateManager.enableAlpha()
                      GL11.glPopMatrix()
      
                      Fonts.minecraftFont.drawStringWithShadow(message, -x - 4, -13F - y, -1)
                  }
              }
      
              when (fadeState) {
                  FadeState.IN -> {
                      if (x < width) {
                          if (newAnim) 
                              x = net.ccbluex.liquidbounce.utils.AnimationUtils.animate(width, x, animSpeed * 0.025F * delta)
                          else 
                              x = AnimationUtils.easeOut(fadeStep, width) * width
                          fadeStep += delta / 4F
                      }
                      if (x >= width) {
                          fadeState = FadeState.STAY
                          x = width
                          fadeStep = width
                      }
      
                      stay = 60F
                      stayTimer.reset()
                  }
      
                  FadeState.STAY -> {
                      if (stay > 0) {
                          stay = 0F
                          stayTimer.reset()
                      }
                      if (stayTimer.hasTimePassed(displayTime))
                          fadeState = FadeState.OUT
                  }
      
                  FadeState.OUT -> if (x > 0) {
                      if (newAnim) 
                          x = net.ccbluex.liquidbounce.utils.AnimationUtils.animate(-width, x, animSpeed * 0.025F * delta)
                      else 
                          x = AnimationUtils.easeOut(fadeStep, width) * width
      
                      fadeStep -= delta / 4F
                  } else
                      fadeState = FadeState.END
      
                  FadeState.END -> hud.removeNotification(this)
              }        
          }
      }
      
      

      icon and ending photo!
      58CEA7EF-A755-4D52-9115-48F5C0E45083.png 55D78E4E-2882-4605-9869-8EC44C3B25AD.png 230046AE-FDC0-43BB-B75A-D00AA7872B8F.png 4B50C6C2-7A01-449F-9D0B-7405554E7E10.png 7E15207E-EDCD-438B-A8FA-643925E7C81D.png

      posted in Kotlin/Java
      Larissa
      Larissa
    • RE: Netease HuaYuTing Server Infinite Vanilla Fly Code

      @koitoyuu omg,it is real,i have tried it in fact😄

      posted in Kotlin/Java
      Larissa
      Larissa
    • RE: SessionInfo Codes

      @lar1ssadu6u sorry,I copied it twice. Please check the box!

      posted in Kotlin/Java
      Larissa
      Larissa
    • SessionInfo Codes

      If it is out of line, please adjust it yourself,codeby detentionteam.😊

      
      package net.ccbluex.liquidbounce.ui.client.hud.element.elements
      
      import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
      import net.ccbluex.liquidbounce.ui.client.hud.element.Element
      import net.ccbluex.liquidbounce.ui.client.hud.element.Border
      import net.ccbluex.liquidbounce.utils.render.RenderUtils
      import net.ccbluex.liquidbounce.ui.font.Fonts
      import net.ccbluex.liquidbounce.value.IntegerValue
      import net.minecraft.client.Minecraft
      import kotlin.math.roundToInt
      import java.awt.Color
      import net.ccbluex.liquidbounce.features.module.modules.misc.BanChecker
      import net.ccbluex.liquidbounce.value.ListValue
      
      
      @ElementInfo(name = "SessionInfo")
      class PlayerInfo : Element() {
          // Topline
          private val red = IntegerValue("TopLine-Red", 255, 0, 255)
          private val green = IntegerValue("TopLine-Green", 255, 0, 255)
          private val blue = IntegerValue("TopLine-Blue", 255, 0, 255)
          private val alpha = IntegerValue("TopLine-Alpha", 200, 0, 255)
          // Background
          private val bgred = IntegerValue("Background-Red", 30, 0, 255)
          private val bggreen = IntegerValue("Background-Green", 30, 0, 255)
          private val bgblue = IntegerValue("Background-Blue", 30, 0, 255)
          private val bgalpha = IntegerValue("Background-Alpha", 40, 0, 255)
          var HM = 0
          var S = 0
          var M = 0
          var H = 0
          override fun drawElement(): Border {
              HM += 1;
              if (HM == 120){
                  S += 1;
                  HM = 0;
              }
              if (S == 60){
                  M += 1
                  S = 0
              }
              if (M == 60){
                  H += 1
                  M = 0
              }
              var BpsFloat = Math.sqrt(Math.pow(mc.thePlayer!!.posX - mc.thePlayer!!.prevPosX, 2.0) + Math.pow(mc.thePlayer!!.posZ - mc.thePlayer!!.prevPosZ, 2.0)) * 20 * mc.timer.timerSpeed
              var BpsDouble = (BpsFloat * 100 - (BpsFloat * 100)%1)/100
              RenderUtils.drawRect(0F, -9F, 120f, 42F,  Color(bgred.get(),bggreen.get(),bgblue.get(),bgalpha.get()).rgb)
              RenderUtils.drawRect(0F, -10F, 120f, -9F,  Color(red.get(),green.get(),blue.get(),alpha.get()).rgb)
              Fonts.font38.drawString("SessionInfo", 1f, -7f, Color(20,20,20,255).rgb)
              Fonts.font38.drawString("PlayTime§7:§f${M} Mins ${S} Secs", 1f, 3f, Color(255,255,255,255).rgb,shadow = true)
              Fonts.font38.drawString("Staff: ${BanChecker.STAFF_BAN_LAST_MIN} Dog: ${BanChecker.WATCHDOG_BAN_LAST_MIN}", 1f, 13f, Color.WHITE.rgb, shadow = true)
              Fonts.font38.drawString("${BpsDouble} BPS", 1F, 23F, Color(255,255,255,255).rgb,shadow = true)
              Fonts.font38.drawString("FPS: ${Minecraft.getDebugFPS().toString()}", 1F, 33F, Color(255,255,255,255).rgb,shadow = true)
              return Border(-1F, -10f, 121F, 43F)
          }
      
      }
      
      

      ![替代文字](package net.ccbluex.liquidbounce.ui.client.hud.element.elements

      import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
      import net.ccbluex.liquidbounce.ui.client.hud.element.Element
      import net.ccbluex.liquidbounce.ui.client.hud.element.Border
      import net.ccbluex.liquidbounce.utils.render.RenderUtils
      import net.ccbluex.liquidbounce.ui.font.Fonts
      import net.ccbluex.liquidbounce.value.IntegerValue
      import net.minecraft.client.Minecraft
      import kotlin.math.roundToInt
      import java.awt.Color
      import net.ccbluex.liquidbounce.features.module.modules.misc.BanChecker
      import net.ccbluex.liquidbounce.value.ListValue

      @ElementInfo(name = "SessionInfo")
      class PlayerInfo : Element() {
      // Topline
      private val red = IntegerValue("TopLine-Red", 255, 0, 255)
      private val green = IntegerValue("TopLine-Green", 255, 0, 255)
      private val blue = IntegerValue("TopLine-Blue", 255, 0, 255)
      private val alpha = IntegerValue("TopLine-Alpha", 200, 0, 255)
      // Background
      private val bgred = IntegerValue("Background-Red", 30, 0, 255)
      private val bggreen = IntegerValue("Background-Green", 30, 0, 255)
      private val bgblue = IntegerValue("Background-Blue", 30, 0, 255)
      private val bgalpha = IntegerValue("Background-Alpha", 40, 0, 255)
      var HM = 0
      var S = 0
      var M = 0
      var H = 0
      override fun drawElement(): Border {
      HM += 1;
      if (HM == 120){
      S += 1;
      HM = 0;
      }
      if (S == 60){
      M += 1
      S = 0
      }
      if (M == 60){
      H += 1
      M = 0
      }
      var BpsFloat = Math.sqrt(Math.pow(mc.thePlayer!!.posX - mc.thePlayer!!.prevPosX, 2.0) + Math.pow(mc.thePlayer!!.posZ - mc.thePlayer!!.prevPosZ, 2.0)) * 20 * mc.timer.timerSpeed
      var BpsDouble = (BpsFloat * 100 - (BpsFloat * 100)%1)/100
      RenderUtils.drawRect(0F, -9F, 120f, 42F, Color(bgred.get(),bggreen.get(),bgblue.get(),bgalpha.get()).rgb)
      RenderUtils.drawRect(0F, -10F, 120f, -9F, Color(red.get(),green.get(),blue.get(),alpha.get()).rgb)
      Fonts.font38.drawString("SessionInfo", 1f, -7f, Color(20,20,20,255).rgb)
      Fonts.font38.drawString("PlayTime§7:§f${M} Mins ${S} Secs", 1f, 3f, Color(255,255,255,255).rgb,shadow = true)
      Fonts.font38.drawString("Staff: ${BanChecker.STAFF_BAN_LAST_MIN} Dog: ${BanChecker.WATCHDOG_BAN_LAST_MIN}", 1f, 13f, Color.WHITE.rgb, shadow = true)
      Fonts.font38.drawString("${BpsDouble} BPS", 1F, 23F, Color(255,255,255,255).rgb,shadow = true)
      Fonts.font38.drawString("FPS: ${Minecraft.getDebugFPS().toString()}", 1F, 33F, Color(255,255,255,255).rgb,shadow = true)
      return Border(-1F, -10f, 121F, 43F)
      }
      idk how to hung the picture,so i don’t care

      posted in Kotlin/Java
      Larissa
      Larissa
    • RE: Share my Session Info(Picture

      @wooshi999 hey my bro,why not sharing the codes instead of showing the picture,i am just a grade one kid,please give me🥺😊❤️,or i will hacking into your computer and delet all the files in your computer👿👿

      posted in Suggestions
      Larissa
      Larissa
    • i share a good scaffold to bypass hypixel
      Hello i share a scaffold  parameter, bypass hypixel fastscaffold 。you can replace it in values
      
      "Scaffold": {
          "Mode": "Normal",
          "MaxDelay": 0,
          "MinDelay": 0,
          "PlaceableDelay": false,
          "AutoBlock": true,
          "StayAutoBlock": true,
          "Sprint": false,
          "Swing": false,
          "Search": true,
          "Down": false,
          "PlaceTiming": "Post",
          "Eagle": false,
          "EagleSilent": false,
          "BlocksToEagle": 0,
          "ExpandLength": 1,
          "Rotations": true,
          "KeepRotationLength": 5,
          "KeepRotation": true,
          "Zitter": false,
          "ZitterMode": "Teleport",
          "ZitterSpeed": 0.13,
          "ZitterStrength": 0.072,
          "Timer": 1.6,
          "SpeedModifier": 1.0,
          "SameY": false,
          "SafeWalk": true,
          "AirSafe": false,
          "Counter": true,
          "Mark": true
      
      
      posted in Configs
      Larissa
      Larissa
    • a Minor changes to the original TargetHUD

      this is a very brief TargetHUD。this is cod:

      • LiquidBounce Hacked Client
      • A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
      • https://github.com/CCBlueX/LiquidBounce/
        */

      package net.ccbluex.liquidbounce.ui.client.hud.element.elements

      import net.ccbluex.liquidbounce.LiquidBounce
      import net.ccbluex.liquidbounce.features.module.modules.combat.KillAura
      import net.ccbluex.liquidbounce.ui.client.hud.element.Border
      import net.ccbluex.liquidbounce.ui.client.hud.element.Element
      import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
      import net.ccbluex.liquidbounce.ui.font.Fonts
      import net.ccbluex.liquidbounce.utils.extensions.getDistanceToEntityBox
      import net.ccbluex.liquidbounce.utils.render.RenderUtils
      import net.ccbluex.liquidbounce.value.FloatValue
      import net.minecraft.client.gui.Gui
      import net.minecraft.entity.Entity
      import net.minecraft.entity.player.EntityPlayer
      import net.minecraft.util.ResourceLocation
      import org.lwjgl.opengl.GL11
      import java.awt.Color
      import java.text.DecimalFormat
      import java.text.DecimalFormatSymbols
      import java.util.*
      import kotlin.math.abs
      import kotlin.math.pow

      /**

      • A target hud
        */
        @ElementInfo(name = "Target")
        class Target : Element() {

        private val decimalFormat = DecimalFormat("##0.00", DecimalFormatSymbols(Locale.ENGLISH))
        private val fadeSpeed = FloatValue("FadeSpeed", 3F, 1F, 9F)

        private var easingHealth: Float = 0F
        private var lastTarget: Entity? = null

        override fun drawElement(): Border {
        val target = (LiquidBounce.moduleManager[KillAura::class.java] as KillAura).target

         if (target is EntityPlayer) {
             if (target != lastTarget || easingHealth < 0 || easingHealth > target.maxHealth ||
                     abs(easingHealth - target.health) < 0.01) {
                 easingHealth = target.health
             }
        
             val width = (38 + Fonts.font40.getStringWidth(target.name))
                     .coerceAtLeast(118)
                     .toFloat()
        
             // Draw rect box
             RenderUtils.drawBorderedRect(0F, 0F, width, 30F, 3F, Color.darkGray.rgb, Color.darkGray.rgb)
        
             // Damage animation
             if (easingHealth > target.health)
                 RenderUtils.drawRect(0F, 34F, (easingHealth / target.maxHealth) * width,
                         34F, Color(212, 107, 107).rgb)
        
             // Health bar
             RenderUtils.drawRect(0F, 34F, (target.health / target.maxHealth) * width,
                     45F, Color(250, 0, 0).rgb)
        
             // Heal animation
             if (easingHealth < target.health)
                 RenderUtils.drawRect((easingHealth / target.maxHealth) * width, 34F,
                         (target.health / target.maxHealth) * width, 45F, Color(250, 250, 250).rgb)
        
             easingHealth += ((target.health - easingHealth) / 2.0F.pow(10.0F - fadeSpeed.get())) * RenderUtils.deltaTime
        
             Fonts.font40.drawString(target.name, 36, 3, 0xffffff)
             Fonts.font35.drawString("Distance: ${decimalFormat.format(mc.thePlayer.getDistanceToEntityBox(target))}", 36, 15, 0xffffff);
         }
         // Draw head
        

      lastTarget = target
      return Border(0F, 0F, 120F, 50F)
      }

      private fun drawHead(skin: ResourceLocation, width: Int, height: Int) {
      GL11.glColor4f(1F, 1F, 1F, 4F)
      mc.textureManager.bindTexture(skin)
      Gui.drawScaledCustomSizeModalRect(2, 2, 8F, 8F, 8, 8, width, height,
      64F, 64F)
      }

      }

      posted in Kotlin/Java
      Larissa
      Larissa