Started by
dsadasdas
on
Topic category: Help with modding (Java Edition)
Is there any if key pressed block? there is keybinds but i dont want to use a keybind, as it would show in controls (i think) and keybinds dont work for everything, so is there a block for this or a plugin that adds it? Oh yeah, and if keybinds are the only way, DO keybinds show in controls?
anyone?
You can store key press status in a variable and check this variable where you want to check key press status.
To explain further, create a global player persistent logic variable that defaults to false. On key pressed, set variable to true. On key released, set variable to false again. You can check the variable to check for key currently presses.
Thank you for providing a better explanation Catnip! :)