How does LiquidBounce load a JavaScript made module, about it's script api?
Private research annotation
Sign in to add a private research label or note.
- User
How does LiquidBounce load a JavaScript made module, about it's script api?
Assistant
Based on the provided repository files, I'll explain how LiquidBounce loads JavaScript modules through its script API:
- User
Can you tell me about how they have managed to run JavaScript with un-obfuscated symbols in a Minecraft obfuscated environment?
Assistant
Based on the provided code, LiquidBounce uses GraalVM's polyglot capabilities to handle JavaScript execution in an obfuscated Minecraft environment. Here are the key aspects:
- Host Access Configuration:
[RedactedContext.newBuilder(language) .allowHostAccess(HostAccess.ALL) // Allows access to all Java classes .allowHostClassLookup { true }The
allowHostAccess(HostAccess.ALL)andallowHostClassLookupsettings allow JavaScript code to interact with Java classes regardless of obfuscation.- Script Context Provider:
From the code, we can see they use a
ScriptContextProviderto set up the bindings:
[Redacted
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.