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. Silent Server-side rotating and Checking for the Block beneath you

Silent Server-side rotating and Checking for the Block beneath you

Scheduled Pinned Locked Moved ScriptAPI
5 Posts 5 Posters 1.9k 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.
  • dntdbtD Offline
    dntdbtD Offline
    dntdbt
    wrote on last edited by dntdbt
    #1

    Hello everyone!
    It will be important for me if anybody will answer in this topic

    /1/ In the first case, I'm making a huge script which can bypass some 1.12 servers, so I need to rotate the player's yaw only server-side because it looks awful when your screen is rotating with your head :d

    /2/ Secondly, my new noFall bypass needs to check is there any block in the player's posY-0.01 which will doesn't use mc.thePlayer.onGround class

    Thanks for everyone who know how to solve this and decided to help me! <З

    DreamWasFuckedD I 2 Replies Last reply
    0
    • dntdbtD dntdbt

      Hello everyone!
      It will be important for me if anybody will answer in this topic

      /1/ In the first case, I'm making a huge script which can bypass some 1.12 servers, so I need to rotate the player's yaw only server-side because it looks awful when your screen is rotating with your head :d

      /2/ Secondly, my new noFall bypass needs to check is there any block in the player's posY-0.01 which will doesn't use mc.thePlayer.onGround class

      Thanks for everyone who know how to solve this and decided to help me! <З

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

      @dont_doubt

      var Block = Java.type('net.minecraft.block.Block');
      var BlockPos = Java.type('net.minecraft.util.BlockPos');
      
      if (mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY - 0.01, mc.thePlayer.posZ)).getBlock() == Block.getBlockById(0)) { // Check air block
      
      1 Reply Last reply
      0
      • dntdbtD dntdbt

        Hello everyone!
        It will be important for me if anybody will answer in this topic

        /1/ In the first case, I'm making a huge script which can bypass some 1.12 servers, so I need to rotate the player's yaw only server-side because it looks awful when your screen is rotating with your head :d

        /2/ Secondly, my new noFall bypass needs to check is there any block in the player's posY-0.01 which will doesn't use mc.thePlayer.onGround class

        Thanks for everyone who know how to solve this and decided to help me! <З

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

        @dont_doubt
        if (event.getPacket() instanceof CPacketPlayer) {
        event.getPacket().setYaw(yaw);
        }

        1 Reply Last reply
        0
        • FaaatPotatoF Offline
          FaaatPotatoF Offline
          FaaatPotato
          wrote on last edited by
          #4

          idk if its correct but

          var RotationUtils = Java.type('net.ccbluex.liquidbounce.utils.RotationUtils');
          var Rotation = Java.type('net.ccbluex.liquidbounce.utils.Rotation');
          
          RotationUtils.setTargetRotation(new Rotation(0, 70));
          
          1 Reply Last reply
          0
          • As丶OneA Offline
            As丶OneA Offline
            As丶One
            wrote on last edited by
            #5
            var RotationUtils = Java.type('net.ccbluex.liquidbounce.utils.RotationUtils');
            var Rotation = Java.type('net.ccbluex.liquidbounce.utils.Rotation');
            RotationUtils.setTargetRotation(new Rotation(mc.thePlayer.rotationYaw + 180, 86));
            
            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