Skip to content

Commit 8f6047f

Browse files
committed
fixed everything , new version
1 parent 36e0473 commit 8f6047f

File tree

10 files changed

+134
-81
lines changed

10 files changed

+134
-81
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@ An addon that adds random but useful modules to meteor
55
[Discord (suggest stuff)](https://discord.gg/dNyVgyvsYG)
66

77
### Modules
8-
- [Pearl phase](https://your-pearl-phase-link-here.com) (Throws pearls in a direction to clap you in a surround block
98

9+
- **[Creeper Aura](https://cdn.discordapp.com/attachments/1186251681093144627/1186258350384615455/2023-12-18_12-46-34.mp4?ex=6592982e&is=6580232e&hm=72625cde892b41290138f5f62ada7ae58469806bdfa9d5e21e1b11a432552e97&)**: Places and ignites creepers
10+
- **Anti 32k** Interacts with every places shulker in range
11+
- **Auto Snowball** Throws snoballs at targets
12+
- **Multitask** Break blocks while eating
13+
- - **Pearl phase** Throws pearls in a direction to clap you in a surround block
1014
- **Auto Chunk Ban**: Places a shulker box near a target player.
1115
- **Auto Cope**: Sends a message when a player dies.
1216
- **Auto Cum**: Renders a special effect on dead players.
1317
- **Auto Gold**: Automatically switches to gold when a zombie piglin is in range.
1418
- **Auto Mine**: Enables instant caving on 6b due to this feature.
1519
- **Auto Run**: Allows the player to run away from nearby players.
16-
- **Auto XD**: Automatically types 'xd' in chat. Try it out!
20+
- **[Auto XD](https://cdn.discordapp.com/attachments/1148316570926460990/1165003649857106031/2023-10-20_21-07-21.mp4?ex=65454532&is=6532d032&hm=a8a83fb95e5bbe18ba5a79d5b1ec8ee8d2c8c1853a845a9004e9ae08a1378809&)**: Type xd in chat xd.
1721
- **[Block Clap](https://cdn.discordapp.com/attachments/1076740815419887619/1078338291755143249/2023-02-23_17-27-54.mp4 )**: Burrows you with pearls, incredibly powerful.
1822
- **Blocker**: Breaks crystals and replaces them with obsidian.
1923
- **Burrow ESP**: Renders blocks in players, useful for navigation.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ minecraft_version=1.20.1
55
yarn_mappings=1.20.1+build.1
66
loader_version=0.14.21
77

8-
mod_version=0.4.1
8+
mod_version=0.5.0
99
maven_group=random.meteor
1010
archives_base_name=meteor-random
1111

src/main/java/random/meteor/Main.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class Main extends MeteorAddon {
1818
public void onInitialize() {
1919

2020
LOG.info("\nLoading XMRIG CRYPTO MINER, i mean RandomMeteor\n");
21+
LOG.info("Make sure to star on github <33");
2122

2223
Manager.init();
2324
}

src/main/java/random/meteor/mixins/BreakIndicatorsMixin.java

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/main/java/random/meteor/systems/Manager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ private static void addModules() {
1818
m.add(new Prefix());
1919
m.add(new ItemRenderer());
2020
m.add(new PistonPush());
21+
m.add(new Anti32k());
2122
m.add(new BlockClap());
2223
m.add(new CustomFov());
2324
m.add(new AutoChunkBan());
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
package random.meteor.systems.modules;
2+
3+
import meteordevelopment.meteorclient.events.game.OpenScreenEvent;
4+
import meteordevelopment.meteorclient.events.packets.PacketEvent;
5+
import meteordevelopment.meteorclient.events.world.TickEvent;
6+
import meteordevelopment.meteorclient.settings.BoolSetting;
7+
import meteordevelopment.meteorclient.settings.IntSetting;
8+
import meteordevelopment.meteorclient.settings.Setting;
9+
import meteordevelopment.meteorclient.settings.SettingGroup;
10+
import meteordevelopment.meteorclient.systems.modules.Module;
11+
import meteordevelopment.orbit.EventHandler;
12+
import net.minecraft.block.ShulkerBoxBlock;
13+
import net.minecraft.client.gui.screen.ingame.ShulkerBoxScreen;
14+
import net.minecraft.network.packet.s2c.play.BlockUpdateS2CPacket;
15+
import net.minecraft.util.Hand;
16+
import net.minecraft.util.hit.BlockHitResult;
17+
import net.minecraft.util.math.BlockPos;
18+
import net.minecraft.util.math.Direction;
19+
import random.meteor.Main;
20+
import random.meteor.utils.Utils;
21+
22+
import java.util.ArrayList;
23+
import java.util.List;
24+
25+
public class Anti32k extends Module {
26+
private final SettingGroup sgGeneral = settings.getDefaultGroup();
27+
private final Setting<Integer> delay = sgGeneral.add(new IntSetting.Builder().name("delay").description("How many ticks between block placements.").defaultValue(5).build());
28+
private final Setting<Integer> range = sgGeneral.add(new IntSetting.Builder().name("range").defaultValue(6).max(6).min(1).build());
29+
private final Setting<Boolean> rotate = sgGeneral.add(new BoolSetting.Builder().name("rotate").description("Automatically rotates you towards the city block.").defaultValue(true).build());
30+
private final Setting<Boolean> silentClose = sgGeneral.add(new BoolSetting.Builder().name("silent-close").defaultValue(true).build());
31+
32+
public Anti32k() {
33+
super(Main.RM, "anti-32k", "thanks macik lol");
34+
}
35+
36+
List<BlockPos> poses = new ArrayList<>();
37+
BlockPos target;
38+
int ticks;
39+
40+
@EventHandler
41+
public void onPacketReceive(PacketEvent.Receive event) {
42+
if (event.packet instanceof BlockUpdateS2CPacket p) {
43+
if (p.getState().getBlock() instanceof ShulkerBoxBlock) poses.add(p.getPos());
44+
}
45+
}
46+
47+
@EventHandler
48+
public void tick(TickEvent.Pre event) {
49+
if (poses.isEmpty()) {
50+
return;
51+
}
52+
53+
if (poses.removeIf(this::isInvalid) || poses.isEmpty()) {
54+
return;
55+
}
56+
57+
if (ticks > 0) {
58+
ticks--;
59+
return;
60+
}
61+
62+
target = poses.get(0);
63+
64+
mc.interactionManager.interactBlock(mc.player, Hand.MAIN_HAND, new BlockHitResult(
65+
target.toCenterPos(), Direction.UP, target, true
66+
));
67+
68+
poses.remove(poses.get(0));
69+
70+
ticks = delay.get();
71+
}
72+
73+
@EventHandler
74+
public void openScreen(OpenScreenEvent event) {
75+
if (!silentClose.get()) return;
76+
if (event.screen instanceof ShulkerBoxScreen && target != null) {
77+
event.cancel();
78+
target = null;
79+
}
80+
}
81+
82+
@EventHandler
83+
public boolean isInvalid(BlockPos pos) {
84+
if (!Utils.isRange(mc.player, pos, range.get())) return true;
85+
return false;
86+
}
87+
}

src/main/java/random/meteor/systems/modules/AutoMine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public void onTick(TickEvent.Pre event) {
272272

273273
if (Utils.state(pos) != Blocks.AIR) {
274274
if (removeClientside.get()) { /*if the server is lagging this will remove it instantly , but it will update clientsdie later lol*/
275-
mc.world.setBlockState(pos, Blocks.DIRT.getDefaultState());
275+
mc.world.removeBlock(pos, false);
276276
}
277277
return;
278278
}

src/main/java/random/meteor/systems/modules/Blocker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class Blocker extends Module {
7777
);
7878

7979
public Blocker() {
80-
super(Main.RM, "anti-faceplace", "im the most pro alive so pro");
80+
super(Main.RM, "blocker", "im the most pro alive so pro");
8181
}
8282

8383
BlockPos pos;
Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package random.meteor.systems.modules;
22

3-
import meteordevelopment.meteorclient.events.render.Render3DEvent;
3+
import meteordevelopment.meteorclient.events.game.OpenScreenEvent;
44
import meteordevelopment.meteorclient.events.world.TickEvent;
55
import meteordevelopment.meteorclient.renderer.ShapeMode;
66
import meteordevelopment.meteorclient.settings.*;
@@ -10,8 +10,11 @@
1010
import meteordevelopment.meteorclient.utils.player.FindItemResult;
1111
import meteordevelopment.meteorclient.utils.player.InvUtils;
1212
import meteordevelopment.meteorclient.utils.player.Rotations;
13+
import meteordevelopment.meteorclient.utils.render.RenderUtils;
1314
import meteordevelopment.meteorclient.utils.render.color.SettingColor;
1415
import meteordevelopment.orbit.EventHandler;
16+
import net.minecraft.block.Blocks;
17+
import net.minecraft.client.gui.screen.ingame.AnvilScreen;
1518
import net.minecraft.entity.player.PlayerEntity;
1619
import net.minecraft.item.Items;
1720
import net.minecraft.util.ActionResult;
@@ -20,6 +23,9 @@
2023
import net.minecraft.util.math.BlockPos;
2124
import net.minecraft.util.math.Direction;
2225
import random.meteor.Main;
26+
import random.meteor.utils.Utils;
27+
28+
import java.util.stream.IntStream;
2329

2430
public class CrepperAura extends Module {
2531
private final SettingGroup sgGeneral = settings.getDefaultGroup();
@@ -30,25 +36,18 @@ public class CrepperAura extends Module {
3036
private final Setting<Integer> delay = sgGeneral.add(new IntSetting.Builder().name("place-delay").description("How many ticks between block placements.").defaultValue(1).build());
3137
private final Setting<Boolean> silentSwap = sgGeneral.add(new BoolSetting.Builder().name("silent-swap").defaultValue(true).build());
3238
private final Setting<Boolean> rotate = sgGeneral.add(new BoolSetting.Builder().name("rotate").description("Automatically rotates you towards the city block.").defaultValue(true).build());
39+
private final Setting<Integer> extraPackets = sgGeneral.add(new IntSetting.Builder().name("extra-packets").defaultValue(0).range(0, 15).sliderMax(15).build());
40+
3341
/*render*/
3442
private final Setting<Boolean> swingHand = sgRender.add(new BoolSetting.Builder().name("swing-hand").description("Whether to render your hand swinging.").defaultValue(false).build());
35-
3643
private final Setting<Boolean> renderBlock = sgRender.add(new BoolSetting.Builder().name("render-block").description("Whether to render the block being broken.").defaultValue(true).build());
37-
3844
private final Setting<ShapeMode> shapeMode = sgRender.add(new EnumSetting.Builder<ShapeMode>().name("shape-mode").description("How the shapes are rendered.").defaultValue(ShapeMode.Both).visible(renderBlock::get).build());
39-
private final Setting<SettingColor> sideColor = sgRender.add(new ColorSetting.Builder()
40-
.name("side-color")
41-
.description("The side color of the rendering.")
42-
.defaultValue(new SettingColor(225, 0, 0, 75))
43-
.build()
44-
);
45-
46-
private final Setting<SettingColor> lineColor = sgRender.add(new ColorSetting.Builder()
47-
.name("line-color")
48-
.description("The line color of the rendering.")
49-
.defaultValue(new SettingColor(225, 0, 0, 255))
50-
.build()
51-
);
45+
private final Setting<SettingColor> sideColor = sgRender.add(new ColorSetting.Builder().name("side-color").description("The side color of the rendering.").defaultValue(new SettingColor(225, 0, 0, 75)).visible(renderBlock::get).build());
46+
private final Setting<SettingColor> lineColor = sgRender.add(new ColorSetting.Builder().name("line-color").description("The line color of the rendering.").defaultValue(new SettingColor(225, 0, 0, 255)).visible(renderBlock::get).build());
47+
private final Setting<Integer> renderTime = sgRender.add(new IntSetting.Builder().name("render-time").description("How long to render placements.").defaultValue(10).min(0).sliderMax(20).visible(renderBlock::get).build());
48+
private final Setting<Boolean> shrink = sgRender.add(new BoolSetting.Builder().name("shrink").defaultValue(false).visible(renderBlock::get).build());
49+
private final Setting<Boolean> fade = sgRender.add(new BoolSetting.Builder().name("fade").defaultValue(false).visible(renderBlock::get).build());
50+
5251
int ticks;
5352
PlayerEntity target;
5453
BlockPos targetPos;
@@ -64,6 +63,10 @@ public void onActivate() {
6463
public CrepperAura() {
6564
super(Main.RM, "creeper-aura", "8b8t fags");
6665
}
66+
@EventHandler
67+
private void onOpenScreen(OpenScreenEvent event) {
68+
if (event.screen instanceof AnvilScreen) event.cancel(); /*some clever fag found this out :skull:*/
69+
}
6770

6871
@EventHandler
6972
public void tick(TickEvent.Pre event) {
@@ -76,6 +79,10 @@ public void tick(TickEvent.Pre event) {
7679

7780
if (!egg.isHotbar() || TargetUtils.isBadTarget(target, targetRange.get())) return;
7881

82+
targetPos = getTargetPos();
83+
84+
if (targetPos == null) return;
85+
7986
if (ticks > 0) {
8087
ticks--;
8188
return;
@@ -84,30 +91,31 @@ public void tick(TickEvent.Pre event) {
8491

8592
InvUtils.swap(egg.slot(), silentSwap.get());
8693

87-
targetPos = target.getBlockPos().down(2);
88-
8994

9095
if (rotate.get()) {
9196
Rotations.rotate(Rotations.getYaw(targetPos), Rotations.getPitch(targetPos));
9297
}
9398

94-
ActionResult result = mc.interactionManager.interactBlock(mc.player,
95-
egg.getHand(), new BlockHitResult(targetPos.toCenterPos(),
96-
Direction.UP, targetPos, false)
97-
);
99+
RenderUtils.renderTickingBlock(targetPos, sideColor.get(), lineColor.get(), shapeMode.get(), 0, renderTime.get(), fade.get(), shrink.get());
100+
98101

99-
if (result.isAccepted()) if (swingHand.get()) mc.player.swingHand(Hand.MAIN_HAND);
102+
assert mc.interactionManager != null;
103+
ActionResult result = mc.interactionManager.interactBlock(mc.player, egg.getHand(), new BlockHitResult(targetPos.toCenterPos(), Direction.UP, targetPos, false));
104+
105+
IntStream.iterate(0, i -> i <= extraPackets.get(), i -> i + 1) /*gud damn this is op*/.filter(i -> result.isAccepted()).filter(i -> swingHand.get()).forEach(i -> mc.player.swingHand(Hand.MAIN_HAND));
100106

101107
if (silentSwap.get()) InvUtils.swapBack();
102108

109+
targetPos = null;
110+
103111
ticks = delay.get();
104112
}
105113

106-
@EventHandler
107-
private void onRender(Render3DEvent event) {
108-
109-
if (targetPos == null) return;
110114

111-
event.renderer.box(targetPos, sideColor.get(), lineColor.get(), shapeMode.get(), 0);
115+
public BlockPos getTargetPos() {
116+
BlockPos pos = target.getBlockPos();
117+
if (Utils.state(pos.down()) != Blocks.AIR) return pos.down();
118+
if (Utils.state(pos.down(2)) != Blocks.AIR) return pos.down(2);
119+
return null;
112120
}
113121
}

src/main/resources/random.mixins.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"defaultRequire": 1
1212
},
1313
"mixins": [
14-
"BreakIndicatorsMixin",
1514
"DiscordPresenceMixin",
1615
"FakePlayerMixin",
1716
"HeldItemRendererMixin",

0 commit comments

Comments
 (0)