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. [SCRIPTAPI] Will this work? (Core)

[SCRIPTAPI] Will this work? (Core)

Scheduled Pinned Locked Moved ScriptAPI
9 Posts 6 Posters 1.8k 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.
  • G Offline
    G Offline
    Gabriel
    wrote on last edited by Gabriel
    #1

    Here is the code so it can be fixed if its broken, if its not broken, tell me

    ///api_version=2
    (script = registerScript({
        name: "Redesky LongJump",
        version: "1.1",
        authors: ["Arcane, CH"]
    })).import("Core.lib");
    
    var ticks = 0;
    
    module = {
        name: "RedeskyLongJump",
        category: "Movement",
        values: [
            ticksValue = value.createInteger("Ticks", 21, 1, 25),
            timerValue = value.createInteger("Timer", 1.5, 0.1, 3.5),
            xzMultiplier = value.createFloat("XZ Multiplier", 0.9, 0.1, 1),
            yMultiplier = value.createFloat("Y Multiplier", 0.77, 0.1, 1),
            glide = value.createBoolean("Glide", true)
        ],
        onEnable: function() {
            ticks = 0;
        },
        onUpdate: function() {
            if (ticks < ticksValue.get()) {
                mc.timer.timerSpeed = timerValue.get();
                mc.thePlayer.motionY *= yMultiplier.get();
                mc.thePlayer.motionX *= xzMultiplier.get();
                mc.thePlayer.motionZ *= xzMultiplier.get();
    
                mc.thePlayer.jump();
            }
            if (glide.get()) {
                mc.thePlayer.motionY += 0.03;
            }
            ticks++;
        }
    }
    
    O CzechHekC skiddermaster412S 3 Replies Last reply
    0
    • G Gabriel

      Here is the code so it can be fixed if its broken, if its not broken, tell me

      ///api_version=2
      (script = registerScript({
          name: "Redesky LongJump",
          version: "1.1",
          authors: ["Arcane, CH"]
      })).import("Core.lib");
      
      var ticks = 0;
      
      module = {
          name: "RedeskyLongJump",
          category: "Movement",
          values: [
              ticksValue = value.createInteger("Ticks", 21, 1, 25),
              timerValue = value.createInteger("Timer", 1.5, 0.1, 3.5),
              xzMultiplier = value.createFloat("XZ Multiplier", 0.9, 0.1, 1),
              yMultiplier = value.createFloat("Y Multiplier", 0.77, 0.1, 1),
              glide = value.createBoolean("Glide", true)
          ],
          onEnable: function() {
              ticks = 0;
          },
          onUpdate: function() {
              if (ticks < ticksValue.get()) {
                  mc.timer.timerSpeed = timerValue.get();
                  mc.thePlayer.motionY *= yMultiplier.get();
                  mc.thePlayer.motionX *= xzMultiplier.get();
                  mc.thePlayer.motionZ *= xzMultiplier.get();
      
                  mc.thePlayer.jump();
              }
              if (glide.get()) {
                  mc.thePlayer.motionY += 0.03;
              }
              ticks++;
          }
      }
      
      O Offline
      O Offline
      ohno
      wrote on last edited by ohno
      #2

      @gabriel why you did not test it then

      G 1 Reply Last reply
      0
      • O ohno

        @gabriel why you did not test it then

        G Offline
        G Offline
        Gabriel
        wrote on last edited by
        #3

        @ohno I don't feel like it rn.

        ? 1 Reply Last reply
        0
        • G Gabriel

          @ohno I don't feel like it rn.

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

          @gabriel why are you acting like a douche

          ? 1 Reply Last reply
          0
          • ? A Former User

            @gabriel why are you acting like a douche

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

            @mems said in [SCRIPTAPI] Will this work? (Core):

            @gabriel why are you acting like a douche

            trauma

            ? 1 Reply Last reply
            0
            • ? A Former User

              @mems said in [SCRIPTAPI] Will this work? (Core):

              @gabriel why are you acting like a douche

              trauma

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

              @hahayes ahahaha

              1 Reply Last reply
              0
              • G Gabriel

                Here is the code so it can be fixed if its broken, if its not broken, tell me

                ///api_version=2
                (script = registerScript({
                    name: "Redesky LongJump",
                    version: "1.1",
                    authors: ["Arcane, CH"]
                })).import("Core.lib");
                
                var ticks = 0;
                
                module = {
                    name: "RedeskyLongJump",
                    category: "Movement",
                    values: [
                        ticksValue = value.createInteger("Ticks", 21, 1, 25),
                        timerValue = value.createInteger("Timer", 1.5, 0.1, 3.5),
                        xzMultiplier = value.createFloat("XZ Multiplier", 0.9, 0.1, 1),
                        yMultiplier = value.createFloat("Y Multiplier", 0.77, 0.1, 1),
                        glide = value.createBoolean("Glide", true)
                    ],
                    onEnable: function() {
                        ticks = 0;
                    },
                    onUpdate: function() {
                        if (ticks < ticksValue.get()) {
                            mc.timer.timerSpeed = timerValue.get();
                            mc.thePlayer.motionY *= yMultiplier.get();
                            mc.thePlayer.motionX *= xzMultiplier.get();
                            mc.thePlayer.motionZ *= xzMultiplier.get();
                
                            mc.thePlayer.jump();
                        }
                        if (glide.get()) {
                            mc.thePlayer.motionY += 0.03;
                        }
                        ticks++;
                    }
                }
                
                CzechHekC Offline
                CzechHekC Offline
                CzechHek
                wrote on last edited by
                #7

                @gabriel timer = timerValue.get()

                G 1 Reply Last reply
                0
                • G Gabriel

                  Here is the code so it can be fixed if its broken, if its not broken, tell me

                  ///api_version=2
                  (script = registerScript({
                      name: "Redesky LongJump",
                      version: "1.1",
                      authors: ["Arcane, CH"]
                  })).import("Core.lib");
                  
                  var ticks = 0;
                  
                  module = {
                      name: "RedeskyLongJump",
                      category: "Movement",
                      values: [
                          ticksValue = value.createInteger("Ticks", 21, 1, 25),
                          timerValue = value.createInteger("Timer", 1.5, 0.1, 3.5),
                          xzMultiplier = value.createFloat("XZ Multiplier", 0.9, 0.1, 1),
                          yMultiplier = value.createFloat("Y Multiplier", 0.77, 0.1, 1),
                          glide = value.createBoolean("Glide", true)
                      ],
                      onEnable: function() {
                          ticks = 0;
                      },
                      onUpdate: function() {
                          if (ticks < ticksValue.get()) {
                              mc.timer.timerSpeed = timerValue.get();
                              mc.thePlayer.motionY *= yMultiplier.get();
                              mc.thePlayer.motionX *= xzMultiplier.get();
                              mc.thePlayer.motionZ *= xzMultiplier.get();
                  
                              mc.thePlayer.jump();
                          }
                          if (glide.get()) {
                              mc.thePlayer.motionY += 0.03;
                          }
                          ticks++;
                      }
                  }
                  
                  skiddermaster412S Offline
                  skiddermaster412S Offline
                  skiddermaster412
                  wrote on last edited by
                  #8

                  @gabriel 095c5cd8-38a5-48db-9bf8-36924cd967c6-imagen.png best coder 2019

                  1 Reply Last reply
                  0
                  • CzechHekC CzechHek

                    @gabriel timer = timerValue.get()

                    G Offline
                    G Offline
                    Gabriel
                    wrote on last edited by
                    #9

                    @czechhek Thanks.

                    1 Reply Last reply
                    0

                    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