...Probably not. This would mean there would be no way to detect the player pressing the key; and even if this is what you're trying to do, keybinds can still be reset at any time. If you're trying to disable a Vanilla keybind, this definitely isn't possible. What, specifically, do you need to do this for?
...Probably not. This would mean there would be no way to detect the player pressing the key; and even if this is what you're trying to do, keybinds can still be reset at any time. If you're trying to disable a Vanilla keybind, this definitely isn't possible. What, specifically, do you need to do this for?
Well I want to include optional keybinds that are bound to nothing, I know this is possible as I've seen it in several mods.
bump
Which Minecraft Version do you work with your Mod?
1.18.2 & 1.16.5
What I can think about is to make a Keybind with your Procedures etc. with a random Keybind.
Then copy everything of the code and make it manually then you can change the Keybind in the Code.
This is necessary because the Code at the Keybinding Mod Element is locked and will be generated after each build.