to be specific, version v0.22.0
if you can, because there is one more dependency for enabling script debugging being added in v0.23.0
commandblock2
Posts
-
Cant Load Library -
Cant Load LibraryLooks like that you have similar issue to this issue. Both unable to load the library but with slightly different errors, can you try using an old release before
v0.23.0
to see if it launches? -
Methods with the same name but different arguments possibly causing issuesHi I am also quite interested in about that one, I do know where the remapper implementation is remapper.
Will later try if I can reproduce this, do you mind sharing a example script? Having other project going on at the moment.
Sorry for this low effort answer but do you mind opening a issue on LiquidBounce github? oh and do @commandblock2 (same username) on that issue.
-
BarritoneStopperbased 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 trymc.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.
-
-
how do i use lb on mccedntral without getting javaSOCKET RESET@mems necro and install gentoo idk
-
Alipost meme@ali00035
install gentoo lmao, as you wished -
[JS]TeleportAura 0.7(By Mumy)(updated)@yorik100 is it capable of doing hclip? like the mineplex phase lmao, that would require you to cancel the S08 if you know where exactly the server would send you the S08
-
Verus hitbox@batata said in Verus hitbox:
case "C03 Cancel":
if(e.getPacket() instanceof C02PacketUseEntity) {
if(mc.thePlayer.ticksExisted % 3 != 0) {
e.cancelEvent();
idk, try thiscase "C03 Cancel": if(e.getPacket() instanceof C02PacketUseEntity && e.getPacket().getAction() == C02PacketUseEntity.Action.INTERACT_AT) { // INTERACT_AT or INTERACT or idk e.cancelEvent();
-
Verus hitbox@batata
idk if verus will detect if you just cancel the C02 interact packet but not the C08/C07 packet. you won't even need to disable hitbox if that works -
Please help meeee i need a script@max-0
indeed there is a possibility, but it is likely no one will look into it, but if you can it would be too much to do in the scriptapi and very much likely would have a worse performance, if you just modify the src instead it would be much easier in this case -
please stop using random liquidbounce forks. (also fact of the day 6)@aftery I can't tell if this is a bait, because I don't know anything specific about it. But I still wonder what it has
-
Config for Killaura@lol_-i_know_that_you_see_this
No wonder, I guess thethis.rotationYaw
should be smt likeRotationManager.currentRotation
orRotationManager.serverRotation
's yaw -
[Tutorial]How to debug your scripts in IntelliJ IDEAIntellij idea
Ultimate
only -
Config for Killaura@lol_-i_know_that_you_see_this
I was saying theAtom One Dark Theme
. But yes, white theme sometimes hurt eyes. -
Config for Killaura@lol_-i_know_that_you_see_this
Everyone is using one dark lmao -
fps drop@123 if you
.panic all
do you still have fps drops? -
Is there any HVH server@mems
Is that a chat bot or just boring people -
Problem in Build LB nextGenI download the nextGen as ZIP file and extracted it. (= skip the first step)
That's why you would encounter this problem.
If you rangit clone --recurse-submodules https://github.com/CCBlueX/LiquidBounce
thetheme
submodule will be cloned as well.
You can either chose to learn to use git and clone it recursively or download the theme and unpack it here.
It would be better if you can proxy all your traffic(git/gradle/...) that goes outside of China mainland with you own vpn. -
Netease HuaYuTing Server Infinite Vanilla Fly Code@JvmStatic private final void sendPacketNoEvent(Packet packet) { packets.add(packet); mc.getNetHandler().addToSendQueue(packet); }
????
我不会是上钩了吧