Started by
8BitBunnie
on
Topic category: Help with MCreator software
Heyo! Thanks in advance for any help you guys could offer. I surprisingly couldn't find anything covering this topic, but sorry in case it's frequent. I'm wondering if there's any way I can detect the player pressing a specific button aside from making a new keybind. For my specific case, I want to detect when the player presses space and is mid-air to execute another jump. I appreciate any kind of answer!
you need a keybind, If you want to be able to detect when a key Is pressed in all procedures and not Just the two triggers of the keybind, make a player persistent variable that is set to true when the key Is pressed and to false when it's released, then use this variable in procedures to detect when the key is being pressed
That's the way I ended up doing it, but I was wondering if there's any other way to do it aside from keybinds. Keybinds that are set to vanilla binds appear as conflicting, it's a very nitpicky thing but I was hoping there's more than one way
Hold on, that is Martian to me, how do I do that? How do I check a player's variable with a procedure?