- Status
- Offline
- Joined
- Jul 18, 2023
- Messages
- 707
- Reaction score
- 3
Welcome, builders and adventurers, to a vast sanctuary of Minecraft resources that will revolutionize your gameplay like never before! Immerse yourself in our treasure trove of meticulously curated mods, skins, and much more, each expertly crafted to elevate your gaming experience to new heights. Whether you aspire to construct awe-inspiring structures or embark on daring quests, our extensive selection is tailored to fulfill your every need. Embrace the boundless possibilities that await you in this pixelated realm, and unleash your imagination without limits!
Speed MegaGrief:
JavaScript:
package fun.rich.client.feature.impl.movement;
import fun.rich.client.event.EventTarget;
import fun.rich.client.event.events.impl.player.EventPreMotion;
import fun.rich.client.feature.Feature;
import fun.rich.client.feature.impl.FeatureCategory;
import fun.rich.client.ui.settings.impl.ListSetting;
import fun.rich.client.utils.movement.MovementUtils;
import net.minecraft.block.Block;
import net.minecraft.block.BlockAir;
import net.minecraft.init.MobEffects;
import net.minecraft.util.math.BlockPos;
@SuppressWarnings("all")
public class Speed extends Feature {
private final ListSetting speedMode = new ListSetting("Speed Mode", "MegaGrief", () -> true, "MegaGrief");
public Speed() {
super("Speed", "Увеличивает вашу скорость", FeatureCategory.Movement);
addSettings(speedMode);
}
@EventTarget
public void onPreMotion(EventPreMotion event) {
switch (mc.player.offGroundTicks) {
case 0: {
mc.player.jump();
if (mc.player.isPotionActive(MobEffects.SPEED))
MovementUtils.strafe(0.6f);
else
MovementUtils.strafe(0.485f);
break;
}
case 1:
case 2: {
MovementUtils.strafe();
break;
}
case 3:
case 4:
case 6:
case 7:
case 8:
default:
return;
case 5: {
mc.player.motionY = predictedMotion(mc.player.motionY, 2);
break;
}
case 9: {
if (!(blockRelativeToPlayer(0.0, mc.player.motionY, 0.0) instanceof BlockAir))
MovementUtils.strafe();
break;
}
}
}
private double predictedMotion(double motion, int ticks) {
if (ticks == 0) {
return motion;
} else {
double predicted = motion;
for (int i = 0; i < ticks; ++i) {
predicted = (predicted - 0.08) * 0.9800000190734863;
}
return predicted;
}
}
private Block blockRelativeToPlayer(double offsetX, double offsetY, double offsetZ) {
return mc.world.getBlockState((new BlockPos(mc.player)).add(offsetX, offsetY, offsetZ)).getBlock();
}
}