CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Redesky Smooth Longjump

    Scripts
    4
    5
    867
    Loading More Posts
    • 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.
    • NinjaMaki
      NinjaMaki last edited by NinjaMaki

      Smooth Redesky longjump without lag
      about 42 blocks forward and 3 blocks up

      clean and easy code
      Here it is ~

      var script = registerScript({
          name: "MakiLongJump",
          version: "1.2",
          authors: ["Maki"]
      });
      
      var S08PacketPlayerPosLook = Java.type('net.minecraft.network.play.server.S08PacketPlayerPosLook');
      
      var air;
      
      script.registerModule({
          name: "MakiLongJump",
          description: "LongJump for Redesky.",
          category: "Fun",
          settings: {
      		dis: Setting.boolean({
                  name: "AutoDisable",
                  default: true
              })	
      	}  
      }, function (module) {
          module.on("enable", function () {
      		air = 0; 
          });
      	
      	module.on("disable", function () {
      		mc.thePlayer.motionX = 0;
      		mc.thePlayer.motionZ = 0;
          });
      	
      	module.on("packet", function (event) {
      		var packet = event.getPacket();
      		if (packet instanceof S08PacketPlayerPosLook) {
      			moduleManager.getModule("MakiLongJump").setState(false);
      		}    
          });
      
          module.on("move", function (event) {
            	
          });
      	
      	module.on("update", function () {
       		if (!mc.thePlayer.onGround) {
      			air++;
      		} else if (air > 3 && module.settings.dis.get()) {
      			module.setState(false);
      		}
      		if (mc.thePlayer.onGround && (!module.settings.dis.get() || air  == 0)) {
      			mc.thePlayer.jump();
      		}
      		mc.thePlayer.jumpMovementFactor = 0.15;
      		mc.thePlayer.motionY += 0.05;
          });
      });
      
      CzechHek notautismatall 2 Replies Last reply Reply Quote 1
      • CzechHek
        CzechHek @NinjaMaki last edited by CzechHek

        @ninjamaki said in Redesky Smooth Longjump:

          	moduleManager.getModule("MakiLongJump").setState(false);
        

        simplify to

        module.setState(false);
        
        NinjaMaki 1 Reply Last reply Reply Quote 0
        • NinjaMaki
          NinjaMaki @CzechHek last edited by

          @czechhek ok

          1 Reply Last reply Reply Quote 0
          • notautismatall
            notautismatall @NinjaMaki last edited by

            @ninjamaki said in Redesky Smooth Longjump:

            module.on("disable", function () {
            mc.thePlayer.motionX = 0;
            mc.thePlayer.motionZ = 0;
            });

            reset motion like this will flag you down on AAC if you are already lagged

            1 Reply Last reply Reply Quote 3
            • S
              simplerganger last edited by

              is this better than arcanes longjump 😳 also bedwars or skywars? or both

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              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