added prone
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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());
|
||||
|
||||
25
src/main/java/cloudburst/rejects/modules/Prone.java
Normal file
25
src/main/java/cloudburst/rejects/modules/Prone.java
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user