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. ScriptAPI
  3. how do i use hclip in the script api,

how do i use hclip in the script api,

Scheduled Pinned Locked Moved Solved ScriptAPI
18 Posts 9 Posters 1.6k Views 1 Watching
  • 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.
  • ? A Former User

    Hello, i'm trying to make a tp fly, how do i call hclip?

    Plumer ManP Offline
    Plumer ManP Offline
    Plumer Man
    wrote on last edited by
    #2

    var v = Java.type("net.ccbluex.liquidbounce.LiquidBounce");
    v.commandManager.executeCommands("hclip 1");

    CzechHekC ? ? 6Sence6 Plumer ManP 5 Replies Last reply
    0
    • Plumer ManP Plumer Man

      var v = Java.type("net.ccbluex.liquidbounce.LiquidBounce");
      v.commandManager.executeCommands("hclip 1");

      CzechHekC Offline
      CzechHekC Offline
      CzechHek
      wrote on last edited by
      #3

      @plumer-man oh no

      1 Reply Last reply
      0
      • Plumer ManP Plumer Man

        var v = Java.type("net.ccbluex.liquidbounce.LiquidBounce");
        v.commandManager.executeCommands("hclip 1");

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

        @plumer-man skidded undefined

        1 Reply Last reply
        1
        • Plumer ManP Plumer Man

          var v = Java.type("net.ccbluex.liquidbounce.LiquidBounce");
          v.commandManager.executeCommands("hclip 1");

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

          @plumer-man ty works

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Aftery
            wrote on last edited by Aftery
            #6

            please try to not rely on the command manager to do simple stuff.
            also hclip will tp you into walls afaik

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

              execute command??? it's 2 lines bro

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

                because everyone is mad, here is the HClip code in java script:

                var blocks = 1;
                var yaw = Math.toRadians(mc.thePlayer.rotationYaw);
                mc.thePlayer.setPosition(mc.thePlayer.posX + (-Math.sin(yaw) * blocks), mc.thePlayer.posY, mc.thePlayer.posZ + (Math.cos(yaw) * blocks));
                

                If you wanna know how this works,
                First line: variable that you can change to make the distance you teleport larger.
                Second line: converts your yaw into radians
                Third line: The method

                mc.thePlayer.setPosition
                

                as its name says, it sets your position, but if you just put, for example, 10 first, its not gonna move you 10 blocks forward, it will move you to position 10, we don't want this, we want to teleport 10 blocks forward. So to solve this you just put

                mc.thePlayer.setPosition(mc.thePlayer.posX + 10, mc.thePlayer.posY, mc.thePlayer.posZ + 10)
                

                this won't necessarily move you forward, but it will work, unlike this,

                mc.thePlayer.setPosition(10,10,10)
                

                Next, this part,

                mc.thePlayer.posX + (-Math.sin(yaw) * blocks)
                

                I can't say what the Math.sin does (because idk honestly) but basically, it determines if blocks should be added or subtracted of the X axis, based in your yaw. Same with the Z part.
                You might be wondering, "why we left the y axis untouched?" its because we don't want to make a vClip (the vclip is more easier just add or subtract your value), but it is still important to put the

                mc.thePlayer.posY
                

                in the code, like i said earlier if we don't put that, either doesn't even load, or you will be teleported to the void.
                So that is my explanation.
                Please pardon me if my english is too broken, and for the vague explanation, i can't understand math very much.

                Edit: forgot to say that you gotta define Math.toRadians, here is the code below:

                Math.toRadians = function(i){
                    return i / 180 * PI;
                }
                
                ? CzechHekC 2 Replies Last reply
                4
                • A Offline
                  A Offline
                  Aftery
                  wrote on last edited by
                  #9

                  because everyone is mad

                  so nobody is mad
                  anyways https://en.wikipedia.org/wiki/Trigonometry

                  1 Reply Last reply
                  0
                  • Plumer ManP Plumer Man

                    var v = Java.type("net.ccbluex.liquidbounce.LiquidBounce");
                    v.commandManager.executeCommands("hclip 1");

                    6Sence6 Offline
                    6Sence6 Offline
                    6Sence
                    wrote on last edited by
                    #10

                    @plumer-man lmao

                    1 Reply Last reply
                    0
                    • Plumer ManP Plumer Man

                      var v = Java.type("net.ccbluex.liquidbounce.LiquidBounce");
                      v.commandManager.executeCommands("hclip 1");

                      Plumer ManP Offline
                      Plumer ManP Offline
                      Plumer Man
                      wrote on last edited by
                      #11

                      @plumer-man 100 perecent no skid no autmon skid

                      1 Reply Last reply
                      0
                      • ? A Former User

                        because everyone is mad, here is the HClip code in java script:

                        var blocks = 1;
                        var yaw = Math.toRadians(mc.thePlayer.rotationYaw);
                        mc.thePlayer.setPosition(mc.thePlayer.posX + (-Math.sin(yaw) * blocks), mc.thePlayer.posY, mc.thePlayer.posZ + (Math.cos(yaw) * blocks));
                        

                        If you wanna know how this works,
                        First line: variable that you can change to make the distance you teleport larger.
                        Second line: converts your yaw into radians
                        Third line: The method

                        mc.thePlayer.setPosition
                        

                        as its name says, it sets your position, but if you just put, for example, 10 first, its not gonna move you 10 blocks forward, it will move you to position 10, we don't want this, we want to teleport 10 blocks forward. So to solve this you just put

                        mc.thePlayer.setPosition(mc.thePlayer.posX + 10, mc.thePlayer.posY, mc.thePlayer.posZ + 10)
                        

                        this won't necessarily move you forward, but it will work, unlike this,

                        mc.thePlayer.setPosition(10,10,10)
                        

                        Next, this part,

                        mc.thePlayer.posX + (-Math.sin(yaw) * blocks)
                        

                        I can't say what the Math.sin does (because idk honestly) but basically, it determines if blocks should be added or subtracted of the X axis, based in your yaw. Same with the Z part.
                        You might be wondering, "why we left the y axis untouched?" its because we don't want to make a vClip (the vclip is more easier just add or subtract your value), but it is still important to put the

                        mc.thePlayer.posY
                        

                        in the code, like i said earlier if we don't put that, either doesn't even load, or you will be teleported to the void.
                        So that is my explanation.
                        Please pardon me if my english is too broken, and for the vague explanation, i can't understand math very much.

                        Edit: forgot to say that you gotta define Math.toRadians, here is the code below:

                        Math.toRadians = function(i){
                            return i / 180 * PI;
                        }
                        
                        ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #12

                        @britishbiscuit Thanks you're code worked the best!, also your english wasn't the worst!

                        1 Reply Last reply
                        0
                        • ? A Former User

                          because everyone is mad, here is the HClip code in java script:

                          var blocks = 1;
                          var yaw = Math.toRadians(mc.thePlayer.rotationYaw);
                          mc.thePlayer.setPosition(mc.thePlayer.posX + (-Math.sin(yaw) * blocks), mc.thePlayer.posY, mc.thePlayer.posZ + (Math.cos(yaw) * blocks));
                          

                          If you wanna know how this works,
                          First line: variable that you can change to make the distance you teleport larger.
                          Second line: converts your yaw into radians
                          Third line: The method

                          mc.thePlayer.setPosition
                          

                          as its name says, it sets your position, but if you just put, for example, 10 first, its not gonna move you 10 blocks forward, it will move you to position 10, we don't want this, we want to teleport 10 blocks forward. So to solve this you just put

                          mc.thePlayer.setPosition(mc.thePlayer.posX + 10, mc.thePlayer.posY, mc.thePlayer.posZ + 10)
                          

                          this won't necessarily move you forward, but it will work, unlike this,

                          mc.thePlayer.setPosition(10,10,10)
                          

                          Next, this part,

                          mc.thePlayer.posX + (-Math.sin(yaw) * blocks)
                          

                          I can't say what the Math.sin does (because idk honestly) but basically, it determines if blocks should be added or subtracted of the X axis, based in your yaw. Same with the Z part.
                          You might be wondering, "why we left the y axis untouched?" its because we don't want to make a vClip (the vclip is more easier just add or subtract your value), but it is still important to put the

                          mc.thePlayer.posY
                          

                          in the code, like i said earlier if we don't put that, either doesn't even load, or you will be teleported to the void.
                          So that is my explanation.
                          Please pardon me if my english is too broken, and for the vague explanation, i can't understand math very much.

                          Edit: forgot to say that you gotta define Math.toRadians, here is the code below:

                          Math.toRadians = function(i){
                              return i / 180 * PI;
                          }
                          
                          CzechHekC Offline
                          CzechHekC Offline
                          CzechHek
                          wrote on last edited by CzechHek
                          #13

                          @britishbiscuit anyways
                          @Mimikyuin

                          MovementUtils = Java.type("net.ccbluex.liquidbounce.utils.MovementUtils")
                          
                          MovementUtils.strafe(distance) to move in a direction according to WASD
                          
                          MovementUtils.forward(distance)...... regardless of WASD
                          
                          
                          
                          yorik100Y 1 Reply Last reply
                          0
                          • CzechHekC CzechHek

                            @britishbiscuit anyways
                            @Mimikyuin

                            MovementUtils = Java.type("net.ccbluex.liquidbounce.utils.MovementUtils")
                            
                            MovementUtils.strafe(distance) to move in a direction according to WASD
                            
                            MovementUtils.forward(distance)...... regardless of WASD
                            
                            
                            
                            yorik100Y Offline
                            yorik100Y Offline
                            yorik100
                            wrote on last edited by
                            #14

                            @czechhek said in how do i use hclip in the script api,:

                            @britishbiscuit anyways
                            @Mimikyuin

                            MovementUtils = Java.type("net.ccbluex.liquidbounce.utils.MovementUtils")
                            
                            MovementUtils.strafe(distance) to move in a direction according to WASD
                            
                            MovementUtils.forward(distance)...... regardless of WASD
                            
                            
                            

                            I can guess that it won't go through blocks, unlike actually hclipping

                            ? 1 Reply Last reply
                            0
                            • yorik100Y yorik100

                              @czechhek said in how do i use hclip in the script api,:

                              @britishbiscuit anyways
                              @Mimikyuin

                              MovementUtils = Java.type("net.ccbluex.liquidbounce.utils.MovementUtils")
                              
                              MovementUtils.strafe(distance) to move in a direction according to WASD
                              
                              MovementUtils.forward(distance)...... regardless of WASD
                              
                              
                              

                              I can guess that it won't go through blocks, unlike actually hclipping

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

                              @yorik100 said in how do i use hclip in the script api,:

                              @czechhek said in how do i use hclip in the script api,:

                              @britishbiscuit anyways
                              @Mimikyuin

                              MovementUtils = Java.type("net.ccbluex.liquidbounce.utils.MovementUtils")
                              
                              MovementUtils.strafe(distance) to move in a direction according to WASD
                              
                              MovementUtils.forward(distance)...... regardless of WASD
                              
                              
                              

                              I can guess that it won't go through blocks, unlike actually hclipping

                              it's the same...

                              chrome_O5wDPR1Ew1.png

                              yorik100Y 1 Reply Last reply
                              0
                              • ? A Former User

                                @yorik100 said in how do i use hclip in the script api,:

                                @czechhek said in how do i use hclip in the script api,:

                                @britishbiscuit anyways
                                @Mimikyuin

                                MovementUtils = Java.type("net.ccbluex.liquidbounce.utils.MovementUtils")
                                
                                MovementUtils.strafe(distance) to move in a direction according to WASD
                                
                                MovementUtils.forward(distance)...... regardless of WASD
                                
                                
                                

                                I can guess that it won't go through blocks, unlike actually hclipping

                                it's the same...

                                chrome_O5wDPR1Ew1.png

                                yorik100Y Offline
                                yorik100Y Offline
                                yorik100
                                wrote on last edited by yorik100
                                #16

                                @sigma-bot said in how do i use hclip in the script api,:

                                @yorik100 said in how do i use hclip in the script api,:

                                @czechhek said in how do i use hclip in the script api,:

                                @britishbiscuit anyways
                                @Mimikyuin

                                MovementUtils = Java.type("net.ccbluex.liquidbounce.utils.MovementUtils")
                                
                                MovementUtils.strafe(distance) to move in a direction according to WASD
                                
                                MovementUtils.forward(distance)...... regardless of WASD
                                
                                
                                

                                I can guess that it won't go through blocks, unlike actually hclipping

                                it's the same...

                                chrome_O5wDPR1Ew1.png

                                No it's not.

                                mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + (-Math.sin(yaw) - blocks), mc.thePlayer.posZ + (Math.cos(yaw) - blocks));
                                

                                That's what you put in clipper.

                                ? 1 Reply Last reply
                                0
                                • yorik100Y yorik100

                                  @sigma-bot said in how do i use hclip in the script api,:

                                  @yorik100 said in how do i use hclip in the script api,:

                                  @czechhek said in how do i use hclip in the script api,:

                                  @britishbiscuit anyways
                                  @Mimikyuin

                                  MovementUtils = Java.type("net.ccbluex.liquidbounce.utils.MovementUtils")
                                  
                                  MovementUtils.strafe(distance) to move in a direction according to WASD
                                  
                                  MovementUtils.forward(distance)...... regardless of WASD
                                  
                                  
                                  

                                  I can guess that it won't go through blocks, unlike actually hclipping

                                  it's the same...

                                  chrome_O5wDPR1Ew1.png

                                  No it's not.

                                  mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + (-Math.sin(yaw) - blocks), mc.thePlayer.posZ + (Math.cos(yaw) - blocks));
                                  

                                  That's what you put in clipper.

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

                                  @yorik100 How is it not the same
                                  Edit: bruh that's the wrong codes
                                  Edit 2: why would you change y and z position

                                  1 Reply Last reply
                                  0
                                  • dntdbtD Offline
                                    dntdbtD Offline
                                    dntdbt
                                    wrote on last edited by dntdbt
                                    #18

                                    ok

                                    module.on("enable", function() {
                                        Clip(10, 0);
                                    })
                                    //[....]
                                    function Clip(hClip, vClip) {
                                        mc.thePlayer.setPosition(mc.thePlayer.posX - Math.sin(mc.thePlayer.rotationYaw * Math.PI / 180) * hClip, mc.thePlayer.posY + vClip, mc.thePlayer.posZ + Math.cos(mc.thePlayer.rotationYaw * Math.PI / 180) * hClip);
                                    }
                                    
                                    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