Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

Source InventoryMove

xkeksbyte

Active member
MasterOf13FPS
Developer
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);
        }
    }
}
 
There is still a better way of doing a invmove like editing the mc src code, but ill let you do that yourself :)
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top