Skip to content

ScriptAPI

A place to ask for help on writing scripts

316 Topics 2.3k Posts
  • How to get the name of an open mode

    Unsolved
    13
    0 Votes
    13 Posts
    2k Views
    skiddermaster412S
    @ibook mate i made it
  • Help if it's not difficult

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    GooseoG
    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
    900 Views
    GooseoG
    @sigma-bot Lmao
  • Scripting not working

    Solved
    4
    0 Votes
    4 Posts
    586 Views
    The_Shadow_EmpT
    @realfx try to register it bruh, it only register module, not the script itself
  • I need help on a fly script

    Unsolved scriptapi fly vanillafly help firstscript
    6
    0 Votes
    6 Posts
    1k Views
    DreamWasFuckedD
    //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
    1k Views
    ?
    @ilovehacker http://ddg.gg
  • How to keep your head facing the enemy

    Unsolved
    4
    0 Votes
    4 Posts
    565 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
    931 Views
    ?
    @ender1355 works
  • How to detect if I am hitting someone

    Moved
    5
    0 Votes
    5 Posts
    754 Views
    BFFGOLSB
    i mean detect in scripts, not in my screen
  • What is wrong with this code?

    Moved
    3
    0 Votes
    3 Posts
    520 Views
    Plumer ManP
    @skiddermaster412 6 month necro
  • plz help how use blink in script api

    Unsolved
    6
    0 Votes
    6 Posts
    880 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.
  • I send an autoL that can be used (/msg) to chat on the server

    Moved
    4
    0 Votes
    4 Posts
    545 Views
    BFFGOLSB
    @aftery yep
  • How to change the title?

    Moved
    5
    0 Votes
    5 Posts
    771 Views
    A
    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
    808 Views
    Senk JuS
    @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.
  • how to change settings of modules via chat which are made using scripts

    Solved
    19
    0 Votes
    19 Posts
    3k Views
    kaduvertK
    @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
    2k Views
    dntdbtD
    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); }
  • Where would I put core.lib? I'm not very familiar with this sorry

    Unsolved
    3
    0 Votes
    3 Posts
    460 Views
    ?
    put it in your scripts folder with other scripts
  • Help

    Unsolved
    12
    0 Votes
    12 Posts
    2k Views
    LigmaL
    @crazyblueslav with your brain u cant learn javascript or dont
  • .vanish dismount

    Moved
    11
    0 Votes
    11 Posts
    2k Views
    DreamWasFuckedD
    Thanks for aac5 disabler! Works!
  • Help...

    Solved
    6
    0 Votes
    6 Posts
    905 Views
    Its DommeI
    @auto-reply-bot Thank you so much.