Skip to content

ScriptAPI

A place to ask for help on writing scripts

309 Topics 2.3k Posts
  • [Question] Is there any way to edit a script without re-opening liquid bounce?

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

    9
    0 Votes
    9 Posts
    552 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
    300 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
    301 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
    226 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
    169 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
    214 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
    400 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
    202 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
    1k 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
    295 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
    197 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.
  • How to make C17PacketCustomPayload packets

    Unsolved
    13
    0 Votes
    13 Posts
    638 Views
    P
    @salvatore-sammarco If the username who told you was "Saffroth" this was not a Geyser spoofer it was a Desync disabler and is patched now.
  • Create Custom GUI

    Unsolved
    7
    0 Votes
    7 Posts
    325 Views
    Y
    @ali00035 not really, just a place where i can store some custom settings that isnt a module, like the vanilla settings, but i guess i'll just use modules
  • Hello. Script not work

    Unsolved
    5
    0 Votes
    5 Posts
    311 Views
    Ali00035A
    @yeahuhhuh I see now, anyways good job on fixing.