Skip to content

Commit

Permalink
0.8.3 AutoDisplays added, FIRE mode added to LavaAura
Browse files Browse the repository at this point in the history
**0.8.3**
- AutoDisplay module added which automatically spams block displays around all player's heads to blind them or text displays around them for trolling or advertising. Requires operator access.
- Added a "FIRE" mode to LavaAura which can make use of either Flint and Steel or Fire Charges to burn entities. There is a new option added in relation to that for automatically extinguishing the fire.
- Added a new option to LavaAura to not burn entities if they are already burning. (Mainly for the FIRE option in LavaAura to conserve flints)
- Removed the .onlyAttackable() filter from the entity list setting in AutoLava so you can target any entity with it such as items.
- Made the .crash command by default crash all players but you if no player is specified.
- Added error messages that say Command too long and may toggle the module off or skip over the command to save you from getting kicked from server for AutoCommand, AutoScoreboard, AutoTitles, HandOfGod, and OPServerKillModule modules.
  • Loading branch information
etianl authored Feb 12, 2024
1 parent 76e9c46 commit 79350b2
Show file tree
Hide file tree
Showing 12 changed files with 678 additions and 118 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ In no particular order
- **Airstrike+:** Rains down whatever entities you desire. It used to only rain fireballs, and I also changed the positioning of the spawning. (Credits to Allah-Hack for the original)
- **AnHero:** Become An Hero! (A quick way back to spawn.) (Credits to etianl :D)
- **AutoCommand:** Automates a list of commands you set in it's options at the push of a button! Credits to [aaaasdfghjkllll](https://github.com/aaaasdfghjkllll). I only added a full auto option because who doesn't love full auto?
- **AutoDisplays:** Automatically spams block displays around all player's heads to blind them or text displays around them for trolling and advertising. Requires operator access. (Credits to etianl :D)
- **AutoDrop:** Drops the stack in your selected slot automatically, or you can choose a slot to dump. You can shift click your inventory items to dump your trash easily. (Credits to etianl :D)
- **AutoLavaCaster** Simple timer based bot for lavacasting. Aim at the top of the block you want to cast on and activate the module. It places lava, then after an amount of time removes the lava, places the water after a specified delay, removes it after a specified delay, it will build the mountain upward, tower you up and repeat. Position yourself on a block above and diagonally, mostly perpendicular from the targeted block for best results. (Credits to etianl :D)
- *AutoLavaCaster Notes:*
Expand Down Expand Up @@ -81,7 +82,7 @@ This will return the lowest block placed with AutoMountain until AutoLavacast is
- **HandOfGod:** Runs the "/fill" command on the world around you or around everyone else in different ways as you move around, and as you click. Destroy and modify the world with ease! Operator status required. (Credits to etianl :D)
- **Inventory Dupe (1.17):** Duplicates things in your crafting slots when the module is enabled and the Dupe button is pressed in your inventory. Only works on Minecraft servers on the version 1.17, not any version before or after.(Credit to ItsVen and Da0neDatGotAway for original creation of the dupe, and to B2H990 for making the fabric mod. Credits to etianl for porting to Meteor.)
- **InstaKill:** Shoots arrows and tridents with incredible power and velocity. Enabling multiple buttons causes the amount of packets to add up. (Credits to Saturn5Vfive)
- **LavaAura:** Automatically places and picks up lava buckets at an entity's feet on a tick delay. Also has the option of placing lavabuckets on every block face which may be useful in creative mode. (Credits to etianl :D)
- **LavaAura:** Automatically places and picks up lava buckets at an entity's position on a tick delay, or sets the entity on fire using flint and steel or fire charges. Also has the option of placing lavabuckets or fire on every block face which may be useful in creative mode. (Credits to etianl :D)
- **LecternCrash:** Crash 1.18.X vanilla servers and possibly below. (Credits to Coderx-Gamer)
- **NbtEditor:** Requires Creative mode. Generates custom entities in the form of a custom spawn egg, and it can also generate items with custom enchantments and potions with custom effects all based on the settings you configure. (Credits to etianl :D)
- **NewerNewChunks:** NewChunks module with new newchunk estimation exploits, and the ability to save chunk data for later! Also with special options for tracing servers that have been updated from a version before the build limit updates, which throw false positives normally. (Credits to Meteor Rejects, and BleachHack from where it was ported, and etianl for updating :D.)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ yarn_mappings=1.20.4+build.3
loader_version=0.15.3

# Mod Properties
mod_version=0.8.2-1.20.4
mod_version=0.8.3-1.20.4
maven_group=pwn.noobs
archives_base_name=1trouser-streak

