-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.2.5 Added BoatKill exploit, make MaceKill work w/ flight
**Added BoatKill Module** - Enabling this while in a boat instakills it's passengers. Thank you to [filepile](https://github.com/not-filepile) for writing this! This has been patched in the latest 1.21.2 snapshots. **Macekill module** - Fixed MaceKill not working while flying with NoFall enabled. **Chunk Tracing Updates** - Fixed false positives of chunks showing up as Old Generation in the overworld with NewerNewChunks. That's rare now. - Fixed lag when you have lots of chunk positions in memory and your character is dead in BaseFinder and NewerNewChunks - Removed Exposed and Weathered Copper blocks from the default detection list for basefinder because they can occur naturally from copper oxidizing in trial chambers in Trouser for Minecraft 1.21+. - Added the Weathered Copper to the default list #2 though so it can still be detected if there is alot of them in a chunk in Trouser for Minecraft 1.21+. - Fixed the Delete data button not working for the nearest detected base chunk with BaseFinder. - Removed pumpkin stem from the default un-natural blocks list in BaseFinder because it does actually spawn naturally in some villages. **OnlinePlayerActivityDetector Update** - Added Cactus to the default list of Overworld false positive blocks to prevent false positives in deserts.
- Loading branch information
Showing
9 changed files
with
104 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
src/main/java/pwn/noobs/trouserstreak/modules/BoatKill.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package pwn.noobs.trouserstreak.modules; | ||
|
||
import meteordevelopment.meteorclient.settings.IntSetting; | ||
import meteordevelopment.meteorclient.settings.Setting; | ||
import meteordevelopment.meteorclient.settings.SettingGroup; | ||
import meteordevelopment.meteorclient.systems.modules.Module; | ||
import meteordevelopment.meteorclient.utils.player.ChatUtils; | ||
import net.minecraft.entity.vehicle.BoatEntity; | ||
import net.minecraft.network.packet.c2s.play.VehicleMoveC2SPacket; | ||
import net.minecraft.text.Text; | ||
import net.minecraft.util.math.Vec3d; | ||
import pwn.noobs.trouserstreak.Trouser; | ||
|
||
import java.util.concurrent.Executors; | ||
import java.util.concurrent.ScheduledExecutorService; | ||
import java.util.concurrent.TimeUnit; | ||
|
||
public class BoatKill extends Module { | ||
|
||
public BoatKill() { | ||
super(Trouser.Main, "BoatKill", "Kill everyone in a boat using funny packets."); | ||
} | ||
|
||
private final SettingGroup repeatGroup = settings.createGroup("Repeat"); | ||
private final SettingGroup delayGroup = settings.createGroup("Delay"); | ||
private final Setting<Integer> repeat = repeatGroup.add(new IntSetting.Builder() | ||
.name("Repeat") | ||
.description("Number of times to repeat the action") | ||
.defaultValue(20) | ||
.min(1) | ||
.sliderRange(1,100) | ||
.build() | ||
); | ||
private final Setting<Integer> delay = delayGroup.add(new IntSetting.Builder() | ||
.name("Delay") | ||
.description("Delay between each action in seconds") | ||
.defaultValue(0) | ||
.min(0) | ||
.sliderRange(0,100) | ||
.build() | ||
); | ||
|
||
private final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1); | ||
|
||
@Override | ||
public void onActivate() { | ||
if (!(mc.player.getVehicle() instanceof BoatEntity boat)) { | ||
ChatUtils.sendMsg(Text.of("you must be on the boat.")); | ||
toggle(); | ||
return; | ||
} | ||
Vec3d originalPos = boat.getPos(); | ||
boat.setPosition(originalPos.add(0, 0.05, 0)); | ||
VehicleMoveC2SPacket groundPacket = new VehicleMoveC2SPacket(boat); | ||
boat.setPosition(originalPos.add(0, 20, 0)); | ||
VehicleMoveC2SPacket skyPacket = new VehicleMoveC2SPacket(boat); | ||
boat.setPosition(originalPos); | ||
for (int i = 0; i < repeat.get(); i++) { // 디폴트값:20 | ||
scheduler.schedule(() -> mc.player.networkHandler.sendPacket(skyPacket), delay.get(), TimeUnit.SECONDS); | ||
scheduler.schedule(() -> mc.player.networkHandler.sendPacket(groundPacket), delay.get(), TimeUnit.SECONDS); | ||
} | ||
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(boat)); | ||
ChatUtils.sendMsg(Text.of("exploit executed successfully.")); | ||
toggle(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters