- Joined
- Jul 11, 2020
- Messages
- 315
- Reaction score
- 121
- Points
- 43
Since people still doesnt know how to write a inventorymove module, ill provide the src lmao
Java:
/*
* Class created by xKeksbyte
* date: 2022/7/22
*/
package yt.haze.modules.player;
import net.minecraft.client.gui.GuiChat;
import org.lwjgl.input.Keyboard;
import yt.haze.abstracts.Module;
import yt.haze.enums.EnumCategory;
import yt.haze.events_new.EventTarget;
import yt.haze.events_new.events.MotionEvent;
import yt.haze.interfaces.IEvent;
@Module.Mod(category = EnumCategory.PLAYER, description = "Allows you to walk in a gui", name = "InventoryMove")
public class InventoryMoveModule extends Module {
@Override
protected void onEnable() {
}
@Override
protected void onDisable() {
}
@Deprecated
@Override
public void onEvent(IEvent e) {
}
@EventTarget
public void onMotionUpdate(MotionEvent event){
if(mc.currentScreen != null && !(mc.currentScreen instanceof GuiChat)){
mc.gameSettings.keyBindForward.pressed = Keyboard.isKeyDown(mc.gameSettings.keyBindForward.keyCode);
mc.gameSettings.keyBindLeft.pressed = Keyboard.isKeyDown(mc.gameSettings.keyBindLeft.keyCode);
mc.gameSettings.keyBindRight.pressed = Keyboard.isKeyDown(mc.gameSettings.keyBindRight.keyCode);
mc.gameSettings.keyBindBack.pressed = Keyboard.isKeyDown(mc.gameSettings.keyBindBack.keyCode);
mc.gameSettings.keyBindSneak.pressed = Keyboard.isKeyDown(mc.gameSettings.keyBindSneak.keyCode);
mc.gameSettings.keyBindJump.pressed = Keyboard.isKeyDown(mc.gameSettings.keyBindJump.keyCode);
mc.gameSettings.keyBindSprint.pressed = Keyboard.isKeyDown(mc.gameSettings.keyBindSprint.keyCode);
}
}
}