SpoofInputEvent
Can be used to spoof keys being held down or released.
Example
script.addListener("SpoofInputEvent", (event) => {
if (event.keyBinding == mc.gameSettings.keyBindSprint) {
event.pressed = true;
}
});Properties
pressed
pressed:
boolean
Modify this to spoof the key state.
Methods
getKeyBinding()
getKeyBinding():
MCKeyBinding
Gets the key binding that was pressed.
Returns
Last updated