So I've recently been experimenting with keybindings, and as an experiment, I want to make the player move forward when I pressed the M key. However, for some reason, I'm at a loss at how to make the player move *forward* given that there are 360 degrees in a circle, and thats our range of motion. Does anyone know how to do this, or even better, the code file in which Notch specified what happens when you press a key?
I've walked through the net.minecraft.client.settings which is where the KeyBinding class is stored, but it doesn't store what happens when you press said key. There's also another class that intializes all the keyBindings - "Game Settings"
Jay
Edit:
So I made a dumb mistake by posting this. All I had to do was search through the minecraft packages for keyBindForward
So for those concerned :
KeyBinds are registered at net.minecraft.client.settings.keybinding
Movement keys are defined at net.minecraft.util
Edit 2:
So, now I can't use moveForward for some reason, so if anyone has an idea how I could moveForward, that would be great
So I've recently been experimenting with keybindings, and as an experiment, I want to make the player move forward when I pressed the M key. However, for some reason, I'm at a loss at how to make the player move *forward* given that there are 360 degrees in a circle, and thats our range of motion. Does anyone know how to do this, or even better, the code file in which Notch specified what happens when you press a key?
I've walked through the net.minecraft.client.settings which is where the KeyBinding class is stored, but it doesn't store what happens when you press said key. There's also another class that intializes all the keyBindings - "Game Settings"
Jay
Edit:
So I made a dumb mistake by posting this. All I had to do was search through the minecraft packages for keyBindForward
So for those concerned :
KeyBinds are registered at net.minecraft.client.settings.keybinding
Movement keys are defined at net.minecraft.util
Edit 2:
So, now I can't use moveForward for some reason, so if anyone has an idea how I could moveForward, that would be great