Skip to content

ScriptAPI

A place to ask for help on writing scripts

312 Topics 2.3k Posts
  • How to use C09PacketHeldItemChange

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

    Solved
    3
    0 Votes
    3 Posts
    479 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
    2k 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
    578 Views
    FaaatPotatoF
    @Arabian i would recommend using core .r scriptname
  • [Request] Scaffold for JartexNetwork.

    9
    0 Votes
    9 Posts
    1k 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
    684 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
    694 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
    382 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
    315 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
    453 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
    1k 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
    463 Views
    Ali00035A
    @8909 https://forums.ccbluex.net/post/33095
  • This topic is deleted!

    Unsolved
    22
    7 Votes
    22 Posts
    449 Views
  • Problem With Script

    Solved
    32
    19 Votes
    32 Posts
    6k Views
    Ali00035A
    @aftery said in Problem With Script: after thousands of posts i still dont know whether our friend ender1355 is being serious or not Is it possible to see someone who doesn't play MC anymore being serious.
  • Cant find problem in my code

    Solved
    4
    0 Votes
    4 Posts
    571 Views
    Ali00035A
    @v4peu5er If you can learn Python, it won't be hard for you to learn basics of JS.
  • This topic is deleted!

    Solved
    4
    0 Votes
    4 Posts
    9 Views
  • Adding new modes to modules?

    Unsolved
    2
    0 Votes
    2 Posts
    335 Views
    CzechHekC
    @idk-my-name You would have to add new fields to existing module instances. You could perhaps do that by unregistering the target module and replacing it with a new extended instance.