keybinds
Minecraft Keycodes: https://minecraft.fandom.com/wiki/Key_codes
getKeycode
Returns the keycode for a specified minecraft keybind.
getKeyIndex
Returns the keycode for a specified key.
getMousePosition
Returns the position of the cursor as an array [x, y]
.
isKeyDown
Returns true if the specified key is being pressed.
isMouseDown
Returns true if the specified mouse button is currently pressed. Use 0
for left click, 1
for right click, and 2
for middle click.
isPressed
Returns true if the specified keybind is being pressed.
leftClick
Simulates a left click on the mouse.
rightClick
Simulates a right click on the mouse.
setPressed
Sets the pressed state of a specified keybind. Taken from %appdata%/.minecraft/options.txt
.
Last updated