Skip to content

Commit

Permalink
1.21.4 update
Browse files Browse the repository at this point in the history
no changes, just update
  • Loading branch information
etianl authored Jan 7, 2025
1 parent e7bf619 commit a8e507d
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ In no particular order
- Joining a server with HandOfGod or Voider already on causes the module to be turned off due to "Not being OP" even if you are an operator

## Requirements:
- If you are using Minecraft version **1.21.3**, then use the latest **MeteorClient Dev Build of v0.5.9**
- If you are using Minecraft version **1.21.1**, then use **MeteorClient "Full Release" v0.5.8**
- If you are using Minecraft version **1.21.4**, then use the latest **MeteorClient Dev Build of v0.6.0**
- If you are using Minecraft version **1.21.3**, then use **MeteorClient "Full Release" v0.5.9**
- Please try [ViaFabricPlus](https://github.com/FlorianMichael/ViaFabricPlus), which will let you connect to almost any version from a new version client.
- Don't forget to try updating any other mods you are using if your game is crashing.

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 '1.8-SNAPSHOT'
id 'fabric-loom' version '1.9-SNAPSHOT'
}

sourceCompatibility = JavaVersion.VERSION_21
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
org.gradle.jvmargs=-Xmx2G

# Fabric (https://fabricmc.net/versions.html)
minecraft_version=1.21.3
yarn_mappings=1.21.3+build.2
minecraft_version=1.21.4
yarn_mappings=1.21.4+build.1
loader_version=0.16.9

# Mod Properties
mod_version=1.3.9-1.21.3
mod_version=1.3.9-1.21.4
maven_group=pwn.noobs
archives_base_name=1trouser-streak

# Meteor (https://maven.meteordev.org/)
meteor_version=0.5.9
meteor_version=0.6.0-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-8.11-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
if (player.hasVehicle()) {
Entity vehicle = player.getVehicle();
for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) {
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
}
vehicle.setPosition(vehicle.getX(), isopenair1.getY(), vehicle.getZ());
}
Expand All @@ -59,7 +59,7 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
if (player.hasVehicle()) {
Entity vehicle = player.getVehicle();
for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) {
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
}
vehicle.setPosition(vehicle.getX(), isopenair2.getY(), vehicle.getZ());
}
Expand All @@ -85,7 +85,7 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
if (player.hasVehicle()) {
Entity vehicle = player.getVehicle();
for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) {
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
}

vehicle.setPosition(vehicle.getX(), newopenair2.getY(), vehicle.getZ());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
if (player.hasVehicle()) {
Entity vehicle = player.getVehicle();
for (int packetNumber = 0; packetNumber < 4; packetNumber++) {
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
}
vehicle.setPosition(vehicle.getX(), isopenair1.getY(), vehicle.getZ());
}
Expand All @@ -57,7 +57,7 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
if (player.hasVehicle()) {
Entity vehicle = player.getVehicle();
for (int packetNumber = 0; packetNumber < 4; packetNumber++) {
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
}
vehicle.setPosition(vehicle.getX(), isopenair2.getY(), vehicle.getZ());
}
Expand All @@ -82,7 +82,7 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
if (player.hasVehicle()) {
Entity vehicle = player.getVehicle();
for (int packetNumber = 0; packetNumber < 4; packetNumber++) {
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
}

vehicle.setPosition(vehicle.getX(), newopenair2.getY(), vehicle.getZ());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ private void onPostTick(TickEvent.Post event) {
mc.interactionManager.interactBlock(mc.player, Hand.MAIN_HAND, new BlockHitResult(new Vec3d(signPos.getX(), signPos.getY(), signPos.getZ()), facing, signPos, false));
} else if (blockState.getBlock() instanceof HangingSignBlock) {
int rotation = blockState.get(HangingSignBlock.ROTATION);
Direction direction = Direction.fromHorizontal(rotation);
Direction direction = Direction.fromHorizontalDegrees(rotation);
mc.interactionManager.interactBlock(mc.player, Hand.MAIN_HAND, new BlockHitResult(new Vec3d(signPos.getX(), signPos.getY(), signPos.getZ()), direction, signPos, false));
}
if (differentText.get())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ public void onActivate() {

public void moveTo(Vec3d pos){
mc.player.getVehicle().setPosition(pos);
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
}
}
14 changes: 7 additions & 7 deletions src/main/java/pwn/noobs/trouserstreak/modules/MaceKill.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ private void onSendPacket(PacketEvent.Send event) {
if (fallHeight.get() <= 22) {
if (mc.player.hasVehicle()) {
for (int i = 0; i < 4; i++) {
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
}
double maxHeight = Math.min(mc.player.getVehicle().getY() + 22, mc.player.getVehicle().getY() + blocks);
mc.player.getVehicle().setPosition(mc.player.getVehicle().getX(), maxHeight + blocks, mc.player.getVehicle().getZ());
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
mc.player.getVehicle().setPosition(previouspos);
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
} else {
for (int i = 0; i < 4; i++) {
mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(false, mc.player.horizontalCollision));
Expand All @@ -89,10 +89,10 @@ private void onSendPacket(PacketEvent.Send event) {

if (mc.player.hasVehicle()) {
for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) {
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
}
mc.player.getVehicle().setPosition(mc.player.getVehicle().getX(), mc.player.getVehicle().getY() + blocks, mc.player.getVehicle().getZ());
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
} else {
for (int packetNumber = 0; packetNumber < (packetsRequired - 1); packetNumber++) {
mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(false, mc.player.horizontalCollision));
Expand All @@ -106,10 +106,10 @@ private void onSendPacket(PacketEvent.Send event) {
// Move back to original position
if (mc.player.hasVehicle()) {
mc.player.getVehicle().setPosition(previouspos);
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
// Do it again to be sure it happens
mc.player.getVehicle().setPosition(previouspos);
mc.player.networkHandler.sendPacket(new VehicleMoveC2SPacket(mc.player.getVehicle()));
mc.player.networkHandler.sendPacket(VehicleMoveC2SPacket.fromVehicle(mc.player.getVehicle()));
} else {
PlayerMoveC2SPacket homepacket = new PlayerMoveC2SPacket.PositionAndOnGround(previouspos.getX(), previouspos.getY(), previouspos.getZ(), false, mc.player.horizontalCollision);
((IPlayerMoveC2SPacket) homepacket).meteor$setTag(1337);
Expand Down

0 comments on commit a8e507d

Please sign in to comment.