Java Script Api
-
Pls make also script api for Kotlin/Java. because in JavaScript there are very few possibilities, and in Java you are basically writing a mod only integrated into LiquidBounce
-
If it were for Kotlin and/or Java, it wouldn't be a script api, but rather an extension API. You can already write extensions for LB the same way you would write a normal Minecraft mod by just injecting into LiquidBounce's classes, so that's a non-issue. Also, apart from not being able to use external libraries (why would You want that anyway for a lb addon -_-), there are not any limitations with the JS api, both in LiquidBounce for 1.8.x and nextgen. In LiquidBounce 1.8, it uses an older JS syntax standard, but any piece of Java code can still be re-written for it.
-
Just write a mod and put the LiquidBounce as a dependency if you need to use kotlin/java. The only limitations for the script api is that actually you cannot use mixin. Usually there are ways to workaround whatever you are trying to do, but sometimes there are indeed something wrong. typescript support and partial npm ecosystem might be supported soon
.
-
The Script API can do everything a mod can do. It has access to all functions of Java. As @commandblock2 the only limitation is that it cannot use Mixin which you usually don't need because you can use both the LiquidBounce Event API and the Fabric API which already allows you to basically tweak everything about Minecraft.
-
The Script API can do everything a mod can do. It has access to all functions of Java. As @commandblock2 the only limitation is that it cannot use Mixin which you usually don't need because you can use both the LiquidBounce Event API and the Fabric API which already allows you to basically tweak everything about Minecraft.
@kawaiinekololis yes it have all need classes. But the API script itself works a little crooked. That is, yes, you can get everything you need for the LB addon. But the system itself works a little crookedly. And therefore, even a working script can work completely incorrectly. (If there are mistakes in the text, then I apologize, I just don't really know English and therefore I wrote through a translator)
-
Yes the currently script API can be sometimes very annoying to work with, like the calling a api that accepts a float with a number in js, etc. and the error usually is not very straight forward and needs a lot of experience to understand what's going on. we are still trying to improve it. At least you have https://liquidbounce.net/docs/script-api/debugging now, although you cannot create any named variable in the console. btw the docs looks much better than before.