Posted June 4, 20196 yr Hello, so i have started java programming recently and i am making a mod that has armor that allows you to go into no-clip mode. (basically spectator mode) I want it so that when i press a key, it turns on no-clip, and sends a message to me. I think i can manage everything else but i'm having trouble registering the keybind. I have a KeybindHandler class which registers the keybind. I'm using MC 1.12.2. Code for my KeybindHandler: public class KeybindHandler { public static KeyBinding keybind; public static void init() { keybind = new KeyBinding("No-Clip", Keyboard.KEY_SEMICOLON, "TestKeybind"); ClientRegistry.registerKeyBinding(keybind); } } I'm not sure if i need to do anything else, other than this, but this by itself isn't working. Any help would be greatly appreciated. ย EDIT: The problem is the keybind doesn't show up in the controls section. EDIT # 2: It looks like i forgot to call it... woops Edited June 4, 20196 yr by TesterTesting135 Needed to add more information
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.