Giter Site home page Giter Site logo

scriptapi's Introduction

LiquidBounce Script API

LiquidBounce's script API allows the development of custom modules and commands for the client without having to modify its source code. It is based on GraalJS, an ECMAScript 2023 compliant JavaScript implementation built on GraalVM. GraalVM's polyglot functionality enables saemless interoperation between scripts written in JavaScript and the client written in Java and Kotlin. This integration facilitates easy access and utilization of Java's and Minecraft's classes, methods, and fields, making development particularly intuitive for those already familiar with Minecraft modding.

Documentation can be found on our website.

Structure of this repository

  • /examples: Contains example scripts that may be used as a reference.

License

All files in this repository are licensed under the MIT License.

scriptapi's People

Contributors

1zun4 avatar gitvitox avatar lattiahirvio avatar mp0wersdev avatar pepeshki avatar senkju avatar smugnugg avatar unionizing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

scriptapi's Issues

About Scripts

Please add script support for ubuntu. For me at ubuntu scripts doesn't work!

LiquidScript V2

lib/minecraftUtils.js
is written in LiquidScript V1 while the scripts that refer to it were rewritten to LiquidScript V2?

https://scriptapi.liquidbounce.net/net/minecraft/entity/player/EntityPlayer.html
doesn't mention any reach variable

i could only find it in https://scriptapi.liquidbounce.net/net/minecraft/client/multiplayer/PlayerControllerMP.html
but i couldn't find from documentation or scripts how to access that from my script... (e.g. mc.thePlayer object vs net.minecraft.entity.player.EntityPlayer )

very confusing...

new features suggestion

  • make module events work even while the module isnt toggled
  • global event listeners
  • add chat related events (onChatMessage, onServerChat, onCommandExecute)
  • optional script author and version
  • add ability to retrieve commands from script
  • add support for custom gui creation

More Events for ScriptApi [FEATURE]

Describe your feature request.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I'd like to have all of these events (took screenshot from my client) in the ScriptApi. I know you already have some in the script api, but if you could add these, it'd make the ScriptApi MUCH better.

Additional context
Add any other context or screenshots about the feature request here.

ScreenShot of the ones I want:
https://cdn.discordapp.com/attachments/514613503466668033/659118171869020162/unknown.png

https://forum.ccbluex.net/thread.php?id=2278

Fix Broken Drawing API and add new Things to it

The example drawing script draws a rect at x1=10 and y1=10 to x2=200 and y2=200 which means the totall size of the rect is 190x190 hoever the drawn square is 389x389 pixel and it doesn't start at x1=10 and y1=10 but x1=20 and y1=20. In conclusion it seems like the distance and size is always twice the given number.

Also please add a drawRectOutline, drawLine, drawTriangle, drawCircleOutline and drawText with custom fonts.

Suggetions

Add the vclip and the hclip function to the lib
Add things from the old LiquidScript to it, like player.inairspeed, player.strafe.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.