Expand Down
1 change: 1 addition & 0 deletions src/main/java/pwn/noobs/trouserstreak/Trouser.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public void onInitialize() {
Modules.get().add(new AutoCommand());
Modules.get().add(new AutoScoreboard());
Modules.get().add(new AutoTitles());
Modules.get().add(new AutoDisplays());
Commands.add(new LavaTimeCalculator());
Commands.add(new CasterTimer());
Commands.add(new NewChunkCounter());
Expand Down
40 changes: 37 additions & 3 deletions src/main/java/pwn/noobs/trouserstreak/commands/CrashCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,58 @@
import meteordevelopment.meteorclient.commands.Command;
import meteordevelopment.meteorclient.commands.arguments.PlayerListEntryArgumentType;
import meteordevelopment.meteorclient.utils.player.ChatUtils;
import net.minecraft.client.network.PlayerListEntry;
import net.minecraft.command.CommandSource;
import net.minecraft.text.Text;

import java.util.concurrent.CopyOnWriteArrayList;

import static com.mojang.brigadier.Command.SINGLE_SUCCESS;
import static meteordevelopment.meteorclient.MeteorClient.mc;

public class CrashCommand extends Command {
public CrashCommand() {
super("crash", "Crash players, requires permission level 2 or higher");
}
private CopyOnWriteArrayList<PlayerListEntry> players;

@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
builder.executes(ctx -> {
players = new CopyOnWriteArrayList<>(mc.getNetworkHandler().getPlayerList());
if (players.size() <= 1) { // Check if there is only one player (you) on the server
error("No other players found on the server");
return SINGLE_SUCCESS;
}
if(mc.player.hasPermissionLevel(2)) {
ChatUtils.sendPlayerMsg("/execute at @a[name=!" + mc.player.getName().getLiteralString() + "] run particle ash ~ ~ ~ 1 1 1 1 2147483647 force @a[name=!" + mc.player.getName().getLiteralString() + "]");
StringBuilder playerNames = new StringBuilder("Crashing players: ");
for (PlayerListEntry player : players) {
if (!player.getProfile().getId().equals(mc.player.getGameProfile().getId())) {
playerNames.append(player.getProfile().getName()).append(", ");
}
}
playerNames.setLength(playerNames.length() - 2); // Remove the extra comma and space at the end
ChatUtils.sendMsg(Text.of(playerNames.toString()));
return SINGLE_SUCCESS;
} else if (!(mc.player.hasPermissionLevel(2))) error("Must have permission level 2 or higher");
return SINGLE_SUCCESS;
});
builder.then(argument("player", PlayerListEntryArgumentType.create()).executes(context -> {
GameProfile profile = PlayerListEntryArgumentType.get(context).getProfile();
if(mc.player.hasPermissionLevel(2)) ChatUtils.sendPlayerMsg("/execute at " + profile.getName() + " run particle ash ~ ~ ~ 1 1 1 1 2147483647 force " + profile.getName());
ChatUtils.sendMsg(Text.of("Crashing player: "+profile.getName()));
if (profile != null) {
if (mc.getNetworkHandler().getPlayerList().stream().anyMatch(player -> player.getProfile().getId().equals(profile.getId()))) {
if (mc.player.hasPermissionLevel(2)) {
ChatUtils.sendPlayerMsg("/execute at " + profile.getName() + " run particle ash ~ ~ ~ 1 1 1 1 2147483647 force " + profile.getName());
ChatUtils.sendMsg(Text.of("Crashing player: " + profile.getName()));
} else if (!mc.player.hasPermissionLevel(2)) error("Must have permission level 2 or higher");
} else {
error("Player not found in the current server");
}
} else {
error("Player profile not found");
}
return SINGLE_SUCCESS;
}));
}
}
}
20 changes: 17 additions & 3 deletions src/main/java/pwn/noobs/trouserstreak/modules/AutoCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,14 @@ private void onTick(TickEvent.Post event) {
if(sent && !auto.get()) return;

if(mc.player.hasPermissionLevel(permissionLevel.get()) && !auto.get()) {
if(mode.get() == Mode.Manual) for(String command : commands.get()) ChatUtils.sendPlayerMsg(command);
if(mode.get() == Mode.Manual) for(String command : commands.get()) {
if (command.length()<=256){
ChatUtils.sendPlayerMsg(command);
}
else {
error("This command too long, shorten it somehow ("+command+")");
}
}
if(mode.get() == Mode.Macro) {
try {
Macros.get().get(macroName.get()).onAction();
Expand All @@ -107,7 +114,14 @@ private void onTick(TickEvent.Post event) {
if (ticks<=atickdelay.get()){
ticks++;
} else if (ticks>atickdelay.get()){
if(mode.get() == Mode.Manual) for(String command : commands.get()) ChatUtils.sendPlayerMsg(command);
if(mode.get() == Mode.Manual) for(String command : commands.get()) {
if (command.length()<=256){
ChatUtils.sendPlayerMsg(command);
}
else {
error("This command too long, shorten it somehow ("+command+")");
}
}
if(mode.get() == Mode.Macro) {
try {
Macros.get().get(macroName.get()).onAction();
Expand All @@ -124,4 +138,4 @@ public enum Mode {
Manual,
Macro
}
}
}
Loading

0 comments on commit 79350b2

Please sign in to comment.