Skip to content

ScriptAPI

A place to ask for help on writing scripts

316 Topics 2.3k Posts
  • How to reference api interface through lbScript

    Unsolved
    2
    0 Votes
    2 Posts
    418 Views
    O
    @ybyyby_-awa Ok sir
  • How do you open the ScriptManager

    Unsolved
    1
    0 Votes
    1 Posts
    201 Views
    No one has replied
  • how to send a S45 packet?

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    P
    @Godden 你要知道这玩意是服务器的包 服务器发送它到你的客户端上
  • How to install liquidbounce text checker api

    Unsolved
    5
    0 Votes
    5 Posts
    869 Views
    Vlad K.V
    @WaterFlex spasibo
  • How to use C09PacketHeldItemChange

    Unsolved
    1
    0 Votes
    1 Posts
    317 Views
    No one has replied
  • LiquidBounce's ScriptApi defines non-function as function

    Solved
    3
    0 Votes
    3 Posts
    667 Views
    kaduvertK
    @CzechHek thanks! that worked but why is the scriptapi incorrect? couldn't it be fixed?
  • how to quene a packet when the packet quene is empty

    Unsolved
    17
    0 Votes
    17 Posts
    3k Views
    kumri owoK
    @Aftery i never said i knew what I was doing, I know a bit of js, but don’t know any scripting api thingy
  • [Question] Is there any way to edit a script without re-opening liquid bounce?

    Unsolved
    4
    0 Votes
    4 Posts
    773 Views
    FaaatPotatoF
    @Arabian i would recommend using core .r scriptname
  • [Request] Scaffold for JartexNetwork.

    9
    0 Votes
    9 Posts
    2k Views
    alipostedA
    @mems aliposted
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    14 Views
  • [CORE] Subscribing to Forge events.

    5
    3 Votes
    5 Posts
    908 Views
    I
    1.8.9 version (?): function register(eventClass, listener) { //we are making reflected event bus to access private fields & methods adaptedBus = new Reflector(MinecraftForge.EVENT_BUS); //getting an actual mod container (it seems that activeModContainer() returns null in LiquidBounce so we are checking for null & redefining to minecraft mod container) activeModContainer = Loader.instance().activeModContainer(); !activeModContainer && (activeModContainer = Loader.instance().getMinecraftModContainer()); //https://github.com/MinecraftForge/MinecraftForge/blob/d06e0ad71b8471923cc809dde58251de8299a143/src/main/java/net/minecraftforge/fml/common/eventhandler/EventBus.java#L58 adaptedBus.listenerOwners.put(listener, activeModContainer); ctr = eventClass.getConstructor(); ctr.setAccessible(true); EVENT = ctr.newInstance(); //don't remove this line because event won't call without it asm = new ASMEventHandler(listener, getMethod(listener, "invoke"), activeModContainer); //registering a new listener EVENT.getListenerList().register(adaptedBus.busID, EventPriority.NORMAL, listener); others = adaptedBus.listeners.get(listener); if (!others) { others = new ArrayList(); adaptedBus.listeners.put(listener, others); } others.add(asm) }
  • Getting variables/objects from other scripts

    Unsolved
    6
    0 Votes
    6 Posts
    963 Views
    CzechHekC
    @idk-my-name Wouldn't that be too intrusive and confusing? I guess it would be better to do importProperties("scriptname") which would add script to list that no such property uses.
  • net.ccbluex.liquidbounce api?

    Unsolved
    2
    0 Votes
    2 Posts
    451 Views
    I
    @uvuvwevwevwe-onyetenyevwe-ugwemubwem-ossas Use Core.lib's function importPackage or import needed classes yourself by using Java.type. LiquidBounce = Java.type('net.ccbluex.liquidbounce.LiquidBounce') [image: 1662887301265-04a1e0dc-a343-4fa9-a748-d5c17aa9d7ce-%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5.png]
  • Subscribing to Forge events?

    Solved
    2
    0 Votes
    2 Posts
    419 Views
    I
    I copied the way of registering methods from https://github.com/MinecraftForge/MinecraftForge/blob/d3f01843f7e7a4f613b5e8113d381fd8747b4343/src/main/java/net/minecraftforge/fml/common/eventhandler/EventBus.java#L65
  • how do i use the c0e packet

    Solved
    3
    0 Votes
    3 Posts
    569 Views
    Ali00035A
    https://scriptapi.liquidbounce.net/net/minecraft/network/play/client/C0EPacketClickWindow.html
  • This topic is deleted!

    Unsolved
    122
    0 Votes
    122 Posts
    8k Views
  • Faking LiquidBounce modules? (KAMI Blue's modules to LiquidBounce ones)

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    Ali00035A
    @plumer-man said in Faking LiquidBounce modules? (KAMI Blue's modules to LiquidBounce ones): i dont think you can do it using script api You can, since importing stuff from other clients work.
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    18 Views
  • How do i read chat

    Solved
    4
    0 Votes
    4 Posts
    621 Views
    Ali00035A
    @8909 https://forums.ccbluex.net/post/33095
  • This topic is deleted!

    Unsolved
    22
    7 Votes
    22 Posts
    449 Views