CubeClip

Avatar

By 6Sence 26 January 2020 03:47

Member · 291 comments

I remade CubeClip for fun, this is code:

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

var CubeClip = new CubeClip();
var SpartanSpeedClient;
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 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)
	}

}
function CubeClip() {
    this.getName = function() {
        return "CubeClip";
    };
    this.getDescription = function() {
        return "CubeClip";
    };
    this.getCategory = function() {
        return "Misc";
    };
    this.onUpdate = function() {	
	lastTeleportTimer += 1;
	tryTele += 1;
	ticks += 1;
	if (tryTele > 5){
		tryTele = 3;
	}
	if (mc.gameSettings.keyBindSneak.pressed == true){
		if (mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY - tryTele, mc.thePlayer.posZ)) && lastTeleportTimer > 10) {
			if (!mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY - 1, mc.thePlayer.posZ))){
					if (mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY - tryTele + 1, mc.thePlayer.posZ))){
						if (!mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY - tryTele - 1, mc.thePlayer.posZ)) || !mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY - tryTele - 2, mc.thePlayer.posZ)) || !mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY - tryTele - 3, mc.thePlayer.posZ) || !mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY - tryTele - 4, mc.thePlayer.posZ))) || !mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY - tryTele - 5, mc.thePlayer.posZ))){
								mc.thePlayer.setPosition(mc.thePlayer.posX,mc.thePlayer.posY - tryTele, mc.thePlayer.posZ);
								lastTeleportTimer = 0;
								mc.gameSettings.keyBindSneak.pressed = false;
								mc.thePlayer.motionY = -1.3;
						}
				}
			}
		}
	}
	if (mc.gameSettings.keyBindJump.pressed == true){
		if (mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY + 4, mc.thePlayer.posZ)) && lastTeleportTimer > 10) {
			if (!mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY + 2, mc.thePlayer.posZ))){
					if (mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY + 3, mc.thePlayer.posZ))){
					mc.thePlayer.setPosition(mc.thePlayer.posX,mc.thePlayer.posY + 4.2, mc.thePlayer.posZ);
					mc.thePlayer.motionY = -2;
					lastTeleportTimer = 0;
					mc.gameSettings.keyBindJump.pressed = false;
				}
			}
		}
	}	
		
/* Automaticly Teleports you outside cage at start of the round // remove comment to enable
		if (mc.thePlayer.experienceLevel == 9 && ticks >= 400){
			if (!mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY + 3, mc.thePlayer.posZ))){
				if (mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY + 4, mc.thePlayer.posZ))){
					if (mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX,mc.thePlayer.posY + 5, mc.thePlayer.posZ))){
						vClip(4);
						ticks = 0;
					}
				}
			}
		}

*/

}
	this.onDisable = function() {
    //Activates on disabling module
	mc.timer.timerSpeed = 1.0;
 }
 	this.onEnable = function() {
	//Activates on Enabling module
	tryTele = 3;
	lastTeleportTimer = 100;
	ticks = 400;
 }
 }
function onLoad() {
    // Currently this event has to be in every script even if it is not directly needed.
};

function onEnable() {
    SpartanSpeedClient = moduleManager.registerModule(CubeClip);
};

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

Edit: I am aware is is better to use for loops for this, when I made this I didn't know how to use them.

Last edited by 6Sence (26 January 2020 03:51)


Avatar

By soulplexis 26 January 2020 04:50

Donator · 902 comments

awesome!!


Official account of Soulplexis
Script creator, LiquidBounce user, developer of Monix client
If you want to contact me please do that on Discord

Avatar

By Aftery 26 January 2020 07:22

Member · 595 comments

code quality on par with soulplexis


website
@Aftery#5051 on Discord
stawbery reloded))
bDED6E9.pngCC3ddf6.pnge2adC5a.png1cBc37C.png2d41fd9.png

Avatar

By soulplexis 26 January 2020 07:29

Donator · 902 comments
Aftery wrote

code quality on par with soulplexis

