added prone

This commit is contained in:
C10udburst
2021-08-29 20:24:09 +02:00
parent bafb516037
commit b4feb14778
3 changed files with 27 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ An addon to Meteor Client that adds modules and commands that were too useless t
- PacketFly (Taken from an [unmerged PR](https://github.com/MeteorDevelopment/meteor-client/pull/813))
- Painter
- Phase
- Prone (Taken from an [unmerged PR](https://github.com/MeteorDevelopment/meteor-client/pull/1423))
- Rendering
- SkeletonESP (Ported from [JexClient](https://github.com/DustinRepo/JexClient-main/blob/main/src/main/java/me/dustin/jex/feature/mod/impl/render/Skeletons.java))
- SoundLocator

View File

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

View File

@@ -0,0 +1,25 @@
package cloudburst.rejects.modules;
import meteordevelopment.meteorclient.events.world.CollisionShapeEvent;
import meteordevelopment.meteorclient.systems.modules.Module;
import meteordevelopment.orbit.EventHandler;
import net.minecraft.util.shape.VoxelShapes;
import cloudburst.rejects.MeteorRejectsAddon;
public class Prone extends Module {
public Prone() {
super(MeteorRejectsAddon.CATEGORY, "prone", "Become prone on demand.");
}
@EventHandler
private void onCollisionShape(CollisionShapeEvent event) {
if (mc.world == null || mc.player == null) return;
if (event.state == null) return;
if (event.pos.getY() != mc.player.getY() + 1) return;
event.shape = VoxelShapes.fullCube();
}
}