added phase (kinda works ¯\_(ツ)_/¯) resolves #9

This commit is contained in:
Cloudburst
2021-06-20 20:21:00 +02:00
parent 8e49b26efb
commit 7388f1821e
2 changed files with 29 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ public class MeteorRejectsAddon extends MeteorAddon {
modules.add(new ObsidianFarm()); modules.add(new ObsidianFarm());
modules.add(new PacketFly()); modules.add(new PacketFly());
modules.add(new Painter()); modules.add(new Painter());
modules.add(new Phase());
modules.add(new Rendering()); modules.add(new Rendering());
modules.add(new SkeletonESP()); modules.add(new SkeletonESP());
modules.add(new SoundLocator()); modules.add(new SoundLocator());

View File

@@ -0,0 +1,28 @@
package cloudburst.rejects.modules;
import net.minecraft.util.shape.VoxelShapes;
import cloudburst.rejects.MeteorRejectsAddon;
import meteordevelopment.meteorclient.events.world.CollisionShapeEvent;
import meteordevelopment.meteorclient.systems.modules.Module;
import meteordevelopment.orbit.EventHandler;
public class Phase extends Module {
public Phase() {
super(MeteorRejectsAddon.CATEGORY, "phase", "Lets you clip through ground sometimes.");
}
@EventHandler
private void onCollisionShape(CollisionShapeEvent event) {
if (mc.world == null || mc.player == null) return;
if (event.type != CollisionShapeEvent.CollisionType.BLOCK) return;
if (event.pos.getY() < mc.player.getY()) {
if (mc.player.isSneaking()) {
event.shape = VoxelShapes.empty();
}
} else {
event.shape = VoxelShapes.empty();
}
}
}