that would imply it's too advanced for you to understand so you couldn't know that


Official account of Soulplexis
Script creator, LiquidBounce user, developer of Monix client
If you want to contact me please do that on Discord

Avatar

By Aftery 26 January 2020 08:15

Member · 595 comments
soulplexis wrote
Aftery wrote

code quality on par with soulplexis

that would imply it's too advanced for you to understand so you couldn't know that

didnt say anything about complexity mate


website
@Aftery#5051 on Discord
stawbery reloded))
bDED6E9.pngCC3ddf6.pnge2adC5a.png1cBc37C.png2d41fd9.png

Avatar

By CzechHek 26 January 2020 08:22

Member · 462 comments

that's wierd


ScriptAPI Developer.
Experienced YouTuber.
Discord: bit.ly/dyskord
YouTube: v.ht/CzechHek

Avatar

By soulplexis 26 January 2020 08:34

Donator · 902 comments
Aftery wrote
soulplexis wrote
Aftery wrote

code quality on par with soulplexis

that would imply it's too advanced for you to understand so you couldn't know that

didnt say anything about complexity mate

the soul way cool of coding means it transcends human understanding. it's beyond comprehension. beyond time, beyond space in a realm far away


Official account of Soulplexis
Script creator, LiquidBounce user, developer of Monix client
If you want to contact me please do that on Discord

Avatar

By yorik100 26 January 2020 10:00

Member · 748 comments
soulplexis wrote
Aftery wrote
soulplexis wrote

that would imply it's too advanced for you to understand so you couldn't know that

didnt say anything about complexity mate

the soul way cool of coding means it transcends human understanding. it's beyond comprehension. beyond time, beyond space in a realm far away

Basically my way of understanding

Avatar

By Turtl 26 January 2020 10:03

Banned · 479 comments
Aftery wrote

code quality on par with soulplexis

thats why soulplexis write 'awesome'


turtl gonna rape, uh sry, rap for u

Avatar

By Turtl 26 January 2020 10:05

Banned · 479 comments
soulplexis wrote
Aftery wrote
soulplexis wrote

that would imply it's too advanced for you to understand so you couldn't know that

didnt say anything about complexity mate

the soul way cool of coding means it transcends human understanding. it's beyond comprehension. beyond time, beyond space in a realm far away

you just described autism


turtl gonna rape, uh sry, rap for u

Avatar

By 6Sence 26 January 2020 10:06

Member · 291 comments
Aftery wrote

code quality on par with soulplexis

I'm not amazing at code so I think i'll take that as a compliment.


Avatar

By Aftery 26 January 2020 10:14

Member · 595 comments
soulplexis wrote
Aftery wrote
soulplexis wrote

that would imply it's too advanced for you to understand so you couldn't know that

didnt say anything about complexity mate

the soul way cool of coding means it transcends human understanding. it's beyond comprehension. beyond time, beyond space in a realm far away

read the quote that the post i quoted quoted.


website
@Aftery#5051 on Discord
stawbery reloded))
bDED6E9.pngCC3ddf6.pnge2adC5a.png1cBc37C.png2d41fd9.png

Avatar

By Turtl 26 January 2020 11:33

Banned · 479 comments
6Sence wrote
Aftery wrote

code quality on par with soulplexis

I'm not amazing at code so I think i'll take that as a compliment.

soulplexis can't code either


turtl gonna rape, uh sry, rap for u

Avatar

By soulplexis 26 January 2020 20:53

Donator · 902 comments
Turtl wrote
6Sence wrote
Aftery wrote

code quality on par with soulplexis

I'm not amazing at code so I think i'll take that as a compliment.

soulplexis can't code either

yeah i can shut up noob


Official account of Soulplexis
Script creator, LiquidBounce user, developer of Monix client
If you want to contact me please do that on Discord

Avatar

By Turtl 26 January 2020 21:08

Banned · 479 comments
soulplexis wrote
Turtl wrote
6Sence wrote

I'm not amazing at code so I think i'll take that as a compliment.

soulplexis can't code either

yeah i can shut up noob

