Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. Resources
  3. Requests
  4. Java Script Api

Java Script Api

Scheduled Pinned Locked Moved Requests
6 Posts 4 Posters 637 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Bogdan0759B Offline
    Bogdan0759B Offline
    Bogdan0759
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    👍
    0
    • AjaxA Offline
      AjaxA Offline
      Ajax
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        commandblock2
        wrote last edited by
        #3

        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™.

        1 Reply Last reply
        0
        • kawaiinekololisK Offline
          kawaiinekololisK Offline
          kawaiinekololis
          Admin
          wrote last edited by
          #4

          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.

          Bogdan0759B 1 Reply Last reply
          0
          • kawaiinekololisK kawaiinekololis

            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.

            Bogdan0759B Offline
            Bogdan0759B Offline
            Bogdan0759
            wrote last edited by
            #5

            @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)

            1 Reply Last reply
            0
            • C Offline
              C Offline
              commandblock2
              wrote last edited by
              #6

              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.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              About
              • Terms of Service
              • Privacy Policy
              • Status
              • Contact Us
              Downloads
              • Releases
              • Source code
              • License
              Docs
              • Tutorials
              • CustomHUD
              • AutoSettings
              • ScriptAPI
              Community
              • Forum
              • Guilded
              • YouTube
              • Twitter
              • D.Tube
              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups