@ender1355
var script = registerScript({
name: "MatrixBHop",
version: "1.0.0",
authors: ["ENDER1355"]
});
script.registerModule({
name: "MatrixBHop",
category: "Movement",
description: "Allows you to BHop in Matrix, bypasses NCP aswell"
}, function(module) {
module.on("enable", function() {});
module.on("update", function() {
if (mc.thePlayer.onGround) { //gets called when player on ground
mc.thePlayer.jump();
mc.timer.timerSpeed = 1.0115 //you are trying to set different timer speeds in 1 tick
mc.timer.timerSpeed = 1.05 //wont work only 1 timer speed will be used
mc.thePlayer.setSprinting(true)
mc.thePlayer.serverSprintState = true
mc.thePlayer.speedInAir = 0.015
}
});
module.on('disable', function() {
mc.timer.timerSpeed = 1
mc.thePlayer.speedInAir = 0.01 //slower than vanilla use 0.02 or else it flags
});
});
// you could use it like this
function r(min,max) {
return Math.floor(Math.random()*(max-min+1)+min);
}
script.registerModule({
name: "",
description: "Nutting in cats is illegal",
category: "Fun",
tag: "",
settings: {}
}, function (module) {
module.on("enable", function () {
});
module.on("disable", function () {
mc.timer.timerSpeed = 1;
});
module.on("update", function () {
mc.timer.timerSpeed = 1
if (mc.thePlayer.ticksExisted % 5 == 0) {
mc.timer.timerSpeed = 5;
Chat.print(r(-100,100)); //sends number when timer speed 5 is used
}
});
});