Skip to content

Scripts

Share and discover scripts for LiquidBounce

1.0k Topics 9.1k Posts
  • Removal of ScriptAPI v1 support in upcoming b83

    Pinned
    9
    2 Votes
    9 Posts
    2k Views
    ybyyby_ awaY

    @ybyyby_-awa So I can maintain the old version as the new one

  • Publish scripts on LiquidBounce's website

    Pinned
    60
    1 Votes
    60 Posts
    7k Views
    Ali00035A

    @aftery You can still rename the author field if the obfuscation level is lower than the medium obfuscation level

  • Don't use 3rd-party sites to upload scripts

    Pinned Locked
    1
    3 Votes
    1 Posts
    2k Views
    No one has replied
  • AutoL

    3
    0 Votes
    3 Posts
    348 Views
    P

    攻击力太高了吧。。。

  • BarritoneStopper

    2
    0 Votes
    2 Posts
    212 Views
    C

    based on my previous experience in scripting, I believe you need to somehow call the baritone api to make it work, or somehow find a dirty way to call the function that parses the chat. Client.displayChatMessage should only show the chat in the client side instead of tries to send to the server, I am not aware which level baritone deals with the #command. Below is my attempt to ask claude-3-5 to write the script to call the baritone api, it is likely that it's not going to work because I did not feed the baritone doc into it, so it might make up some none-existent api or outdated api. Look only in the 4th section and find what might be useful to you.

    For the ReferenceError: 'Player' is not defined maybe try mc.player. And further look into this https://maven.fabricmc.net/docs/yarn-1.20.4+build.3/index.html for other references.

    Looks like that we might need a better scripting experience now, I have not yet look into that area carefully in the next gen.

    I do appreciate if you can give futher feedback and your work on these, will be quite happy to help.

    Continue session transcript User

    how do I call other baritone's api in fabric with a graaljs environment without explictly any binding into js context and instead use the polygot and Java.type and other graaljs things?

    Assistant

    To call other Baritone's API in Fabric with a GraalJS environment without explicitly binding to the JS context, you can use GraalJS's Polyglot features and Java.type. Here's a general approach:

    Ensure you have the necessary dependencies:

    GraalJS Fabric Baritone

    In your Fabric mod, set up the GraalJS engine and create a context:

    import org.graalvm.polyglot.*; // In your mod's initialization Context context = Context.newBuilder("js") .allowAllAccess(true) .build(); Load and evaluate your JavaScript code: context.eval("js", "your_javascript_code_here"); In your JavaScript code, you can use Java.type to access Java classes, including Baritone's API: // Example JavaScript code var BaritoneBridge = Java.type('baritone.api.BaritoneAPI'); var Settings = Java.type('baritone.api.Settings'); // Get the player's Baritone instance var baritone = BaritoneBridge.getProvider().getPrimaryBaritone(); // Access settings var settings = baritone.getSettings(); // Use Baritone's API function moveToBlock(x, y, z) { baritone.getPathingBehavior().cancelEverything(); baritone.getCustomGoalProcess().setGoalAndPath(new Java.type('baritone.api.pathing.goals.GoalBlock')(x, y, z)); } // Example usage moveToBlock(100, 64, 100); To call JavaScript functions from Java, you can use: Value jsFunction = context.eval("js", "moveToBlock"); jsFunction.execute(100, 64, 100);

    This approach allows you to use Baritone's API in your JavaScript code without explicitly binding it to the JS context. Instead, you're using GraalJS's Java.type to access Java classes and methods directly.

    Remember to handle exceptions and properly close the GraalJS context when you're done:

    context.close();

    Also, make sure you have the necessary permissions and that Baritone is properly initialized in your Fabric environment before attempting to use its API.

  • Donut SMP Esp bypass

    1
    0 Votes
    1 Posts
    157 Views
    No one has replied
  • I need anti-crystal script

    1
    0 Votes
    1 Posts
    104 Views
    No one has replied
  • [Script] GCore 0.1

    17
    0 Votes
    17 Posts
    1k Views
    FataGagerF

    @jester no

  • Manager 3.0 - Breeze through customizing your LiquidBounce

    23
    5 Votes
    23 Posts
    4k Views
    kawaiinekololisK

    "2 years later" says everything.

  • can any1 make a killinsults script for new api script ver?

    2
    0 Votes
    2 Posts
    123 Views
    vn hunggV

    skid liquidbounce minus insult and paste to your FDP fork
    @Quanggytb on youtube

  • I want make minemen fly script

    2
    0 Votes
    2 Posts
    192 Views
    GleepyG

    like blockfly?

  • I need Antifireball script

    3
    0 Votes
    3 Posts
    162 Views
    V

    @chanisthegreat give me discord you

  • [HUD] latest wormy client hud!

    7
    0 Votes
    7 Posts
    1k Views
    chanisthegreatC

    download link broken

  • Command Spy Script Please

    1
    0 Votes
    1 Posts
    310 Views
    No one has replied
  • Music /spotify player

    9
    0 Votes
    9 Posts
    959 Views
    pepeshkiP

    @kawaiinekololis potential bot?

  • TypeScript based API for nextgen

    2
    0 Votes
    2 Posts
    249 Views
    kawaiinekololisK

    Very cool.

  • How 2 bypass GrimAC

    3
    0 Votes
    3 Posts
    2k Views
    G

    bro is playing HUAYUTING server LOL

  • 1 Votes
    3 Posts
    656 Views
    FaaatPotatoF
    Minor update

    Custom alphabets must now be put in one single file. Each one must be placed in a seperate file. The file is created automatically.

    latest

  • [CORE]AutoInsultReloaded

    8
    0 Votes
    8 Posts
    890 Views
    FaaatPotatoF

    @kumri-owo take a look at this post. You're welcome.

  • i need script plsss

    1
    0 Votes
    1 Posts
    225 Views
    No one has replied