Skip to content

ScriptAPI

A place to ask for help on writing scripts

316 Topics 2.3k Posts
  • Help writing a custom prison mining script

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

    3
    0 Votes
    3 Posts
    522 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
    425 Views
    [deleted][
    @CzechHek thank you!
  • get block texture and blur

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

    3
    0 Votes
    3 Posts
    917 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
    320 Views
    As丶OneA
    https://liquidbounce.net/docs/ScriptAPI/Getting Started
  • v2 api script scripts not identified in liquidbounce.

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

    8
    0 Votes
    8 Posts
    1k 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
    429 Views
    No one has replied
  • how to code a scaffold with packet rotations?

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

    9
    0 Votes
    9 Posts
    1k 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
    991 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
    885 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
    390 Views
    No one has replied
  • Delay packets sent from server to client (S packets)

    8
    1 Votes
    8 Posts
    2k Views
    yorik100Y
    @CzechHek [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException [22:00:14] [setTimeout/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraft.network.ThreadQuickExitException
  • Where is the mistake?

    9
    0 Votes
    9 Posts
    1k Views
    CzechHekC
    @ButterChicken That's what you were supposed to do. @CzechHek said in Where is the mistake?: @ButterChicken Title messages are often in siblings or smth, print the component and find where the "Victory!" is. Here is the documentation: https://scriptapi.liquidbounce.net/net/minecraft/util/ChatComponentText.html
  • How to determine whether the script is enabled?

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    ButterChickenB
    @CzechHek thanks
  • antivanish ))))

    2
    0 Votes
    2 Posts
    492 Views
    CzechHekC
    The best chances for you is to check S38.
  • I need Matrix AntiBot

    16
    0 Votes
    16 Posts
    3k Views
    Alien GurkeA
    @CzechHek sometimes a bot is shown and you could hit them but most bots will be disabled.