Skip to content

Commit

Permalink
1.19.4 update, TrouserBuild added, misc fixes
Browse files Browse the repository at this point in the history
**0.4.6**
-Updated to 1.19.4! I still also support 1.19.3, and 1.19.2 for those of you still on those versions.
-New Module, TrouserBuild! It can build either horizontally or vertically according to a 5x5 grid centered on the block you are aiming at.
-FlightAntikick module added in to substitute the lack of an antikick for velocity flight in MeteorClient. It simply moves you down on a timer. Bind it to the same key as flight.
-Removed TrouserFlight module, it was causing issues in 1.19.4.
-Removed AutoBuild in favour of TrouserBuild. (I'm trying to do less skids lol.)
-Removed the Banana utils used by AutoBuild.
-Increased HandofGod range.
-Optimised NewerNewChunk detection methods. (still based on liquid flow)
-Boom+ removed Instant and Motion modes for fireball for a single Fireball mode.
-Boom+ on target option actually spawns fireballs on the target now.
  • Loading branch information
etianl authored Mar 22, 2023
1 parent f692369 commit 79d807f
Show file tree
Hide file tree
Showing 20 changed files with 1,810 additions and 278 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ In no particular order
- [Allah-Hack](https://github.com/TaxEvasiqn/allah-hack)
- [Meteor-Rejects](https://github.com/AntiCope/meteor-rejects)
- [Frostburn Client](https://github.com/evaan/FrostBurn)
- [Banana](https://github.com/Bennooo/banana-for-everyone)
- [Banana](https://github.com/Bennooo/banana-for-everyone) credits for the idea behind TrouserBuild
- [1.17 Crafting Dupe](https://github.com/B2H990/NUMA-117-Crafting-Dupe/)
- [InstantKillBow](https://github.com/Saturn5Vfive/InstantKillBow)
- [LecternCrash](https://github.com/Coderx-Gamer/lectern-crash)
Expand All @@ -22,9 +22,8 @@ In no particular order
</p>

## Features:
- **Airstrike+:** Rains whatever entities you desire from a list similar to Boom. It used to only rain fireballs, that's all I changed. (Credits to Allah-Hack)
- **Airstrike+:** Rains whatever entities you desire from a list similar to Boom. It used to only rain fireballs, and I also changed the positioning of the spawning. (Credits to Allah-Hack)
- **AnHero:** Become An Hero! (A quick way back to spawn.) (Credits to etianl :D)
- **AutoBuild:** Places blocks according to selection in a 5x5 grid. You can draw pictures with it! (Credits to Banana) I modified it so it places lengthways infront of you. This way you can draw stairs and place them infront of you, hop up em and keep going.
- **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. Use the ".lavacalc" command to determine roughly how long lava will take to finish. (Credits to etianl :D)
- *AutoLavaCaster Notes:*
Expand All @@ -51,8 +50,9 @@ In no particular order
- **BetterScaffold:** Give you more options for scaffolding, bigger range and others. (Credits to Meteor-Tweaks)
- **Boom+:** Throws entities or spawns them on the targeted block when you click (Credits to Allah-Hack) I just added some more fun things you might want to throw.
- **ExplosionAura:** Spawns creepers at your position as you move that explode instantly. Like a bigger, more laggy Nuker module for creative mode. The use of the module Velocity is recommended to avoid being thrown around. (Credits to etianl :D)
- **FlightAntikick:** Moves you down on a tick-based timer. Added in to substitute the lack of an antikick for velocity flight in MeteorClient. Bind it to the same key as flight. (Credits to etianl :D)
- **HandOfGod:** Runs the "/fill" command on the world around you in different ways as you fly, and as you click. 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. (Credit to ItsVen and Da0neDatGotAway for original creation of the dupe, and to B2H990 for making the fabric mod.)
- **Inventory Dupe (1.17):** Duplicates things in your crafting slots when the module is enabled and the Dupe button is pressed in your inventory. (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)
- **LecternCrash:** Crash 1.18.X vanilla servers and possibly below. (Credits to Coderx-Gamer)
- **NewerNewChunks:** NewChunks module with 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 All @@ -65,18 +65,20 @@ In no particular order
- There is also an option for deleting chunk data in that particular dimension on the server.
- The .newchunkcount command can tell you how many chunks have been saved in data in the dimension you are in.
- *NewerNewChunks Special Options:*
- These are to be used when the server has two distinct diamond layers, and two distinct lava pool layers underground at spawn.
- The "IgnoreFlowBelow0" does not show a new chunk if liquid flow is only below Y zero, but does show a newchunk if flow is above Y zero, or both above AND below Y zero.
- The "AdvancedMode" highlights chunks that have flow only below Y0. If there is nothing but these you are updating old chunks to the new build limits and the FlowIsBelowY0 coloured chunks are OLD. If they are mixed with newchunks the FlowIsBelowY0 coloured chunks are NEW.
- AdvancedMode can be confusing, do not use if you can't interpret the chunk data.
- **RedstoneNuker:** It's just the regular Nuker module from Meteor client, customized for only breaking things that generate redstone signals. Also with included AutoTool. To keep you safer when placing lots of TNT. (Credits to Meteor Client for Nuker code, and AutoTool code inthere.)
- **ShulkerDupe:** Duplicates the contents of a shulker when pressing "Dupe" or "Dupe All" in the shulker menu. Only works on Vanilla, Forge, and Fabric servers 1.19 and below. Use multiconnect or viafabric (Credits to Allah-Hack, I just brought back the buttons, and make it dupe slot1 as well.)
- **Teleport:** Sets your position ontop of targeted block, within a possible reach of 64 blocks. Rarely can cause damage, be careful. ***EXPERIMENTAL*** (Credits to etianl :D)
- **TPFly:** It is a purely setPos based flight. PointAndFly mode is based off the ClickTP and AirPlace code, credits to Meteor for that. ***EXPERIMENTAL, movement is a little weird lol.*** (Credits to etianl :D)
- **TrouserFlight:** I just added a Normal mode antikick for Velocity flight cuz missing at the time.
- **TrouserBuild:** It can build either horizontally or vertically according to a 5x5 grid centered on the block you are aiming at. Right click to build at the targeted location. (Credits to etianl, and to Banana for the checkboxes and idea. :D)
- **Voider+:** Replaces the world from the top down. (Credits to Allah-Hack) I added a 3x3 voiding script, a TP foward option for deleting strips, as well as options to set max and minimum height for voiding, and instead of just air it can do water and lava now too.

## Known Bugs:
- **AutoLavaCaster Bugs**
- The timing will break if the server is under 15TPS.
- If you are too far out of reach it breaks.
- If view of the targeted block is obstructed it breaks.
- **AutoMountain Bugs**
Expand All @@ -91,12 +93,11 @@ In no particular order
-**More Bugs**
- TPFly can hurt you once in a while on disable. I tried to prevent this. You also rubberband if going toward a block because it attempts to teleport you through it.
- Adjusting TPFly antikick values while flying can be deadly
- Normal Mode antikick for the velocity flight mode that I added can cause damage once in a while for an unknown reason.
- .newchunkcount command shows exactly the chunks that are saved in chunk data, so when you are in normal mode or flowbelowY0 mode the returned values are not exactly in correlation to what is rendered on screen.
- NewerNewChunks has to be turned on atleast once prior to running .newchunkcount for the counter to work.

## Requirements:
- Latest dev build of Meteor-Client if using 1.19.3 or the full build of Meteor-Client if using 1.19.2
- Latest dev build of Meteor-Client if using 1.19.4 or the full build of Meteor-Client if using 1.19.3. Meteor Client 0.5.1 is required for 1.19.2, which is required to connect to servers that have enforce secure chat = true.
- Don't forget to try updating any other mods you are using if your game is still crashing.

## Total Download Count:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'fabric-loom' version '1.1-SNAPSHOT'
}

sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
org.gradle.jvmargs=-Xmx2G

# Fabric (https://fabricmc.net/versions.html)
minecraft_version=1.19.3
yarn_mappings=1.19.3+build.3
loader_version=0.14.11
minecraft_version=1.19.4
yarn_mappings=1.19.4+build.1
loader_version=0.14.17

# Mod Properties
mod_version=0.4.5-1.19.3
mod_version=0.4.6-1.19.4
maven_group=pwn.noobs
archives_base_name=1trouser-streak

# Dependency Versionsz

# Meteor (https://maven.meteordev.org/)
meteor_version=0.5.2-SNAPSHOT
meteor_version=0.5.3-SNAPSHOT
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
18 changes: 9 additions & 9 deletions src/main/java/pwn/noobs/trouserstreak/Trouser.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,26 @@ public void onInitialize() {

Modules.get().add(new AutoLavaCaster());
Modules.get().add(new AutoMountain());
Modules.get().add(new AutoStaircase());
Modules.get().add(new ShulkerDupe());
Modules.get().add(new InvDupeModule());
Modules.get().add(new NewerNewChunks());
Modules.get().add(new InstantKill());
Modules.get().add(new LecternCrash());
Modules.get().add(new Teleport());
Modules.get().add(new BetterScaffold());
Modules.get().add(new BetterAutoSign());
Modules.get().add(new AutoBuild());
Modules.get().add(new TPFly());
Modules.get().add(new HandOfGod());
Modules.get().add(new ExplosionAura());
Modules.get().add(new TrouserBuild());
Modules.get().add(new AirstrikePlus());
Modules.get().add(new BoomPlus());
Modules.get().add(new VoiderPlus());
Modules.get().add(new HandOfGod());
Modules.get().add(new ExplosionAura());
Modules.get().add(new RedstoneNuker());
Modules.get().add(new TPFly());
Modules.get().add(new BetterScaffold());
Modules.get().add(new BetterAutoSign());
Modules.get().add(new AutoDrop());
Modules.get().add(new TrouserFlight());
Modules.get().add(new AutoStaircase());
Modules.get().add(new RedstoneNuker());
Modules.get().add(new AnHero());
Modules.get().add(new FlightAntikick());
Commands.get().add(new LavaTimeCalculator());
Commands.get().add(new CasterTimer());
Commands.get().add(new NewChunkCounter());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package pwn.noobs.trouserstreak.events;

public class OffGroundSpeedEvent {
public static final OffGroundSpeedEvent INSTANCE = new OffGroundSpeedEvent();

public float speed;

public static OffGroundSpeedEvent get(float speed) {
INSTANCE.speed = speed;
return INSTANCE;
}
}
17 changes: 17 additions & 0 deletions src/main/java/pwn/noobs/trouserstreak/mixin/PlayerEntityMixin.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package pwn.noobs.trouserstreak.mixin;

import pwn.noobs.trouserstreak.events.OffGroundSpeedEvent;
import meteordevelopment.meteorclient.MeteorClient;
import net.minecraft.entity.player.PlayerEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(PlayerEntity.class)
public class PlayerEntityMixin {
@Inject(method = "getOffGroundSpeed", at = @At("RETURN"), cancellable = true)
private void onGetOffGroundSpeed(CallbackInfoReturnable<Float> cir) {
cir.setReturnValue(MeteorClient.EVENT_BUS.post(OffGroundSpeedEvent.get(cir.getReturnValueF())).speed);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void onTick(TickEvent.Pre event) {
public void onTick(TickEvent.Post event) {
ItemStack bomb = new ItemStack(Items.SALMON_SPAWN_EGG);
ItemStack bfr = mc.player.getMainHandStack();
BlockHitResult bhr = new BlockHitResult(mc.player.getPos(), Direction.DOWN, new BlockPos(mc.player.getPos()), false);
BlockHitResult bhr = new BlockHitResult(mc.player.getPos(), Direction.DOWN, new BlockPos(mc.player.getBlockPos()), false);
i++;
if (mc.player.getAbilities().creativeMode) {
if (i >= delay.get()) {
Expand Down
8 changes: 6 additions & 2 deletions src/main/java/pwn/noobs/trouserstreak/modules/AnHero.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import meteordevelopment.meteorclient.settings.*;
import meteordevelopment.meteorclient.systems.modules.Module;
import meteordevelopment.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.systems.modules.movement.Flight;
import meteordevelopment.meteorclient.systems.modules.movement.NoFall;
import meteordevelopment.meteorclient.systems.modules.world.Timer;
import meteordevelopment.meteorclient.utils.player.ChatUtils;
Expand Down Expand Up @@ -81,8 +82,11 @@ public void onActivate() {
if (chatmsg.get()){
ChatUtils.sendPlayerMsg(message.get());
}
if (Modules.get().get(TrouserFlight.class).isActive()) {
Modules.get().get(TrouserFlight.class).toggle();
if (Modules.get().get(Flight.class).isActive()) {
Modules.get().get(Flight.class).toggle();
}
if (Modules.get().get(FlightAntikick.class).isActive()) {
Modules.get().get(FlightAntikick.class).toggle();
}
if (Modules.get().get(TPFly.class).isActive()) {
Modules.get().get(TPFly.class).toggle();
Expand Down
Loading

0 comments on commit 79d807f

Please sign in to comment.