Matrix water walk.

Avatar

By 6Sence 6 October 2019 04:41

Member · 94 comments

There are no currently bypassing waterwalk modes for Matrix in lb so I thought I would make one myself, this waterfloat bakes you faster than normal sprintjumping.


var scriptName = "WaterFloat"; // The name of your script
var scriptVersion = 0.1; // The version of your script
var scriptAuthor = "Alan"; // The author of your script

var WaterFloat = new WaterFloat();
var WaterFloatClient;
var Strafe = moduleManager.getModule("Strafe");
var nohurtcam = moduleManager.getModule("nohurtcam");

BlockPos = Java.type('net.minecraft.util.BlockPos')
BlockAir = Java.type('net.minecraft.block.BlockAir')
EntityPlayer = Java.type("net.minecraft.entity.player.EntityPlayer")


Math.radians = function(degrees) {
    return degrees * Math.PI / 180;
  };
   
  // Converts from radians to degrees.
  Math.degrees = function(radians) {
    return radians * 180 / Math.PI;
  };
 
  function vClip(offset) {
        mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + offset, mc.thePlayer.posZ);
    }

    function hClip(offset) {
        var playerYaw = Math.radians(mc.thePlayer.rotationYaw);
        mc.thePlayer.setPosition(mc.thePlayer.posX - (Math.sin(playerYaw) * offset), mc.thePlayer.posY, mc.thePlayer.posZ + (Math.cos(playerYaw) * offset));
    }


function WaterFloat() {
    this.getName = function() {
        return "WaterFloat";
    };

    this.getDescription = function() {
        return "MatrixWaterFloat";
    };

    this.getCategory = function() {
        return "Misc";
    };

   
    this.onUpdate = function() {
       
       
       
    if(mc.thePlayer.isInWater()){       
        mc.thePlayer.motionY = 0.28;   
       
        hClip(1.2);
   

    }

           
   

    }
   
   
   
   
   
   
    this.onDisable = function() {
    //Activates on disabling module
    mc.timer.timerSpeed = 1

}
    this.onEnable = function() {
    //Activates on Enabling module
   


   

}


}

function onLoad() {
    // Currently this event has to be in every script even if it is not directly needed.
};

function onEnable() {
    WaterFloatClient = moduleManager.registerModule(WaterFloat);
       
};

function onDisable() {
    moduleManager.unregisterModule(WaterFloatClient);
   
};

Avatar

By Username 6 October 2019 07:28

Member · 3 comments

Good!

Avatar

By 6Sence 6 October 2019 09:35

Member · 94 comments
Username wrote

Good!

Are you the person I met on tree.ac?

Avatar

By Username 6 October 2019 09:36

Member · 3 comments

yes

Avatar

By 6Sence 6 October 2019 10:17

Member · 94 comments
Username wrote

yes

Nice to see you here!

Avatar

By Username 6 October 2019 11:06

Member · 3 comments

thx

Avatar

By Coccocoa 6 October 2019 11:11

Member · 148 comments

Matrix best false positive anticheat


Eating kids

Avatar

By Aftery 6 October 2019 11:37

Member · 145 comments

Use code tags
Also use mc movement instead of teleporting.


@Aftery#5051 on discord.

Avatar

By 6Sence 7 October 2019 01:38

Member · 94 comments

To be honest I don't know what mc movement is.

Avatar

By Sms_Gamer_3808 7 October 2019 02:58

Member · 654 comments
6Sence wrote

To be honest I don't know what mc movement is.

mc.thePlayer.motionX
mc.thePlayer.motionZ

 // Converts from degrees to radians.
 Math.radians = function(degrees) {
    return degrees * Math.PI / 180;
  };
   
  // Converts from radians to degrees.
  Math.degrees = function(radians) {
    return radians * 180 / Math.PI;
  };


function vClip(offset) {
    mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + offset, mc.thePlayer.posZ);
}

function hClip(offset) {
    var playerYaw = Math.radians(mc.thePlayer.rotationYaw);
    mc.thePlayer.setPosition(mc.thePlayer.posX - (Math.sin(playerYaw) * offset), mc.thePlayer.posY, mc.thePlayer.posZ + (Math.cos(playerYaw) * offset));
}


function hMotion(offset) {
        mc.thePlayer.motionX = parseFloat(Math.cos(Math.radians(mc.thePlayer.rotationYaw + 90.0)) * offset)
        mc.thePlayer.motionZ = parseFloat(Math.sin(Math.radians(mc.thePlayer.rotationYaw + 90.0)) * offset)
}

I don't exist

Avatar

By 6Sence 7 October 2019 05:23

Member · 94 comments

Oh that looks like it would work better because it won't clip you through blocks thanks you, I'll use that in the future.