Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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. Chinese
  3. 请问我该如何学习编写用于Liquidbonce的JS

请问我该如何学习编写用于Liquidbonce的JS

Scheduled Pinned Locked Moved Chinese
12 Posts 6 Posters 4.1k 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.
  • BaierB Offline
    BaierB Offline
    Baier
    wrote on last edited by
    #1

    萌新有很多疑问
    1.js是前端的东西是怎么被水影引用的(暂时懂一点点)
    2.如果我要学习的话我看前端js的教程可以吗?感觉相差甚远,想把时间花在有用的地方。
    大佬们求解555

    1 Reply Last reply
    1
    • 浩楠浩 Offline
      浩楠浩 Offline
      浩楠
      wrote on last edited by
      #2

      用大佬的js吧 自己重头开始学js不太现实
      (啊啊啊1.12.2的花雨庭什么时候能用js啊)

      1 Reply Last reply
      1
      • BaierB Offline
        BaierB Offline
        Baier
        wrote on last edited by Baier
        #3

        @浩楠 好的大佬,但是还是想学习,别人都可以写为什么我不能写555
        想学写js不仅仅是为了用啥的,更多还是想学undefined

        1 Reply Last reply
        1
        • C Offline
          C Offline
          commandblock2
          wrote on last edited by commandblock2
          #4

          浏览器里和node.js里用的js解释器都是v8(Firefox 的是SpiderMonkey)。而LB目前的js解释器是nashorn,文档在这。要写給LB用的js只需要知道点js的语法和一些nashorn的特殊的地方,然后剩下的就是看示例,LB的源码和mc的源码了,前端教程没太大用。这个是mc里可以供你调用的东西,比如mc.thePlayer.motionY = 0.42,如果你要用调用LB的某些东西估计就只能看LB源码了(像LiquidBounce.moduleManager.getModule("killaura").target = null)。
          Edit:以后没准会换成graalvm,那样的话就爽了

          BaierB 1 Reply Last reply
          1
          • C commandblock2

            浏览器里和node.js里用的js解释器都是v8(Firefox 的是SpiderMonkey)。而LB目前的js解释器是nashorn,文档在这。要写給LB用的js只需要知道点js的语法和一些nashorn的特殊的地方,然后剩下的就是看示例,LB的源码和mc的源码了,前端教程没太大用。这个是mc里可以供你调用的东西,比如mc.thePlayer.motionY = 0.42,如果你要用调用LB的某些东西估计就只能看LB源码了(像LiquidBounce.moduleManager.getModule("killaura").target = null)。
            Edit:以后没准会换成graalvm,那样的话就爽了

            BaierB Offline
            BaierB Offline
            Baier
            wrote on last edited by
            #5

            @commandblock2 谢谢大佬,磕头了

            1 Reply Last reply
            1
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              水影js涉及到的算法应该用不到前端js的高级货
              你需要学习:
              Minecraft自带函数、数据包类等;
              js的一些基础知识;
              (可选)算法知识;
              全部学完=大神√

              BaierB NinjaMakiN 2 Replies Last reply
              1
              • ? A Former User

                水影js涉及到的算法应该用不到前端js的高级货
                你需要学习:
                Minecraft自带函数、数据包类等;
                js的一些基础知识;
                (可选)算法知识;
                全部学完=大神√

                BaierB Offline
                BaierB Offline
                Baier
                wrote on last edited by
                #7

                @Anonzme 很仔细,爱了爱了

                ? 1 Reply Last reply
                1
                • ? A Former User

                  水影js涉及到的算法应该用不到前端js的高级货
                  你需要学习:
                  Minecraft自带函数、数据包类等;
                  js的一些基础知识;
                  (可选)算法知识;
                  全部学完=大神√

                  NinjaMakiN Offline
                  NinjaMakiN Offline
                  NinjaMaki
                  wrote on last edited by
                  #8

                  @Anonzme 呃这些东西很简单的,随便找几个JS看看就会了

                  BaierB 1 Reply Last reply
                  1
                  • NinjaMakiN NinjaMaki

                    @Anonzme 呃这些东西很简单的,随便找几个JS看看就会了

                    BaierB Offline
                    BaierB Offline
                    Baier
                    wrote on last edited by
                    #9

                    @NinjaMaki 那是您不是我呜呜呜

                    1 Reply Last reply
                    1
                    • S Offline
                      S Offline
                      stopbanningmelol
                      Banned
                      wrote on last edited by stopbanningmelol
                      #10
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • BaierB Baier

                        @Anonzme 很仔细,爱了爱了

                        ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by A Former User
                        #11

                        @Baier Minecraft类文档在这:scriptapi.liquidbounce.net

                        BaierB 1 Reply Last reply
                        1
                        • ? A Former User

                          @Baier Minecraft类文档在这:scriptapi.liquidbounce.net

                          BaierB Offline
                          BaierB Offline
                          Baier
                          wrote on last edited by
                          #12

                          @Anonzme 好的谢谢!

                          1 Reply Last reply
                          1

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          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