ScriptAPI

A place to ask for help on writing scripts

298 Topics 2.2k Posts
  • toggled modules

    Unsolved
    12
    0 Votes
    12 Posts
    327 Views

    @gooseo
    This should work:

    moduleManager.getModule("KillAura").getState(); // boolean
  • How to get the head of the enemy

    Unsolved
    7
    0 Votes
    7 Posts
    230 Views

    @auto-reply-bot Thank you very much, but I can't understand

  • How to get the name of an open mode

    Unsolved
    13
    0 Votes
    13 Posts
    233 Views

    @ibook mate i made it :axohmm:

  • Help if it's not difficult

    Solved
    10
    0 Votes
    10 Posts
    283 Views

    i dont understand with just "player.health"
    the only way i know is

    mc.thePlayer.getHealth()

    i think

  • Setting player speed..

    Solved
    5
    0 Votes
    5 Posts
    207 Views

    @sigma-bot Lmao

  • Scripting not working

    Solved
    4
    0 Votes
    4 Posts
    108 Views

    @realfx try to register it bruh, it only register module, not the script itself

  • I need help on a fly script

    Unsolved
    6
    0 Votes
    6 Posts
    373 Views

    //api_version=2
    (script = registerScript({
    name: "VerusVanillaFly",
    authors: ["SomeHax"],
    version: "1.0"
    })).import("Core.lib");

    module = {
    category: "Fun",
    values: [
    boostMode = value.createList("BoostMode", ["None", "Static", "Gradual"], "Gradual"),
    boostTicksValue = value.createInteger("BoostTicks", 20, 1, 10000),
    boostMotion = value.createFloat("BoostMotion", 9, 1, 9.87)
    ],
    onEnable: function() {
    boostTicks = 0;
    if (boostMode.get() != "None" && mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 3.0001, 0).expand(0, 0, 0)).isEmpty()) {
    mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 3.0001, mc.thePlayer.posZ, false));
    mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false));
    mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
    }
    mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.42, mc.thePlayer.posZ);
    },
    onDisable: function() {
    if (boostTicks > 0) {
    mc.thePlayer.motionX = 0;
    mc.thePlayer.motionY = 0;
    mc.thePlayer.motionZ = 0;
    }
    },
    onUpdate: function() {
    mc.thePlayer.motionX = 0;
    mc.thePlayer.motionY = 0;
    mc.thePlayer.motionZ = 0;

    if (!boostTicks && mc.thePlayer.hurtTime > 0) {
    boostTicks = boostMode.get() != "None" ? boostTicksValue.get() : 0;
    }

    var motion;
    if (boostTicks > 0) {
    switch (boostMode.get()) {
    case "Static":
    motion = boostMotion.get();
    break;
    case "Gradual":
    motion = boostTicks / boostTicksValue.get() * boostMotion.get();
    break;
    }
    boostTicks--;
    } else {
    motion = 0.25;
    }

    MovementUtils.strafe(motion);
    },
    onPacket: function(event) {
    var packet = event.getPacket();
    if (packet instanceof C03PacketPlayer) {
    packet.onGround = true;
    }
    },
    onJump: function() {
    mc.thePlayer.motionX = 0;
    mc.thePlayer.motionY = 1;
    mc.thePlayer.motionZ = 0;
    }

    }

  • help,how to set delay in script

    Moved
    9
    0 Votes
    9 Posts
    272 Views

    @ilovehacker http://ddg.gg

  • How to keep your head facing the enemy

    Unsolved
    4
    0 Votes
    4 Posts
    125 Views

    @ibook compute the yaw and pitch you need to rotate to in order to aim for the player. search the old forums for killaura if you want to skid.

  • how do i make it rain

    Solved
    7
    1 Votes
    7 Posts
    235 Views

    @ender1355 works

  • How to detect if I am hitting someone

    Moved
    5
    0 Votes
    5 Posts
    197 Views

    i mean detect in scripts, not in my screen👍

  • What is wrong with this code?

    Moved
    3
    0 Votes
    3 Posts
    205 Views

    @skiddermaster412 6 month necro

  • plz help how use blink in script api

    Unsolved
    6
    0 Votes
    6 Posts
    218 Views

    @ez-chan-osu You need to create a queue, then cancel all packets and put them in the queue. Then get all packets from the queue and send them.

  • 0 Votes
    4 Posts
    118 Views

    @aftery yep

  • How to change the title?

    Moved
    5
    0 Votes
    5 Posts
    196 Views

    and it looks like you dont know how to use search yet

  • Cant load minecraft classes with Java.type on 1.12.2 b73

    Solved
    5
    0 Votes
    5 Posts
    142 Views

    @ethan-kleine We are working on an entirely new version of LiquidBounce for latest Minecraft. Older versions like LiquidBounce 1.12.2 won't receive updates anymore, instead there will only be one LiquidBounce which is compatible with Minecraft 1.8 - 1.12.2 servers.

  • 0 Votes
    19 Posts
    653 Views

    @FaaatPotato
    yeah, your example works on b73, previously played with b72. sorry about that
    seems to be fixed in b73, sorry to bother you all

  • how do i use hclip in the script api,

    Solved
    18
    0 Votes
    18 Posts
    336 Views

    ok

    module.on("enable", function() { Clip(10, 0); }) //[....] function Clip(hClip, vClip) { mc.thePlayer.setPosition(mc.thePlayer.posX - Math.sin(mc.thePlayer.rotationYaw * Math.PI / 180) * hClip, mc.thePlayer.posY + vClip, mc.thePlayer.posZ + Math.cos(mc.thePlayer.rotationYaw * Math.PI / 180) * hClip); }
  • 0 Votes
    3 Posts
    151 Views

    put it in your scripts folder with other scripts

  • Help

    Unsolved
    12
    0 Votes
    12 Posts
    295 Views

    @crazyblueslav with your brain u cant
    learn javascript or dont