Renamed directory to anticope
This commit is contained in:
24
src/main/java/anticope/rejects/modules/Prone.java
Normal file
24
src/main/java/anticope/rejects/modules/Prone.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package anticope.rejects.modules;
|
||||
|
||||
import anticope.rejects.MeteorRejectsAddon;
|
||||
import meteordevelopment.meteorclient.events.world.CollisionShapeEvent;
|
||||
import meteordevelopment.meteorclient.systems.modules.Module;
|
||||
import meteordevelopment.orbit.EventHandler;
|
||||
import net.minecraft.util.shape.VoxelShapes;
|
||||
|
||||
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