Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • 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

LarissaL

Larissa

@Larissa
About
Posts
55
Topics
14
Shares
0
Groups
0
Followers
29
Following
4

Posts

Recent Best Controversial

  • A long shape of the template TargetHUD
    LarissaL Larissa

    it just a Mould,you can add other decorations on it by yourself!
    这只是一个模板,你可以自己加上其他装饰!undefined undefined

    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.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 kotlin.math.abs
    import kotlin.math.pow
    
    /**
     * A target hud
     */
    @ElementInfo(name = "Target3")
    class Target3 : Element() {
    
        private val fadeSpeed = FloatValue("AnimationsSpeed", 2F, 1F, 10F)
        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()
    
                RenderUtils.drawBorderedRect(0F, 0F, width, 35.8F, 0F,Color(0,0,0,0).rgb,Color(0,0,0,220).rgb)
                RenderUtils.drawBorderedRect(0F, 0F, width, 35.8F, 1.2F, Color(255,255,255,250).rgb,Color(0,0,0,0).rgb)
                RenderUtils.drawBorderedRect(37F, 3.2F,113F + 0f, 32.8F, 0.8F, Color(255,255,255,240).rgb,Color(0,0,0,0).rgb)
                RenderUtils.drawRect(37F, 3.2F,113F + 0f, 32.8F, Color(70,70,70,230).rgb)
    
                if (easingHealth > target.health)
                    RenderUtils.drawRect(37F, 3.2F, (target.health / target.maxHealth) * width -3.5F,
                            32.8F, Color(138, 60, 65).rgb)
    
                if(target.hurtTime > 9){
                    RenderUtils.drawRect(37F, 3.2F, (target.health / target.maxHealth) * width -3.5F,
                            32.8F, Color(149, 9, 17).rgb)
                } else {
                    RenderUtils.drawRect(37F, 3.2F, (target.health / target.maxHealth) * width + -3.5F,
                            32.8F, Color(255, 255, 255,240).rgb)
                    Fonts.fontBold35.drawStringWithShadow("HP:${(target.getHealth())}0", 57F, 15F, Color(0,0,0,0).rgb)
                }
                easingHealth += ((target.health - easingHealth) / 2.0F.pow(10.0F - fadeSpeed.get())) * RenderUtils.deltaTime
                val playerInfo = mc.netHandler.getPlayerInfo(target.uniqueID)
                if (playerInfo != null) {
                    val locationSkin = playerInfo.locationSkin
                    drawHead(locationSkin, 32, 32)
                }
            }
            lastTarget = target
            return Border(0F, 0F, 120F, 36F)
        }
        private fun drawHead(skin: ResourceLocation, width: Int, height: Int) {
            GL11.glColor4f(1F, 1F, 1F, 1F)
            mc.textureManager.bindTexture(skin)
            Gui.drawScaledCustomSizeModalRect(2, 2, 8F, 8F, 8, 8, width, height,
                    64F, 64F)
        }
    //codes larissa
    }
    
    

    it is the finished product:undefined undefined

    B@NFX5J`KZ)N.png

    GHDTS{4R9_D.png

    Kotlin/Java

  • Custom Cape Module
    LarissaL Larissa

    @Koitoyuu 奶思

    Kotlin/Java

  • Fake FPS Module
    LarissaL Larissa

    @koitoyuu so good i love u ❤️

    Kotlin/Java

  • A dynamic Crosshair and Add method.
    LarissaL Larissa

    @aftery said in A dynamic Crosshair and Add method.:

    looks very complicated for something that looks worse than the 1.6 crosshair, nice release though

    Thank you, maybe I will improve it in the future!😊

    Kotlin/Java

  • A dynamic Crosshair and Add method.
    LarissaL Larissa

    English: I think the original version of Minecraft is not very good-looking, so I wrote a new crosshair and I will tell you the complete adding method.
    Chinese: 我认为mc原版的指针不是很好看,所以我写了一个新的crosshair并且我会告诉你完整的添加方法.

    First,you should add these to the Renderutils.
    首先,你需要添加这些进入显示工具包.

    
    public static int width() {
            return new ScaledResolution(Minecraft.getMinecraft()).getScaledWidth();
        }
        public static int height() {
            return new ScaledResolution(Minecraft.getMinecraft()).getScaledHeight();
        }
    
    

    Then,add the method called showcrosshair to the mixinguiingame.
    然后,添加展示指针的方法在mixinguiingame中.

    
    @Overwrite
        protected boolean showCrosshair() {
            Minecraft mc = Minecraft.getMinecraft();
            if (mc.gameSettings.showDebugInfo && !mc.thePlayer.hasReducedDebug()
                    && !mc.gameSettings.reducedDebugInfo) {
                return false;
            } else if (mc.playerController.isSpectator()) {
                if (mc.pointedEntity != null) {
                    return true;
                } else {
                    if (mc.objectMouseOver != null
                            && mc.objectMouseOver.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) {
                        BlockPos blockpos = mc.objectMouseOver.getBlockPos();
    
                        return mc.theWorld.getTileEntity(blockpos) instanceof IInventory;
                    }
                    return false;
                }
    
            }
            return !LiquidBounce.moduleManager.getModule(HUD.class).getState();
        }
    
    

    Finally,add the codes into the Module:HUD.
    最后,添加代码进入模块:HUD.

    
    @EventTarget
        public void drawRender2D(Render2DEvent render2DEvent){
            int lrs1 = RenderUtils.width();
            int lrs2 = RenderUtils.height();
            if (!mc.thePlayer.isSprinting()) {
                Gui.drawRect(lrs1 / 2 - 3 - 3, lrs2 / 2, lrs1 / 2 + 6 - 8, lrs2 / 2 + 2 - 1, new Color(255,255,255, 255).getRGB());
                RenderUtils.drawBorderedRect(lrs1 / 2 - 6, lrs2 / 2, lrs1 / 2 - 2, lrs2 / 2 + 1,0.7582394175F, new Color(0,0,0,255).getRGB(), new Color(255, 190, 255, 0).getRGB());
                Gui.drawRect(lrs1 / 2 + 6 - 3, lrs2 / 2, lrs1 / 2 + 10 - 3, lrs2 / 2 + 1, new Color(255,255,255, 255).getRGB());
                RenderUtils.drawBorderedRect(lrs1 / 2 + 3, lrs2 / 2, lrs1 / 2 + 7, lrs2 / 2 + 1,0.7635230967F, new Color(0,0,0,255).getRGB(), new Color(255, 190, 255, 0).getRGB());
                Gui.drawRect(lrs1 / 2, lrs2 / 2 - 6, lrs1 / 2 + 1, lrs2 / 2 - 2, new Color(255,255,255, 255).getRGB());
                RenderUtils.drawBorderedRect(lrs1 / 2 + 1 - 1, lrs2 / 2 - 6, lrs1 / 2 + 1, lrs2 / 2 - 2,0.7572856197F, new Color(0,0,0,255).getRGB(), new Color(255, 190, 255, 0).getRGB());
                Gui.drawRect(lrs1 / 2, lrs2 / 2 + 6 - 3, lrs1 / 2 + 1, lrs2 / 2 + 7, new Color(255,255,255, 255).getRGB());
                RenderUtils.drawBorderedRect(lrs1 / 2, lrs2 / 2 + 6 - 3, lrs1 / 2 + 1, lrs2 / 2 + 10 - 3,0.7543869547F, new Color(0,0,0,255).getRGB(), new Color(255, 190, 255, 0).getRGB());
                Gui.drawRect(lrs1 / 2, lrs2 / 2, lrs1 / 2 + 1, lrs2 / 2 + 1, new Color(255,255,255, 255).getRGB());
                RenderUtils.drawBorderedRect(lrs1 / 2, lrs2 / 2, lrs1 / 2 + 1, lrs2 / 2 + 1,0.7543869547F, new Color(0,0,0,255).getRGB(), new Color(255, 190, 255, 0).getRGB());
            } else {
                Gui.drawRect(lrs1 / 2 + 10 - 19, lrs2 / 2, lrs1 / 2 + 5 - 10, lrs2 / 2 + 1, new Color(255,255,255, 255).getRGB());
                RenderUtils.drawBorderedRect(lrs1 / 2 - 9, lrs2 / 2, lrs1 / 2 - 5, lrs2 / 2 + 1,0.7582394175F, new Color(0,0,0,255).getRGB(), new Color(255, 190, 255, 0).getRGB());
                Gui.drawRect(lrs1 / 2 + 6, lrs2 / 2, lrs1 / 2 + 10, lrs2 / 2 + 1, new Color(255,255,255, 255).getRGB());
                RenderUtils.drawBorderedRect(lrs1 / 2 + 6, lrs2 / 2, lrs1 / 2 + 5 + 5, lrs2 / 2 + 1,0.7635230967F, new Color(0,0,0,255).getRGB(), new Color(255, 190, 255, 0).getRGB());
                Gui.drawRect(lrs1 / 2, lrs2 / 2 - 9, lrs1 / 2 + 1, lrs2 / 2 - 5, new Color(255,255,255, 255).getRGB());
                RenderUtils.drawBorderedRect(lrs1 / 2, lrs2 / 2 - 9, lrs1 / 2 + 1, lrs2 / 2 - 5,0.7572856197F, new Color(0,0,0,255).getRGB(), new Color(255, 190, 255, 0).getRGB());
                Gui.drawRect(lrs1 / 2, lrs2 / 2 + 2 + 4, lrs1 / 2 + 1, lrs2 / 2 + 10, new Color(255,255,255, 255).getRGB());
                RenderUtils.drawBorderedRect(lrs1 / 2, lrs2 / 2 + 3 + 3, lrs1 / 2 + 1, lrs2 / 2 + 3 + 7,0.7543869547F, new Color(0,0,0,255).getRGB(), new Color(255, 190, 255, 0).getRGB());
                Gui.drawRect(lrs1 / 2, lrs2 / 2, lrs1 / 2 + 1, lrs2 / 2 + 1, new Color(255,255,255, 255).getRGB());
                RenderUtils.drawBorderedRect(lrs1 / 2, lrs2 / 2, lrs1 / 2 + 1, lrs2 / 2 + 1,0.7543869547F, new Color(0,0,0,255).getRGB(), new Color(255, 190, 255, 0).getRGB());
            }
        }
    
    

    and this is the ending picture,welcome to use!

    when slient or sprinting
    当静止时和疾跑时

    DC51617C-1275-444F-9713-C163943EE284.jpeg 2FB394E3-E465-41B3-AF87-4405308D09BA.jpeg

    Kotlin/Java

  • A Simple HealthBar TargetHUD
    LarissaL Larissa

    main codes

    
    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.render.RenderUtils
    import net.ccbluex.liquidbounce.value.FloatValue
    import net.minecraft.entity.Entity
    import net.minecraft.entity.player.EntityPlayer
    import java.awt.Color
    import kotlin.math.abs
    import kotlin.math.pow
    
    @ElementInfo(name = "Target")
    class Target : Element() {
    
        private var Health: Float = 0F
        private var EndingTarget: Entity? = null
        private val BarAnimationSpeed = FloatValue("BarAnimationSpeed", 2F, 1F, 9F)
    
        override fun drawElement(): Border {
            val target = (LiquidBounce.moduleManager[KillAura::class.java] as KillAura).target
    
            if (target is EntityPlayer) {
                if (target != EndingTarget || Health < 0 || Health > target.maxHealth ||
                        abs(Health - target.health) < 0.01) {
                    Health = target.health
                }
    
                val width = (38 + Fonts.font40.getStringWidth(target.name))
                        .coerceAtLeast(119)
                        .toFloat()
    
                RenderUtils.drawBorderedRect(3F, 37F, 115F, 42F, 4.2F, Color(16, 16, 16, 255).rgb, Color(10, 10, 10, 100).rgb)
                RenderUtils.drawBorderedRect(3F, 37F, 115F, 42F, 1.2F, Color(255, 255, 255, 180).rgb, Color(255, 180, 255, 0).rgb)
                if (Health > target.health)
                    RenderUtils.drawRect(3F, 37F, (Health / target.maxHealth) * width - 4F,
                            42F, Color(250, 0, 0, 120).rgb)
                RenderUtils.drawRect(3.2F, 37F, (target.health / target.maxHealth) * width - 4F,
                        42F, Color(220, 0, 0, 220).rgb)
                if (Health < target.health)
                    RenderUtils.drawRect((Health / target.maxHealth) * width, 37F,
                            (target.health / target.maxHealth) * width, 42F, Color(44, 201, 144).rgb)
                RenderUtils.drawBorderedRect(3F, 37F, 115F, 42F, 1.2F, Color(255, 255, 255, 180).rgb, Color(255, 180, 255, 0).rgb)
    
    
                Health += ((target.health - Health) / 2.0F.pow(10.0F - BarAnimationSpeed.get())) * RenderUtils.deltaTime
    
                mc.fontRendererObj.drawStringWithShadow("" + target.name, 36F, 22F, 0xFFFFFF)
            }
            EndingTarget = target
            return Border(0F, 0F, 120F, 36F)
        }
    }
    
    

    This is the final effect. He also has the animation of blood deduction and blood recovery. Welcome to use it

    96FF4575-8B60-4EC8-BF98-C1AF4FF433B5.jpeg 2CFC1094-008E-46D9-BD5C-8478C476FA53.jpeg

    Kotlin/Java

  • 好的表格
    LarissaL Larissa

    @taffypoole ok!!

    Kotlin/Java
  • Login

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