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