Started by
ErnBEY
on
Topic category: Help with Minecraft modding (Java Edition)
How can we use the procedure by connecting a double key and using both of them, that is, how can we make it work when both of them are pressed.
Topic category: Help with Minecraft modding (Java Edition)
How can we use the procedure by connecting a double key and using both of them, that is, how can we make it work when both of them are pressed.
What I would do is make a variable, let's say, Key A pressed? When key A is pressed, set the variable to yes, when it is released, set it to no. Then, on the other key bind, put it the code you want to run if both are pressed, but place it inside an if statement. Only run the code if Key A pressed = true.
Can you show it with an example screenshot?
who help me :(