From 8c115564e3eeeb07a2c7a3ea88252a3a8375c8bd Mon Sep 17 00:00:00 2001 From: agreed31579 <117580989+agreed31579@users.noreply.github.com> Date: Fri, 2 Feb 2024 12:35:55 +0200 Subject: [PATCH 01/10] Vault clip implementation and added "highest" option --- .../commands/AutoVclipCommand.java | 57 +++++++++++++++++-- 1 file changed, 51 insertions(+), 6 deletions(-) diff --git a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVclipCommand.java b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVclipCommand.java index f917c3806..bac4f26c8 100644 --- a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVclipCommand.java +++ b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVclipCommand.java @@ -1,5 +1,6 @@ package pwn.noobs.trouserstreak.commands; +import com.mojang.brigadier.arguments.DoubleArgumentType; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import meteordevelopment.meteorclient.commands.Command; import net.minecraft.block.Blocks; @@ -7,6 +8,8 @@ import net.minecraft.command.CommandSource; import net.minecraft.entity.Entity; import net.minecraft.util.math.BlockPos; +import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket; +import net.minecraft.network.packet.c2s.play.VehicleMoveC2SPacket; import static com.mojang.brigadier.Command.SINGLE_SUCCESS; import static meteordevelopment.meteorclient.MeteorClient.mc; @@ -18,20 +21,27 @@ public AutoVclipCommand() { @Override public void build(LiteralArgumentBuilder builder) { builder.executes(ctx -> { - error("Choose Up or Down."); + error("Choose Up, Down or Highest"); return SINGLE_SUCCESS; }); builder.then(literal("up").executes(ctx -> { ClientPlayerEntity player = mc.player; assert player != null; - for (int i = 0; i < 9; i++) { + for (int i = 0; i < 199; i++) { BlockPos isopenair1 = (player.getBlockPos().add(0,i+2,0)); BlockPos isopenair2 = (player.getBlockPos().add(0,i+3,0)); if (mc.world.getBlockState(isopenair1).isReplaceable() && mc.world.getFluidState(isopenair1).isEmpty() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getBlockState(isopenair2).isReplaceable() && mc.world.getFluidState(isopenair2).isEmpty() && !mc.world.getBlockState(isopenair2).isOf(Blocks.POWDER_SNOW)){ + int packetsRequired = 20; if (player.hasVehicle()) { Entity vehicle = player.getVehicle(); + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); + } vehicle.setPosition(vehicle.getX(), isopenair1.getY(), vehicle.getZ()); } + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); + } player.setPosition(player.getX(), isopenair1.getY(), player.getZ()); return SINGLE_SUCCESS; } @@ -42,14 +52,21 @@ public void build(LiteralArgumentBuilder builder) { builder.then(literal("down").executes(ctx -> { ClientPlayerEntity player = mc.player; assert player != null; - for (int i = 0; i > -10; i--) { + for (int i = 0; i > -199; i--) { BlockPos isopenair1 = (player.getBlockPos().add(0,i,0)); BlockPos isopenair2 = (player.getBlockPos().add(0,i-1,0)); if (mc.world.getBlockState(isopenair1).isReplaceable() && mc.world.getFluidState(isopenair1).isEmpty() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getBlockState(isopenair2).isReplaceable() && mc.world.getFluidState(isopenair2).isEmpty() && !mc.world.getBlockState(isopenair2).isOf(Blocks.POWDER_SNOW)){ - if (player.hasVehicle()) { + int packetsRequired = 20; + if (player.hasVehicle()) { Entity vehicle = player.getVehicle(); + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); + } vehicle.setPosition(vehicle.getX(), isopenair2.getY(), vehicle.getZ()); } + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); + } player.setPosition(player.getX(), isopenair2.getY(), player.getZ()); return SINGLE_SUCCESS; } @@ -57,5 +74,33 @@ public void build(LiteralArgumentBuilder builder) { error("No gap found to vclip into"); return SINGLE_SUCCESS; })); - } -} \ No newline at end of file + builder.then(literal("highest").executes(ctx -> { + ClientPlayerEntity player = mc.player; + assert player != null; + + for (int i = 199; i > 0; i--) { + BlockPos isopenair1 = (player.getBlockPos().add(0,i,0)); + BlockPos isopenair2 = (player.getBlockPos().add(0,i-1,0)); + BlockPos newopenair2 = isopenair2.up(2); + if (!mc.world.getBlockState(isopenair1).isReplaceable() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair1).isEmpty() && !mc.world.getBlockState(isopenair2).isReplaceable() && !mc.world.getBlockState(isopenair2).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair2).isEmpty()) { + int packetsRequired = 20; + if (player.hasVehicle()) { + Entity vehicle = player.getVehicle(); + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); + } + + vehicle.setPosition(vehicle.getX(), newopenair2.getY(), vehicle.getZ()); + } + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); + } + player.setPosition(player.getX(), newopenair2.getY(), player.getZ()); + return SINGLE_SUCCESS; + } + } + error("No gap found to vclip into"); + return SINGLE_SUCCESS; + })); + } +} From 2daa43b002a9860033d011da970079be95eedd8a Mon Sep 17 00:00:00 2001 From: agreed31579 <117580989+agreed31579@users.noreply.github.com> Date: Fri, 2 Feb 2024 13:33:02 +0200 Subject: [PATCH 02/10] Update AutoVclipCommand.java --- .../commands/AutoVclipCommand.java | 55 ++----------------- 1 file changed, 5 insertions(+), 50 deletions(-) diff --git a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVclipCommand.java b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVclipCommand.java index bac4f26c8..e9e439642 100644 --- a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVclipCommand.java +++ b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVclipCommand.java @@ -1,6 +1,5 @@ package pwn.noobs.trouserstreak.commands; -import com.mojang.brigadier.arguments.DoubleArgumentType; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import meteordevelopment.meteorclient.commands.Command; import net.minecraft.block.Blocks; @@ -8,8 +7,6 @@ import net.minecraft.command.CommandSource; import net.minecraft.entity.Entity; import net.minecraft.util.math.BlockPos; -import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket; -import net.minecraft.network.packet.c2s.play.VehicleMoveC2SPacket; import static com.mojang.brigadier.Command.SINGLE_SUCCESS; import static meteordevelopment.meteorclient.MeteorClient.mc; @@ -21,27 +18,20 @@ public AutoVclipCommand() { @Override public void build(LiteralArgumentBuilder builder) { builder.executes(ctx -> { - error("Choose Up, Down or Highest"); + error("Choose Up or Down."); return SINGLE_SUCCESS; }); builder.then(literal("up").executes(ctx -> { ClientPlayerEntity player = mc.player; assert player != null; - for (int i = 0; i < 199; i++) { + for (int i = 0; i < 9; i++) { BlockPos isopenair1 = (player.getBlockPos().add(0,i+2,0)); BlockPos isopenair2 = (player.getBlockPos().add(0,i+3,0)); if (mc.world.getBlockState(isopenair1).isReplaceable() && mc.world.getFluidState(isopenair1).isEmpty() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getBlockState(isopenair2).isReplaceable() && mc.world.getFluidState(isopenair2).isEmpty() && !mc.world.getBlockState(isopenair2).isOf(Blocks.POWDER_SNOW)){ - int packetsRequired = 20; if (player.hasVehicle()) { Entity vehicle = player.getVehicle(); - for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { - mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); - } vehicle.setPosition(vehicle.getX(), isopenair1.getY(), vehicle.getZ()); } - for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { - mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); - } player.setPosition(player.getX(), isopenair1.getY(), player.getZ()); return SINGLE_SUCCESS; } @@ -52,21 +42,14 @@ public void build(LiteralArgumentBuilder builder) { builder.then(literal("down").executes(ctx -> { ClientPlayerEntity player = mc.player; assert player != null; - for (int i = 0; i > -199; i--) { + for (int i = 0; i > -10; i--) { BlockPos isopenair1 = (player.getBlockPos().add(0,i,0)); BlockPos isopenair2 = (player.getBlockPos().add(0,i-1,0)); if (mc.world.getBlockState(isopenair1).isReplaceable() && mc.world.getFluidState(isopenair1).isEmpty() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getBlockState(isopenair2).isReplaceable() && mc.world.getFluidState(isopenair2).isEmpty() && !mc.world.getBlockState(isopenair2).isOf(Blocks.POWDER_SNOW)){ - int packetsRequired = 20; - if (player.hasVehicle()) { + if (player.hasVehicle()) { Entity vehicle = player.getVehicle(); - for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { - mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); - } vehicle.setPosition(vehicle.getX(), isopenair2.getY(), vehicle.getZ()); } - for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { - mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); - } player.setPosition(player.getX(), isopenair2.getY(), player.getZ()); return SINGLE_SUCCESS; } @@ -74,33 +57,5 @@ public void build(LiteralArgumentBuilder builder) { error("No gap found to vclip into"); return SINGLE_SUCCESS; })); - builder.then(literal("highest").executes(ctx -> { - ClientPlayerEntity player = mc.player; - assert player != null; - - for (int i = 199; i > 0; i--) { - BlockPos isopenair1 = (player.getBlockPos().add(0,i,0)); - BlockPos isopenair2 = (player.getBlockPos().add(0,i-1,0)); - BlockPos newopenair2 = isopenair2.up(2); - if (!mc.world.getBlockState(isopenair1).isReplaceable() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair1).isEmpty() && !mc.world.getBlockState(isopenair2).isReplaceable() && !mc.world.getBlockState(isopenair2).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair2).isEmpty()) { - int packetsRequired = 20; - if (player.hasVehicle()) { - Entity vehicle = player.getVehicle(); - for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { - mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); - } - - vehicle.setPosition(vehicle.getX(), newopenair2.getY(), vehicle.getZ()); - } - for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { - mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); - } - player.setPosition(player.getX(), newopenair2.getY(), player.getZ()); - return SINGLE_SUCCESS; - } - } - error("No gap found to vclip into"); - return SINGLE_SUCCESS; - })); - } + } } From 2adcb337c9ea42ca01c56329798bcbaf15a7e1c7 Mon Sep 17 00:00:00 2001 From: agreed31579 <117580989+agreed31579@users.noreply.github.com> Date: Fri, 2 Feb 2024 13:34:37 +0200 Subject: [PATCH 03/10] Create AutoVaultClip --- .../trouserstreak/commands/AutoVaultClip | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClip diff --git a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClip b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClip new file mode 100644 index 000000000..cc37b2d33 --- /dev/null +++ b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClip @@ -0,0 +1,106 @@ +package pwn.noobs.trouserstreak.commands; + +import com.mojang.brigadier.arguments.DoubleArgumentType; +import com.mojang.brigadier.builder.LiteralArgumentBuilder; +import meteordevelopment.meteorclient.commands.Command; +import net.minecraft.block.Blocks; +import net.minecraft.client.network.ClientPlayerEntity; +import net.minecraft.command.CommandSource; +import net.minecraft.entity.Entity; +import net.minecraft.util.math.BlockPos; +import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket; +import net.minecraft.network.packet.c2s.play.VehicleMoveC2SPacket; + +import static com.mojang.brigadier.Command.SINGLE_SUCCESS; +import static meteordevelopment.meteorclient.MeteorClient.mc; + +public class AutoVclipCommand extends Command { + public AutoVclipCommand() { + super("autovaultclip", "Lets you clip through blocks vertically automatically, with vault clip bypass implemented"); + } + @Override + public void build(LiteralArgumentBuilder builder) { + builder.executes(ctx -> { + error("Choose Up, Down or Highest"); + return SINGLE_SUCCESS; + }); + builder.then(literal("up").executes(ctx -> { + ClientPlayerEntity player = mc.player; + assert player != null; + for (int i = 0; i < 199; i++) { + BlockPos isopenair1 = (player.getBlockPos().add(0,i+2,0)); + BlockPos isopenair2 = (player.getBlockPos().add(0,i+3,0)); + if (mc.world.getBlockState(isopenair1).isReplaceable() && mc.world.getFluidState(isopenair1).isEmpty() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getBlockState(isopenair2).isReplaceable() && mc.world.getFluidState(isopenair2).isEmpty() && !mc.world.getBlockState(isopenair2).isOf(Blocks.POWDER_SNOW)){ + int packetsRequired = 20; + if (player.hasVehicle()) { + Entity vehicle = player.getVehicle(); + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); + } + vehicle.setPosition(vehicle.getX(), isopenair1.getY(), vehicle.getZ()); + } + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); + } + player.setPosition(player.getX(), isopenair1.getY(), player.getZ()); + return SINGLE_SUCCESS; + } + } + error("No gap found to vclip into"); + return SINGLE_SUCCESS; + })); + builder.then(literal("down").executes(ctx -> { + ClientPlayerEntity player = mc.player; + assert player != null; + for (int i = 0; i > -199; i--) { + BlockPos isopenair1 = (player.getBlockPos().add(0,i,0)); + BlockPos isopenair2 = (player.getBlockPos().add(0,i-1,0)); + if (mc.world.getBlockState(isopenair1).isReplaceable() && mc.world.getFluidState(isopenair1).isEmpty() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getBlockState(isopenair2).isReplaceable() && mc.world.getFluidState(isopenair2).isEmpty() && !mc.world.getBlockState(isopenair2).isOf(Blocks.POWDER_SNOW)){ + int packetsRequired = 20; + if (player.hasVehicle()) { + Entity vehicle = player.getVehicle(); + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); + } + vehicle.setPosition(vehicle.getX(), isopenair2.getY(), vehicle.getZ()); + } + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); + } + player.setPosition(player.getX(), isopenair2.getY(), player.getZ()); + return SINGLE_SUCCESS; + } + } + error("No gap found to vclip into"); + return SINGLE_SUCCESS; + })); + builder.then(literal("highest").executes(ctx -> { + ClientPlayerEntity player = mc.player; + assert player != null; + + for (int i = 199; i > 0; i--) { + BlockPos isopenair1 = (player.getBlockPos().add(0,i,0)); + BlockPos isopenair2 = (player.getBlockPos().add(0,i-1,0)); + BlockPos newopenair2 = isopenair2.up(2); + if (!mc.world.getBlockState(isopenair1).isReplaceable() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair1).isEmpty() && !mc.world.getBlockState(isopenair2).isReplaceable() && !mc.world.getBlockState(isopenair2).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair2).isEmpty()) { + int packetsRequired = 20; + if (player.hasVehicle()) { + Entity vehicle = player.getVehicle(); + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); + } + + vehicle.setPosition(vehicle.getX(), newopenair2.getY(), vehicle.getZ()); + } + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); + } + player.setPosition(player.getX(), newopenair2.getY(), player.getZ()); + return SINGLE_SUCCESS; + } + } + error("No gap found to vclip into"); + return SINGLE_SUCCESS; + })); + } +} From f27c3cb238d579c2342cbd2f8928913888f5cbe8 Mon Sep 17 00:00:00 2001 From: agreed31579 <117580989+agreed31579@users.noreply.github.com> Date: Fri, 2 Feb 2024 13:35:16 +0200 Subject: [PATCH 04/10] Update Trouser.java --- src/main/java/pwn/noobs/trouserstreak/Trouser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/pwn/noobs/trouserstreak/Trouser.java b/src/main/java/pwn/noobs/trouserstreak/Trouser.java index d2851f6a0..72a87cbbb 100644 --- a/src/main/java/pwn/noobs/trouserstreak/Trouser.java +++ b/src/main/java/pwn/noobs/trouserstreak/Trouser.java @@ -57,6 +57,7 @@ public void onInitialize() { Commands.add(new WorldInfoCommand()); Commands.add(new ViewNbtCommand()); Commands.add(new AutoVclipCommand()); + Commands.add(new AutoVaultClipCommand()); Commands.add(new CrashCommand()); } @@ -69,4 +70,4 @@ public String getPackage() { return "pwn.noobs.trouserstreak"; } -} \ No newline at end of file +} From 4c9069feebe30c45153fedfa1877a8edd85f8553 Mon Sep 17 00:00:00 2001 From: agreed31579 <117580989+agreed31579@users.noreply.github.com> Date: Fri, 2 Feb 2024 13:36:09 +0200 Subject: [PATCH 05/10] Updated --- .../commands/{AutoVaultClip => AutoVaultClipCommand} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/main/java/pwn/noobs/trouserstreak/commands/{AutoVaultClip => AutoVaultClipCommand} (99%) diff --git a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClip b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand similarity index 99% rename from src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClip rename to src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand index cc37b2d33..237c1b196 100644 --- a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClip +++ b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand @@ -14,7 +14,7 @@ import net.minecraft.network.packet.c2s.play.VehicleMoveC2SPacket; import static com.mojang.brigadier.Command.SINGLE_SUCCESS; import static meteordevelopment.meteorclient.MeteorClient.mc; -public class AutoVclipCommand extends Command { +public class AutoVaclipCommand extends Command { public AutoVclipCommand() { super("autovaultclip", "Lets you clip through blocks vertically automatically, with vault clip bypass implemented"); } From 19772de6fbe94fedd10be95c1c23de3283b2d5a7 Mon Sep 17 00:00:00 2001 From: agreed31579 <117580989+agreed31579@users.noreply.github.com> Date: Fri, 2 Feb 2024 13:36:27 +0200 Subject: [PATCH 06/10] Update AutoVaultClipCommand --- .../pwn/noobs/trouserstreak/commands/AutoVaultClipCommand | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand index 237c1b196..9ef08b32b 100644 --- a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand +++ b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand @@ -14,8 +14,8 @@ import net.minecraft.network.packet.c2s.play.VehicleMoveC2SPacket; import static com.mojang.brigadier.Command.SINGLE_SUCCESS; import static meteordevelopment.meteorclient.MeteorClient.mc; -public class AutoVaclipCommand extends Command { - public AutoVclipCommand() { +public class AutoVaultclipCommand extends Command { + public AutoVaultclipCommand() { super("autovaultclip", "Lets you clip through blocks vertically automatically, with vault clip bypass implemented"); } @Override From 5428119b10db56fcca7ecde18cd731ad734aa17a Mon Sep 17 00:00:00 2001 From: agreed31579 <117580989+agreed31579@users.noreply.github.com> Date: Fri, 2 Feb 2024 13:36:41 +0200 Subject: [PATCH 07/10] Update AutoVaultClipCommand --- .../pwn/noobs/trouserstreak/commands/AutoVaultClipCommand | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand index 9ef08b32b..16d945f09 100644 --- a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand +++ b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand @@ -14,8 +14,8 @@ import net.minecraft.network.packet.c2s.play.VehicleMoveC2SPacket; import static com.mojang.brigadier.Command.SINGLE_SUCCESS; import static meteordevelopment.meteorclient.MeteorClient.mc; -public class AutoVaultclipCommand extends Command { - public AutoVaultclipCommand() { +public class AutoVaultClipCommand extends Command { + public AutoVaultClipCommand() { super("autovaultclip", "Lets you clip through blocks vertically automatically, with vault clip bypass implemented"); } @Override From a57eb1c0919f8adf8b8981afe818034bd6f5add4 Mon Sep 17 00:00:00 2001 From: agreed31579 <117580989+agreed31579@users.noreply.github.com> Date: Fri, 2 Feb 2024 13:41:35 +0200 Subject: [PATCH 08/10] Created AutoVaultClipCommand.java --- .../commands/{AutoVaultClipCommand => AutoVaultClipCommand.java} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/main/java/pwn/noobs/trouserstreak/commands/{AutoVaultClipCommand => AutoVaultClipCommand.java} (100%) diff --git a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java similarity index 100% rename from src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand rename to src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java From 2d3809452d4ade89d0227ee0f557c37c0141a43e Mon Sep 17 00:00:00 2001 From: agreed31579 <117580989+agreed31579@users.noreply.github.com> Date: Sat, 3 Feb 2024 16:12:49 +0200 Subject: [PATCH 09/10] Fixed --- .../trouserstreak/commands/AutoVaultClipCommand.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java index 16d945f09..ebaad5631 100644 --- a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java +++ b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java @@ -16,7 +16,7 @@ public class AutoVaultClipCommand extends Command { public AutoVaultClipCommand() { - super("autovaultclip", "Lets you clip through blocks vertically automatically, with vault clip bypass implemented"); + super("autovaultclip", "Lets you clip through blocks vertically automatically, with vault clip bypass implemented. Paper only!"); } @Override public void build(LiteralArgumentBuilder builder) { @@ -80,9 +80,8 @@ public void build(LiteralArgumentBuilder builder) { for (int i = 199; i > 0; i--) { BlockPos isopenair1 = (player.getBlockPos().add(0,i,0)); - BlockPos isopenair2 = (player.getBlockPos().add(0,i-1,0)); - BlockPos newopenair2 = isopenair2.up(2); - if (!mc.world.getBlockState(isopenair1).isReplaceable() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair1).isEmpty() && !mc.world.getBlockState(isopenair2).isReplaceable() && !mc.world.getBlockState(isopenair2).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair2).isEmpty()) { + BlockPos newopenair2 = isopenair1.up(1); + if (!mc.world.getBlockState(isopenair1).isReplaceable() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair1).isEmpty()) { int packetsRequired = 20; if (player.hasVehicle()) { Entity vehicle = player.getVehicle(); @@ -99,7 +98,7 @@ public void build(LiteralArgumentBuilder builder) { return SINGLE_SUCCESS; } } - error("No gap found to vclip into"); + error("No blocks above you found!"); return SINGLE_SUCCESS; })); } From 24d99e0ea7315175f5f690e61552ef70d3a5b36a Mon Sep 17 00:00:00 2001 From: etianl <115842502+etianl@users.noreply.github.com> Date: Sat, 3 Feb 2024 14:37:30 -0800 Subject: [PATCH 10/10] changed AutoVaultClip description slightly, removed an unused import --- .../commands/AutoVaultClipCommand.java | 67 +++++++++---------- 1 file changed, 33 insertions(+), 34 deletions(-) diff --git a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java index ebaad5631..febda354f 100644 --- a/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java +++ b/src/main/java/pwn/noobs/trouserstreak/commands/AutoVaultClipCommand.java @@ -1,6 +1,5 @@ package pwn.noobs.trouserstreak.commands; -import com.mojang.brigadier.arguments.DoubleArgumentType; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import meteordevelopment.meteorclient.commands.Command; import net.minecraft.block.Blocks; @@ -16,7 +15,7 @@ public class AutoVaultClipCommand extends Command { public AutoVaultClipCommand() { - super("autovaultclip", "Lets you clip through blocks vertically automatically, with vault clip bypass implemented. Paper only!"); + super("autovaultclip", "Lets you clip through blocks vertically automatically, with vault clip bypass implemented. Works on Paper, Spigot, but not always on Vanilla."); } @Override public void build(LiteralArgumentBuilder builder) { @@ -31,22 +30,22 @@ public void build(LiteralArgumentBuilder builder) { BlockPos isopenair1 = (player.getBlockPos().add(0,i+2,0)); BlockPos isopenair2 = (player.getBlockPos().add(0,i+3,0)); if (mc.world.getBlockState(isopenair1).isReplaceable() && mc.world.getFluidState(isopenair1).isEmpty() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getBlockState(isopenair2).isReplaceable() && mc.world.getFluidState(isopenair2).isEmpty() && !mc.world.getBlockState(isopenair2).isOf(Blocks.POWDER_SNOW)){ - int packetsRequired = 20; + int packetsRequired = 20; if (player.hasVehicle()) { Entity vehicle = player.getVehicle(); - for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { - mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); - } + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); + } vehicle.setPosition(vehicle.getX(), isopenair1.getY(), vehicle.getZ()); } - for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { - mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); - } + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); + } player.setPosition(player.getX(), isopenair1.getY(), player.getZ()); return SINGLE_SUCCESS; } } - error("No gap found to vclip into"); + error("No gap found to vclip into"); return SINGLE_SUCCESS; })); builder.then(literal("down").executes(ctx -> { @@ -57,16 +56,16 @@ public void build(LiteralArgumentBuilder builder) { BlockPos isopenair2 = (player.getBlockPos().add(0,i-1,0)); if (mc.world.getBlockState(isopenair1).isReplaceable() && mc.world.getFluidState(isopenair1).isEmpty() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getBlockState(isopenair2).isReplaceable() && mc.world.getFluidState(isopenair2).isEmpty() && !mc.world.getBlockState(isopenair2).isOf(Blocks.POWDER_SNOW)){ int packetsRequired = 20; - if (player.hasVehicle()) { + if (player.hasVehicle()) { Entity vehicle = player.getVehicle(); - for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { - mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); - } + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); + } vehicle.setPosition(vehicle.getX(), isopenair2.getY(), vehicle.getZ()); } - for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { - mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); - } + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); + } player.setPosition(player.getX(), isopenair2.getY(), player.getZ()); return SINGLE_SUCCESS; } @@ -74,32 +73,32 @@ public void build(LiteralArgumentBuilder builder) { error("No gap found to vclip into"); return SINGLE_SUCCESS; })); - builder.then(literal("highest").executes(ctx -> { - ClientPlayerEntity player = mc.player; - assert player != null; + builder.then(literal("highest").executes(ctx -> { + ClientPlayerEntity player = mc.player; + assert player != null; - for (int i = 199; i > 0; i--) { - BlockPos isopenair1 = (player.getBlockPos().add(0,i,0)); - BlockPos newopenair2 = isopenair1.up(1); - if (!mc.world.getBlockState(isopenair1).isReplaceable() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair1).isEmpty()) { - int packetsRequired = 20; - if (player.hasVehicle()) { + for (int i = 199; i > 0; i--) { + BlockPos isopenair1 = (player.getBlockPos().add(0,i,0)); + BlockPos newopenair2 = isopenair1.up(1); + if (!mc.world.getBlockState(isopenair1).isReplaceable() && !mc.world.getBlockState(isopenair1).isOf(Blocks.POWDER_SNOW) && mc.world.getFluidState(isopenair1).isEmpty()) { + int packetsRequired = 20; + if (player.hasVehicle()) { Entity vehicle = player.getVehicle(); - for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { - mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); - } + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle())); + } vehicle.setPosition(vehicle.getX(), newopenair2.getY(), vehicle.getZ()); } - for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { - mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); - } + for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) { + mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(true)); + } player.setPosition(player.getX(), newopenair2.getY(), player.getZ()); return SINGLE_SUCCESS; } } error("No blocks above you found!"); return SINGLE_SUCCESS; - })); - } + })); + } }