Skip to content

ScriptAPI

321 Topics 2.3k Posts

A place to ask for help on writing scripts

  • This topic is deleted!

    8
    1
    0 Votes
    8 Posts
    90 Views
  • [CORE] Module

    21
    0 Votes
    21 Posts
    7k Views
    yorik100Y
    @idk-my-name said in [CORE] Module: @gabriel Lie. Good AC devs dont look into client source codes I'd agree with that mostly but if the bypass is doing very specific stuff and that bypass is open source, it is quite east to fix (like a disabler for example)
  • [HELP] MoveSpeed

    13
    1
    0 Votes
    13 Posts
    3k Views
    O
    function getBaseMoveSpeed() { var baseSpeed = 0.2875 if (mc.thePlayer.isPotionActive(Potion.moveSpeed)) { baseSpeed *= 1.0 + 0.2 * (mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).getAmplifier() + 1) } return baseSpeed }
  • [HELP] How to us Core.lib

    13
    0 Votes
    13 Posts
    4k Views
    CzechHekC
    @zhao-yun No, why should it give you hints? Your expectations are a bit off. Start off by looking at code of already existing Core scripts. https://github.com/CzechHek/Core/tree/master/Scripts
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    50 Views
  • Help writing a custom prison mining script

    21
    0 Votes
    21 Posts
    10k Views
    P
    thx for the help
  • Reading packet data?

    3
    0 Votes
    3 Posts
    900 Views
    P
    I've also come across a solution for this. Although I'm not quite sure if this is working properly because when breaking a carrot, I detect two packets both with the action of START_DESTROY_BLOCK, and nothing else. For now this seems to suffice. var packetDig = Java.type("net.minecraft.network.play.client.C07PacketPlayerDigging"); module.on("packet", function(eventData) { var packet = eventData.getPacket(); if (packet instanceof packetDig) { Chat.print("Stat: " + packet.getStatus()); Chat.print("Pos: " + packet.getPosition()); Chat.print("Facing: " + packet.getFacing()); //eventData.cancelEvent(); } });
  • How i can create three+ modules in one js file using Core?

    3
    0 Votes
    3 Posts
    652 Views
    [deleted][
    @CzechHek thank you!
  • get block texture and blur

    2
    0 Votes
    2 Posts
    647 Views
    LitelyL
    image //8chars
  • How to use LiquidBounce's rotations utils in a script?

    3
    0 Votes
    3 Posts
    2k Views
    yorik100Y
    @CzechHek said in How to use LiquidBounce's rotations utils in a script?: I don't know what isn't clear to you. Here is an example: if (e.getEventState() == "PRE") { entity = getNearestTarget(EntityZombie); diffX = entity.posX - mc.thePlayer.posX; diffY = entity.posY - mc.thePlayer.posY; diffZ = entity.posZ - mc.thePlayer.posZ; rotation = new Rotation((Math.atan2(diffZ, diffX) * 180 / Math.PI) - 90, -(Math.atan2(diffY, Math.sqrt(diffX * diffX + diffZ * diffZ)) * 180 / Math.PI)); limitedRotation = RotationUtils.limitAngleChange(RotationUtils.serverRotation, rotation, 20); RotationUtils.setTargetRotation(limitedRotation); //limitedRotation.toPlayer(mc.thePlayer); } If I understood properly, it should rotate at the closest zombie with a rotation speed of 20 max
  • Help for script start

    2
    0 Votes
    2 Posts
    449 Views
    As丶OneA
    https://liquidbounce.net/docs/ScriptAPI/Getting Started
  • v2 api script scripts not identified in liquidbounce.

    Solved
    10
    0 Votes
    10 Posts
    3k Views
    robertitohackR
    @CzechHek Thanks, it's solved.
  • ClassProvider in scripts

    8
    0 Votes
    8 Posts
    2k Views
    bestnubB
    @infAura so you can join 1.16 server? and with ViaFabric you also can join older version like in Sigma
  • This topic is deleted!

    5
    0 Votes
    5 Posts
    45 Views
  • How to add a code to my killaura.class

    2
    0 Votes
    2 Posts
    635 Views
    No one has replied
  • how to code a scaffold with packet rotations?

    5
    0 Votes
    5 Posts
    1k Views
    dd1dpla1D
    @ruado_Vn thanks
  • [SUPPORT] Will this script work?

    9
    0 Votes
    9 Posts
    2k Views
    C
    @VisionFX Yeah that's it. Most public ac can't detect it. The one that could do is horizon. Probably because hitting people whose has hurttime will make motionXZ *= 0.6.
  • Simulate a click

    6
    0 Votes
    6 Posts
    2k Views
    CzechHekC
    @yorik100 https://docs.oracle.com/javase/7/docs/api/java/awt/Robot.html im not a robot
  • How to code a blockEsp script?

    5
    0 Votes
    5 Posts
    2k Views
    Azure1A
    it's the waypoints module if im not wrong, you set a location and there will be some kind of tracker to it
  • Delay packets but when disabling send every packets that were delayed

    1
    0 Votes
    1 Posts
    614 Views
    No one has replied