CCBlueX Forum

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

    Re uploading scripts to avoid getting deleted.

    Scripts
    1
    1
    205
    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.
    • 6Sence
      6Sence last edited by Temm

      var scriptName = "SpartanTeleport";
      var scriptAuthor = "6Sence";
      var scriptVersion = 1.0;
      
      FreeCam = moduleManager.getModule("FreeCam");
      var C04PacketPlayerPosition = Java.type('net.minecraft.network.play.client.C03PacketPlayer.C04PacketPlayerPosition')
      
      function SpartanTeleport() {
      
          this.getName = function () {
              return "SpartanTeleport";
          }
          this.getCategory = function () {
              return "Misc";
          }
      
          this.getDescription = function () {
              return "SpartanTeleport";
          }
      
          this.onUpdate = function () {
              if (mc.thePlayer.onGround && mc.gameSettings.keyBindSneak.pressed == true) {
                  TPPosX = mc.thePlayer.posX;
                  TPPosY = mc.thePlayer.posY;
                  TPPosZ = mc.thePlayer.posZ;
      
                  FreeCam.setState(false);
                  teleport = true;
              }
      
              if (teleport == true && mc.thePlayer.posX != TPPosX && mc.thePlayer.posZ != TPPosZ) {
                  mc.thePlayer.motionY = 0.01;
                  mc.gameSettings.keyBindForward.pressed = false;
                  mc.gameSettings.keyBindBack.pressed = false;
                  mc.gameSettings.keyBindLeft.pressed = false;
                  mc.gameSettings.keyBindRight.pressed = false;
                  mc.gameSettings.keyBindJump.pressed = false;
      			
      			if (teleportTry < 20){
      				mc.timer.timerSpeed = 2;
      			}else{
      				mc.timer.timerSpeed = 0.5;
      			}
                  teleportTry += 1;
                  
                  mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
                  mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(TPPosX, TPPosY, TPPosZ, true));
              }
      
              if (mc.thePlayer.posX == TPPosX && mc.thePlayer.posZ == TPPosZ) {
                  chat.print("ยง6Successfully teleported with ยงc" + teleportTry + " ยง6tries. Script made by 6Sence.");
                  commandManager.executeCommand(".t SpartanTeleport");
              }
          }
      
          this.onEnable = function () {
              FreeCam.setState(true);
      		this.value = FreeCam.getValue("NoClip").get();
              FreeCam.getValue("NoClip").set(false);
              teleport = false;
              teleportTry = 0;
              chat.print("ยง6Land to teleport, Make sure to turn off noclip in freecam to work properly.");
      		TPPosX = 2131;
              TPPosY = 13;
              TPPosZ = 4324;
          }
          this.onDisable = function () {
              FreeCam.getValue("NoClip").set(this.value);
              mc.timer.timerSpeed = 1;
              FreeCam.setState(false);
          }
      }
      
      var SpartanTeleport = new SpartanTeleport();
      var derpClient;
      
      function onEnable() {
          derpClient = moduleManager.registerModule(SpartanTeleport);
      }
      
      function onDisable() {
          moduleManager.unregisterModule(derpClient);
      }
      
      
      var scriptName = "Test";
      var scriptAuthor = "6Sence";
      var scriptVersion = 1.0;
      
      function Test() {
      
          this.getName = function () {
              return "Test";
          }
          this.getCategory = function () {
              return "Misc";
          }
      
          this.getDescription = function () {
              return "Test";
          }
      
          this.onUpdate = function () {
      		if (mc.thePlayer.motionY <= 0 && !mc.thePlayer.onGround){
      		
      		OPMY = PMY;
      		if (!mc.thePlayer.onGround){
      			PMY = (PMY - 0.08) * 0.98;
      		}
      		
      		CMY = (Math.round (mc.thePlayer.motionY * 10000) / 10000);
      		PMY = (Math.round (PMY * 10000) / 10000);
      		}
      		
      		//OPMY is predicted motionY
      		if (!mc.thePlayer.onGround){
      			chat.print ("Predicted : " + OPMY + "  ||  MotionY : " + mc.thePlayer.motionY);
      		}
          }
      
          this.onEnable = function () {
      		enable = false;
      		OPMY = mc.thePlayer.motionY;
      		PMY = mc.thePlayer.motionY;
      		CMY = mc.thePlayer.motionY;
          }
          this.onDisable = function () {
          }
      }
      
      var Test = new Test();
      var derpClient;
      
      function onEnable() {
          derpClient = moduleManager.registerModule(Test);
      }
      
      function onDisable() {
          moduleManager.unregisterModule(derpClient);
      }
      
      
      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