keybinds
Minecraft Keycodes: https://minecraft.fandom.com/wiki/Key_codes
getKeycode
Gets the code of a key.
getMousePosition
Returns the cursor's position.
property | index |
---|---|
x | 0 |
y | 1 |
isKeyDown
Returns whether the specified key is being pressed.
isMouseDown
Returns whether the specified mouse button is being pressed (0 is left click, 1 is right click, 2 is middle click);
isPressed
Returns whether a keybind is pressed or not.
leftClick
Simulates a left click on the mouse.
rightClick
Simulates a right click on the mouse.
setPressed
Sets a keybind to a boolean value of pressed/unpressed. Taken from %appdata%/.minecraft/options.txt
.
Last updated