Skip to content

ScriptAPI

A place to ask for help on writing scripts

312 Topics 2.3k Posts
  • 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
    867 Views
    ?
    @ilovehacker http://ddg.gg
  • How to keep your head facing the enemy

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

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

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

    Unsolved
    6
    0 Votes
    6 Posts
    634 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
    374 Views
    BFFGOLSB
    @aftery yep
  • How to change the title?

    Moved
    5
    0 Votes
    5 Posts
    557 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
    569 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
    2k 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
    333 Views
    ?
    put it in your scripts folder with other scripts
  • Help

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

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

    Solved
    6
    0 Votes
    6 Posts
    667 Views
    Its DommeI
    @auto-reply-bot Thank you so much.
  • How to turn your head up

    Unsolved
    23
    0 Votes
    23 Posts
    4k Views
    ?
    @its-domme said in How to turn your head up: @caex said in How to turn your head up: hello, person who cant read the instructions before making a script, make sure you satisfy the following conditions: you have access to liquidbounce you have r/w access to the scripts folder you know javascript This all fits me, I know js and read the Script api then why are you asking what to import if you know how to check the freaking src codes
  • Getting the text of Playerlist Tab

    Solved
    17
    0 Votes
    17 Posts
    1k Views
    ?
    if (event.getPacket() instanceof S47PacketPlayerListHeaderFooter) { footer = event.getPacket().getFooter().getUnformattedText() header = event.getPacket().getHeader().getUnformattedText() // getFormattedText() if you want to include formatting codes, not recommended } getters > reflection
  • Remove Messages from chat

    Unsolved
    2
    0 Votes
    2 Posts
    262 Views
    DreamWasFuckedD
    cancel message packet
  • Script support.

    Moved
    13
    0 Votes
    13 Posts
    1k Views
    GridzzG
    @czechhek said in Script support.: @gridzz there should be ///api_version=2 as the first line edit: you had it there before ah Yeah, still doesn't work. What can I do, as I think it's the codes fault. I want to place blocks twice (aka the double clicking) and also set an option to double click on LMB later.