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. ScriptAPI
  3. [help] Error in the script

[help] Error in the script

Scheduled Pinned Locked Moved ScriptAPI
27 Posts 6 Posters 11.0k 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.
  • Its DommeI Its Domme

    I wanted to write a timer that will turn on and off every second, but the script did not appear

    /// api_version=2
    var script = registerScript({
        name: "AacTimer",
        version: "1.0.0",
        authors: ["ItsDoome1"]
    });
    script.registerModule({
        name: "AacTimer",
        category: "Fun",
        description: "Timer For Aac"
    }, function (module) {
    });
    module.on("update", function() {
    });
    var secounds = java.("java.lang.System.currentTimeMillis");
    function timer() {
    moduleManager.getModule("Timer").getValue("Speed").set(1.5); //Делает таймер со скоростью 1.5
    };
    function timer1() {
    moduleManager.getModule("Timer").getValue("Speed").set(1.0); //Делает таймер со скоростью 1.0
    }
    if secounds = 1000 {
    	timer()
    };
    if secounds = 2000 {
    	timer1()
    };
    module.on("disable", function() {
    });
    
    I Offline
    I Offline
    idk my name
    wrote on last edited by idk my name
    #3

    @its-domme Requires dyskord.cc/Core.lib

    (script = registerScript({
        name: "Sex Timer",
        authors: ["idk my name"],
        version: "1.0"
    })).import("Core.lib");
    
    module = {
        category: "Fun",
        description: "Allows you to sex without showing your penis.",
        onDisable: function() {
            mc.timer.timerSpeed = 1.0
        }
        onUpdate: function () {
            if (mc.thePlayer.ticksExisted % 10 == 0) mc.timer.timerSpeed = 1.5
            if (mc.thePlayer.ticksExisted % 20 == 0) { 
                mc.timer.timerSpeed = 1.0
                mc.thePlayer.ticksExisted = 0
            }
        }
    }
    
    Its DommeI 1 Reply Last reply
    1
    • I idk my name

      @its-domme Requires dyskord.cc/Core.lib

      (script = registerScript({
          name: "Sex Timer",
          authors: ["idk my name"],
          version: "1.0"
      })).import("Core.lib");
      
      module = {
          category: "Fun",
          description: "Allows you to sex without showing your penis.",
          onDisable: function() {
              mc.timer.timerSpeed = 1.0
          }
          onUpdate: function () {
              if (mc.thePlayer.ticksExisted % 10 == 0) mc.timer.timerSpeed = 1.5
              if (mc.thePlayer.ticksExisted % 20 == 0) { 
                  mc.timer.timerSpeed = 1.0
                  mc.thePlayer.ticksExisted = 0
              }
          }
      }
      
      Its DommeI Offline
      Its DommeI Offline
      Its Domme
      wrote on last edited by
      #4

      @idk-my-name Hahah I almost died laughing

      I 1 Reply Last reply
      1
      • Its DommeI Its Domme

        @idk-my-name Hahah I almost died laughing

        I Offline
        I Offline
        idk my name
        wrote on last edited by
        #5

        @its-domme died laughing? Hello, laugh, im dad

        1 Reply Last reply
        1
        • DreamWasFuckedD Offline
          DreamWasFuckedD Offline
          DreamWasFucked
          wrote on last edited by
          #6

          lmao why

          moduleManager.getModule("Timer").getValue("Speed").set(1.5);
          

          when you can

          timer.timerSpeed = 1.5;
          
          I Its DommeI 2 Replies Last reply
          1
          • DreamWasFuckedD DreamWasFucked

            lmao why

            moduleManager.getModule("Timer").getValue("Speed").set(1.5);
            

            when you can

            timer.timerSpeed = 1.5;
            
            I Offline
            I Offline
            idk my name
            wrote on last edited by
            #7

            @skidma i just pasted his 'script'

            1 Reply Last reply
            1
            • DreamWasFuckedD DreamWasFucked

              lmao why

              moduleManager.getModule("Timer").getValue("Speed").set(1.5);
              

              when you can

              timer.timerSpeed = 1.5;
              
              Its DommeI Offline
              Its DommeI Offline
              Its Domme
              wrote on last edited by
              #8

              @skidma I started writing scripts not long ago
              1-2days ago read liquidbounce api for the first time

              I 1 Reply Last reply
              1
              • Its DommeI Its Domme

                @skidma I started writing scripts not long ago
                1-2days ago read liquidbounce api for the first time

                I Offline
                I Offline
                idk my name
                wrote on last edited by
                #9

                @its-domme your grammar is the worst in this fucking world

                Its DommeI DreamWasFuckedD 2 Replies Last reply
                1
                • I idk my name

                  @its-domme your grammar is the worst in this fucking world

                  Its DommeI Offline
                  Its DommeI Offline
                  Its Domme
                  wrote on last edited by
                  #10

                  @idk-my-name said in [help] Error in the script:

                  your grammar is the worst in this fucking world

                  Ahah, I didn't fully learn javascirpt

                  I 1 Reply Last reply
                  1
                  • I idk my name

                    @its-domme your grammar is the worst in this fucking world

                    DreamWasFuckedD Offline
                    DreamWasFuckedD Offline
                    DreamWasFucked
                    wrote on last edited by
                    #11

                    @idk-my-name its 100% google translator

                    1 Reply Last reply
                    1
                    • Its DommeI Its Domme

                      @idk-my-name said in [help] Error in the script:

                      your grammar is the worst in this fucking world

                      Ahah, I didn't fully learn javascirpt

                      I Offline
                      I Offline
                      idk my name
                      wrote on last edited by
                      #12

                      @its-domme why are you laughing?
                      also, as fact, in English countries people do not use 'haha' or 'ahah' when typing. They use 'LMAO' as far as i know

                      Its DommeI ? RafayR 3 Replies Last reply
                      1
                      • I idk my name

                        @its-domme why are you laughing?
                        also, as fact, in English countries people do not use 'haha' or 'ahah' when typing. They use 'LMAO' as far as i know

                        Its DommeI Offline
                        Its DommeI Offline
                        Its Domme
                        wrote on last edited by
                        #13

                        @idk-my-name said in [help] Error in the script:

                        why are you laughing?
                        also, as fact, in English countries people do not use 'haha' or 'ahah' when typing. They use 'LMAO' as far as i know

                        Im from rus. Pls send me Core.Lib

                        DreamWasFuckedD I 2 Replies Last reply
                        1
                        • I idk my name

                          @its-domme why are you laughing?
                          also, as fact, in English countries people do not use 'haha' or 'ahah' when typing. They use 'LMAO' as far as i know

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

                          @idk-my-name oh really

                          1 Reply Last reply
                          1
                          • Its DommeI Its Domme

                            @idk-my-name said in [help] Error in the script:

                            why are you laughing?
                            also, as fact, in English countries people do not use 'haha' or 'ahah' when typing. They use 'LMAO' as far as i know

                            Im from rus. Pls send me Core.Lib

                            DreamWasFuckedD Offline
                            DreamWasFuckedD Offline
                            DreamWasFucked
                            wrote on last edited by
                            #15

                            @its-domme rus = rush?

                            I Its DommeI 3 Replies Last reply
                            1
                            • Its DommeI Its Domme

                              @idk-my-name said in [help] Error in the script:

                              why are you laughing?
                              also, as fact, in English countries people do not use 'haha' or 'ahah' when typing. They use 'LMAO' as far as i know

                              Im from rus. Pls send me Core.Lib

                              I Offline
                              I Offline
                              idk my name
                              wrote on last edited by
                              #16

                              @its-domme i have left da link for it

                              1 Reply Last reply
                              1
                              • DreamWasFuckedD DreamWasFucked

                                @its-domme rus = rush?

                                I Offline
                                I Offline
                                idk my name
                                wrote on last edited by
                                #17

                                @skidma yeah

                                1 Reply Last reply
                                1
                                • DreamWasFuckedD DreamWasFucked

                                  @its-domme rus = rush?

                                  Its DommeI Offline
                                  Its DommeI Offline
                                  Its Domme
                                  wrote on last edited by
                                  #18

                                  @skidma No rus = Russia

                                  1 Reply Last reply
                                  1
                                  • DreamWasFuckedD DreamWasFucked

                                    @its-domme rus = rush?

                                    Its DommeI Offline
                                    Its DommeI Offline
                                    Its Domme
                                    wrote on last edited by
                                    #19

                                    @skidma which version is the best elimination now?

                                    DreamWasFuckedD 1 Reply Last reply
                                    1
                                    • Its DommeI Its Domme

                                      @skidma which version is the best elimination now?

                                      DreamWasFuckedD Offline
                                      DreamWasFuckedD Offline
                                      DreamWasFucked
                                      wrote on last edited by
                                      #20

                                      @its-domme b74

                                      Its DommeI 1 Reply Last reply
                                      1
                                      • DreamWasFuckedD DreamWasFucked

                                        @its-domme b74

                                        Its DommeI Offline
                                        Its DommeI Offline
                                        Its Domme
                                        wrote on last edited by
                                        #21

                                        @skidma What? She's not there ...

                                        1 Reply Last reply
                                        1
                                        • I Offline
                                          I Offline
                                          idk my name
                                          wrote on last edited by
                                          #22

                                          @its-domme who is she

                                          Its DommeI 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