[全民写端]#5自动疾跑

一. 新建Sprint类

package cn.enaium.coreium.module.movement;

import cn.enaium.coreium.event.EventTarget;
import cn.enaium.coreium.event.events.EventUpdate;
import cn.enaium.coreium.module.Category;
import cn.enaium.coreium.module.Module;
import net.minecraft.client.Minecraft;
import org.lwjgl.input.Keyboard;

public class Sprint extends Module {

    public Sprint()
    {
        super("Sprint", Keyboard.KEY_V, Category.MOVEMENT);
    }

    @EventTarget
    public void onUpdate(EventUpdate e) {
        Minecraft.getMinecraft().thePlayer.setSprinting(true);
    }
}

二. 添加到loadModules

    public void loadMods() {
        this.addModule(new Sprint());
    }

三. 运行

按V打开

5-1