yes i allow u to shut up


turtl gonna rape, uh sry, rap for u

Avatar

By soulplexis 26 January 2020 21:27

Donator · 902 comments
Turtl wrote
soulplexis wrote
Turtl wrote

soulplexis can't code either

yeah i can shut up noob

yes i allow u to shut up

yeah ur just mad cuz ur scprits are bad x)


Official account of Soulplexis
Script creator, LiquidBounce user, developer of Monix client
If you want to contact me please do that on Discord

Avatar

By Aftery 27 January 2020 01:04

Member · 595 comments
soulplexis wrote
Turtl wrote
soulplexis wrote

yeah i can shut up noob

yes i allow u to shut up

yeah ur just mad cuz ur scprits are bad x)

bad? i guess you can argue with that i disagree
worse than yours? nah.


website
@Aftery#5051 on Discord
stawbery reloded))
bDED6E9.pngCC3ddf6.pnge2adC5a.png1cBc37C.png2d41fd9.png

Avatar

By soulplexis 27 January 2020 05:50

Donator · 902 comments
Aftery wrote
soulplexis wrote
Turtl wrote

yes i allow u to shut up

yeah ur just mad cuz ur scprits are bad x)

bad? i guess you can argue with that i disagree
worse than yours? nah.

yes. his scripts are literally 0% useful, mine are at least aesthetically pleasing and well-made xD


Official account of Soulplexis
Script creator, LiquidBounce user, developer of Monix client
If you want to contact me please do that on Discord

Avatar

By Aftery 27 January 2020 05:52

Member · 595 comments
soulplexis wrote
Aftery wrote
soulplexis wrote

yeah ur just mad cuz ur scprits are bad x)

bad? i guess you can argue with that i disagree
worse than yours? nah.

yes. his scripts are literally 0% useful, mine are at least aesthetically pleasing and well-made xD

Aftery wrote

bad? i guess you can argue with that i disagree
worse than yours? nah.


website
@Aftery#5051 on Discord
stawbery reloded))
bDED6E9.pngCC3ddf6.pnge2adC5a.png1cBc37C.png2d41fd9.png

Avatar

By Turtl 27 January 2020 19:57

Banned · 479 comments
soulplexis wrote
Aftery wrote
soulplexis wrote

yeah ur just mad cuz ur scprits are bad x)

bad? i guess you can argue with that i disagree
worse than yours? nah.

yes. his scripts are literally 0% useful, mine are at least aesthetically pleasing and well-made xD

"well-made" "aesthetically pleasing" what ur talking about? I never seen your code being clean in ~30% XD, example that i remember:

packet1= event.getPacket();
 packet2 = event.getPacket();
packet3 = event.getPacket();
packet4 = event.getPacket();
if (packet1 == somethinghere)
if (packet2 == otherthing)

U'r literally dumb
P.S.: why you think that my scripts are useless when they are literally pointed to begginers which have problems with random crashes? It literally fixes most of their problems [base]. Antiaim is just fun script that u can use and which bypass servers unless ur one. [tl;dr] they are not useless

Last edited by Turtl (27 January 2020 20:01)


turtl gonna rape, uh sry, rap for u

Avatar

By soulplexis 27 January 2020 22:03

Donator · 902 comments
Turtl wrote
soulplexis wrote
Aftery wrote

bad? i guess you can argue with that i disagree
worse than yours? nah.

yes. his scripts are literally 0% useful, mine are at least aesthetically pleasing and well-made xD

"well-made" "aesthetically pleasing" what ur talking about? I never seen your code being clean in ~30% XD, example that i remember:

packet1= event.getPacket();
 packet2 = event.getPacket();
packet3 = event.getPacket();
packet4 = event.getPacket();
if (packet1 == somethinghere)
if (packet2 == otherthing)

U'r literally dumb
P.S.: why you think that my scripts are useless when they are literally pointed to begginers which have problems with random crashes? It literally fixes most of their problems [base]. Antiaim is just fun script that u can use and which bypass servers unless ur one. [tl;dr] they are not useless

