Skip to content

Commit 6057bbd

Browse files
committed
a
1 parent 7368053 commit 6057bbd

15 files changed

+218
-183
lines changed

README.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
# MMCUtils
2-
Utilities for Minemen Club
1+
# VapeV69
2+
a client side visual mod that makes ur game looks like cheating
33

44
# Features
5-
- **Auto Practice** - Go straight into practice once joined.
6-
- **Auto Party Chat** - Enter party chat once joined practice.
7-
- **Height Overlay** - Make wools and terracottas darker at height limit.
8-
- **Height Overlay Darkness** - Adjust the darkness of height limit overlay.
9-
- **Height Overlay Distance HUD** - Shows how many blocks you are away from height limit.
5+
- **Auto Blockhit** - makes u always blockhit
6+
- **Safewalk** - makes u appear not sneaking
7+
- **Spinning Head** - makes ur head turn towards the nearest player
8+
- **List** - a simple list to show enabled modules
109

1110
Configurable in `OneConfig` menu
1211

13-
# Requirements
14-
- OptiFine Smooth Lighting: On
15-
12+
![settings.png](images/settings.png)

build.gradle.kts

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ plugins {
2121
val mod_name: String by project
2222
val mod_version: String by project
2323
val mod_id: String by project
24+
val mod_archives_name: String by project
2425

2526
// Sets up the variables for when we preprocess to other Minecraft versions.
2627
preprocess {
@@ -43,7 +44,7 @@ group = "cc.polyfrost"
4344
// Sets the name of the output jar (the one you put in your mods folder and send to other people)
4445
// It outputs all versions of the mod into the `build` directory.
4546
base {
46-
archivesName.set("$mod_id-$platform")
47+
archivesName.set("$mod_archives_name-$platform")
4748
}
4849

4950
// Configures the Polyfrost Loom, our plugin fork to easily set up the programming environment.
@@ -95,7 +96,9 @@ repositories {
9596
dependencies {
9697
// Adds the OneConfig library, so we can develop with it.
9798
modCompileOnly("cc.polyfrost:oneconfig-$platform:0.2.0-alpha+")
98-
implementation(files("libs/optifine-1.8.9.jar"))
99+
100+
// implementation(files("libs/OverflowAnimations-2.0.1-b6-1.8.9.jar"))
101+
99102
// If we are building for legacy forge, includes the launch wrapper with `shade` as we configured earlier.
100103
if (platform.isLegacyForge) {
101104
compileOnly("org.spongepowered:mixin:0.7.11-SNAPSHOT")

gradle.properties

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# gradle.properties file -- CHANGE THE VALUES STARTING WITH `mod_*` AND REMOVE THIS COMMENT.
22

33
# Sets the name of your mod.
4-
mod_name=MMCUtils
4+
mod_name=VapeV69
55
# Sets the id of your mod that mod loaders use to recognize it.
6-
mod_id=mmcutils
6+
mod_id=vapev69
77
# Sets the version of your mod. Make sure to update this when you make changes according to semver.
8-
mod_version=1.0.5
8+
mod_version=0.1
99
# Sets the name of the jar file that you put in your 'mods' folder.
10-
mod_archives_name=MMCUtils
10+
mod_archives_name=VapeV69
1111

1212
# Gradle Configuration -- DO NOT TOUCH THESE VALUES.
1313
polyfrost.defaults.loom=1

images/settings.png

212 KB
Loading

src/main/java/me/redth/mmcutils/Configuration.java

-33
This file was deleted.

src/main/java/me/redth/mmcutils/HeightLimitHud.java

-31
This file was deleted.

src/main/java/me/redth/mmcutils/MMCUtils.java

-60
This file was deleted.

src/main/java/me/redth/mmcutils/mixin/BlockModelRendererMixin.java

-35
This file was deleted.
+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
package me.redth.vapev69;
2+
3+
import me.redth.vapev69.config.VapeConfig;
4+
import net.minecraft.client.Minecraft;
5+
import net.minecraft.entity.player.EntityPlayer;
6+
import net.minecraft.item.ItemStack;
7+
import net.minecraft.item.ItemSword;
8+
import net.minecraft.util.Vec3;
9+
import net.minecraftforge.client.event.RenderPlayerEvent;
10+
import net.minecraftforge.common.MinecraftForge;
11+
import net.minecraftforge.fml.common.Mod;
12+
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
13+
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
14+
import net.minecraftforge.fml.common.gameevent.TickEvent;
15+
16+
@Mod(modid = "@ID@", name = "@NAME@", version = "@VER@")
17+
public class VapeV69 {
18+
private static final Minecraft mc = Minecraft.getMinecraft();
19+
public static VapeConfig config;
20+
public static boolean isInRenderTick;
21+
22+
public static float prevRotationYawHead;
23+
public static float rotationYawHead;
24+
public static float prevRotationPitch;
25+
public static float rotationPitch;
26+
27+
public static float prevRotationYawHeadVisual;
28+
public static float prevRotationPitchVisual;
29+
public static float rotationYawHeadVisual;
30+
public static float rotationPitchVisual;
31+
32+
@Mod.EventHandler
33+
public void init(FMLInitializationEvent e) {
34+
MinecraftForge.EVENT_BUS.register(this);
35+
config = new VapeConfig();
36+
}
37+
38+
@SubscribeEvent
39+
public void playerPreRender(RenderPlayerEvent.Pre e) {
40+
if (!e.entityPlayer.equals(mc.thePlayer) || !config.enabled || !VapeConfig.spinning) return;
41+
42+
prevRotationYawHead = mc.thePlayer.prevRotationYawHead;
43+
rotationYawHead = mc.thePlayer.rotationYawHead;
44+
prevRotationPitch = mc.thePlayer.prevRotationPitch;
45+
rotationPitch = mc.thePlayer.rotationPitch;
46+
47+
mc.thePlayer.prevRotationYawHead = prevRotationYawHeadVisual;
48+
mc.thePlayer.prevRotationPitch = prevRotationPitchVisual;
49+
mc.thePlayer.rotationYawHead = rotationYawHeadVisual;
50+
mc.thePlayer.rotationPitch = rotationPitchVisual;
51+
}
52+
53+
@SubscribeEvent
54+
public void onTick(TickEvent.ClientTickEvent e) {
55+
if (e.phase != TickEvent.Phase.END) return;
56+
if (mc.theWorld == null || mc.thePlayer == null) return;
57+
getDirection();
58+
}
59+
60+
public static void getDirection() {
61+
prevRotationYawHeadVisual = rotationYawHeadVisual;
62+
prevRotationPitchVisual = rotationPitchVisual;
63+
64+
EntityPlayer nearestEntity = mc.theWorld.findNearestEntityWithinAABB(EntityPlayer.class, mc.thePlayer.getEntityBoundingBox().expand(5, 5, 5), mc.thePlayer);
65+
if (nearestEntity == null) {
66+
67+
rotationYawHeadVisual = System.currentTimeMillis() % 360;
68+
rotationPitchVisual = (float) Math.sin(System.currentTimeMillis() % 360) * 90;
69+
70+
} else {
71+
72+
Vec3 difference = mc.thePlayer.getPositionEyes(1).subtract(nearestEntity.getPositionEyes(1));
73+
74+
double yaw = Math.toDegrees(Math.atan2(difference.zCoord, difference.xCoord)) + 90;
75+
yaw = (yaw + 360) % 360;
76+
77+
double horizontalDistance = Math.sqrt(difference.xCoord * difference.xCoord + difference.zCoord * difference.zCoord);
78+
double pitch = Math.toDegrees(Math.atan2(difference.yCoord, horizontalDistance));
79+
pitch = (pitch + 360) % 360;
80+
81+
rotationYawHeadVisual = (float) yaw;
82+
rotationPitchVisual = (float) pitch;
83+
}
84+
}
85+
86+
@SubscribeEvent
87+
public void playerPostRender(RenderPlayerEvent.Post e) {
88+
if (!e.entityPlayer.equals(mc.thePlayer) || !config.enabled || !VapeConfig.spinning) return;
89+
mc.thePlayer.prevRotationYawHead = prevRotationYawHead;
90+
mc.thePlayer.rotationYawHead = rotationYawHead;
91+
mc.thePlayer.prevRotationPitch = prevRotationPitch;
92+
mc.thePlayer.rotationPitch = rotationPitch;
93+
}
94+
95+
public static boolean isEnabledAndRendering() {
96+
return config.enabled && isInRenderTick;
97+
}
98+
99+
public static boolean isSword(ItemStack item) {
100+
return VapeConfig.blockhit && item != null && item.getItem() instanceof ItemSword;
101+
}
102+
103+
public static boolean hasSafeWalk() {
104+
return VapeConfig.safewalk;
105+
}
106+
107+
108+
@SubscribeEvent
109+
public void onRenderTick(TickEvent.RenderTickEvent event) {
110+
isInRenderTick = event.phase == TickEvent.Phase.START;
111+
}
112+
113+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package me.redth.vapev69.config;
2+
3+
import cc.polyfrost.oneconfig.config.Config;
4+
import cc.polyfrost.oneconfig.config.annotations.HUD;
5+
import cc.polyfrost.oneconfig.config.annotations.Switch;
6+
import cc.polyfrost.oneconfig.config.data.Mod;
7+
import cc.polyfrost.oneconfig.config.data.ModType;
8+
9+
public class VapeConfig extends Config {
10+
11+
@Switch(name = "Auto Blockhit")
12+
public static boolean blockhit = false;
13+
14+
@Switch(name = "Safewalk")
15+
public static boolean safewalk = false;
16+
17+
@Switch(name = "Spinning Head")
18+
public static boolean spinning = false;
19+
20+
@HUD(name = "List")
21+
public static VapeHUD hud = new VapeHUD();
22+
23+
public VapeConfig() {
24+
super(new Mod("VapeV69", ModType.PVP, "/logo.png", 88, 24), "vapev69.json");
25+
initialize();
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package me.redth.vapev69.config;
2+
3+
import cc.polyfrost.oneconfig.hud.TextHud;
4+
5+
import java.util.List;
6+
7+
public class VapeHUD extends TextHud {
8+
public VapeHUD() {
9+
super(false);
10+
}
11+
12+
@Override
13+
protected void getLines(List<String> lines, boolean example) {
14+
if (VapeConfig.blockhit) lines.add("Auto Blockhit");
15+
if (VapeConfig.safewalk) lines.add("Safewalk");
16+
if (VapeConfig.spinning) lines.add("KillAura");
17+
}
18+
}

0 commit comments

Comments
 (0)