nah they are useless, nobody needs to add anything to prevent crashes dum dum. and my code is very clean, i took classes in march last year. btw that code you put is messy and it's also not mine so you're double wrong get fucked nerd xD cool


Official account of Soulplexis
Script creator, LiquidBounce user, developer of Monix client
If you want to contact me please do that on Discord

Avatar

By yorik100 27 January 2020 22:11

Member · 748 comments
Turtl wrote
packet1 = event.getPacket();
packet2 = event.getPacket();
packet3 = event.getPacket();
packet4 = event.getPacket();
if (packet1 == somethinghere)
if (packet2 == otherthing)

Wait a minute, they're all equal to themselves in this case

Avatar

By Harzter123 27 January 2020 22:20

Member · 117 comments
soulplexis wrote
Turtl wrote
soulplexis wrote

yes. his scripts are literally 0% useful, mine are at least aesthetically pleasing and well-made xD

"well-made" "aesthetically pleasing" what ur talking about? I never seen your code being clean in ~30% XD, example that i remember:

packet1= event.getPacket();
 packet2 = event.getPacket();
packet3 = event.getPacket();
packet4 = event.getPacket();
if (packet1 == somethinghere)
if (packet2 == otherthing)

U'r literally dumb
P.S.: why you think that my scripts are useless when they are literally pointed to begginers which have problems with random crashes? It literally fixes most of their problems [base]. Antiaim is just fun script that u can use and which bypass servers unless ur one. [tl;dr] they are not useless

nah they are useless, nobody needs to add anything to prevent crashes dum dum. and my code is very clean, i took classes in march last year. btw that code you put is messy and it's also not mine so you're double wrong get fucked nerd xD cool

just shut the fuck up and realise your trash bro

Avatar

By Turtl 27 January 2020 22:27

Banned · 479 comments
Harzter123 wrote
soulplexis wrote
Turtl wrote

"well-made" "aesthetically pleasing" what ur talking about? I never seen your code being clean in ~30% XD, example that i remember:

packet1= event.getPacket();
 packet2 = event.getPacket();
packet3 = event.getPacket();
packet4 = event.getPacket();
if (packet1 == somethinghere)
if (packet2 == otherthing)

U'r literally dumb
P.S.: why you think that my scripts are useless when they are literally pointed to begginers which have problems with random crashes? It literally fixes most of their problems [base]. Antiaim is just fun script that u can use and which bypass servers unless ur one. [tl;dr] they are not useless

nah they are useless, nobody needs to add anything to prevent crashes dum dum. and my code is very clean, i took classes in march last year. btw that code you put is messy and it's also not mine so you're double wrong get fucked nerd xD cool

just shut the fuck up and realise your trash bro


turtl gonna rape, uh sry, rap for u

Avatar

By Turtl 27 January 2020 22:29

Banned · 479 comments
soulplexis wrote
Turtl wrote
soulplexis wrote

yes. his scripts are literally 0% useful, mine are at least aesthetically pleasing and well-made xD

"well-made" "aesthetically pleasing" what ur talking about? I never seen your code being clean in ~30% XD, example that i remember:

packet1= event.getPacket();
 packet2 = event.getPacket();
packet3 = event.getPacket();
packet4 = event.getPacket();
if (packet1 == somethinghere)
if (packet2 == otherthing)

U'r literally dumb
P.S.: why you think that my scripts are useless when they are literally pointed to begginers which have problems with random crashes? It literally fixes most of their problems [base]. Antiaim is just fun script that u can use and which bypass servers unless ur one. [tl;dr] they are not useless

nah they are useless, nobody needs to add anything to prevent crashes dum dum. and my code is very clean, i took classes in march last year. btw that code you put is messy and it's also not mine so you're double wrong get fucked nerd xD cool

Ok if noone needs it then liquidbounce should delete their thing too, lets crash the game every error in the code r8? ur already the best example of -2.8iq. My code is not messy, its compact that means that only smart people will understand it already then you =/= smart


turtl gonna rape, uh sry, rap for u